Expand description
Raw FFI bindings to OpenWrt’s libubox.
See the workspace README.md for build-host requirements (CMake,
pkg-config, libjson-c-dev) and feature flags (json, bindgen,
static).
The committed bindings live in src/bindings/pregenerated.rs and are
used unless the bindgen feature is enabled.
Structs§
- __
Incomplete Array Field - __
va_ list_ tag - avl_
node - avl_
tree - blob_
attr - blob_
attr_ info - blob_
buf - blobmsg_
hdr - blobmsg_
policy - json_
object - json_
script_ ctx - json_
script_ file - kvlist
- kvlist_
node - list_
head - md5_ctx
- runqueue
- runqueue_
process - runqueue_
task - runqueue_
task_ type - safe_
list - safe_
list_ iterator - udebug
- udebug_
buf - udebug_
buf_ flag - udebug_
buf_ meta - udebug_
hdr - uloop_
fd - uloop_
interval - uloop_
process - uloop_
signal - uloop_
timeout - ustream
- ustream_
buf - ustream_
buf_ list - ustream_
fd - vlist_
node - vlist_
tree
Constants§
- BLOBMSG_
ALIGN - BLOB_
ATTR_ ALIGN - BLOB_
ATTR_ BINARY - BLOB_
ATTR_ DOUBLE - BLOB_
ATTR_ EXTENDED - BLOB_
ATTR_ ID_ MASK - BLOB_
ATTR_ ID_ SHIFT - BLOB_
ATTR_ INT8 - BLOB_
ATTR_ INT16 - BLOB_
ATTR_ INT32 - BLOB_
ATTR_ INT64 - BLOB_
ATTR_ LAST - BLOB_
ATTR_ LEN_ MASK - BLOB_
ATTR_ NESTED - BLOB_
ATTR_ STRING - BLOB_
ATTR_ UNSPEC - BLOB_
COOKIE - ULOG_
KMSG - ULOG_
STDIO - ULOG_
SYSLOG - ULOOP_
BLOCKING - ULOOP_
EDGE_ TRIGGER - ULOOP_
ERROR_ CB - ULOOP_
EVENT_ BUFFERED - ULOOP_
EVENT_ MASK - ULOOP_
PRIORITY - ULOOP_
READ - ULOOP_
WRITE - USOCK_
IPV4ONLY - USOCK_
IPV6ONLY - USOCK_
NOCLOEXEC - USOCK_
NONBLOCK - USOCK_
NUMERIC - USOCK_
SERVER - USOCK_
TCP - USOCK_
UDP - USOCK_
UNIX - avl_
find_ mode_ AVL_ FIND_ EQUAL - avl_
find_ mode_ AVL_ FIND_ GREATEREQUAL - avl_
find_ mode_ AVL_ FIND_ LESSEQUAL - blobmsg_
type_ BLOBMSG_ CAST_ INT64 - blobmsg_
type_ BLOBMSG_ TYPE_ ARRAY - blobmsg_
type_ BLOBMSG_ TYPE_ BOOL - blobmsg_
type_ BLOBMSG_ TYPE_ DOUBLE - blobmsg_
type_ BLOBMSG_ TYPE_ INT8 - blobmsg_
type_ BLOBMSG_ TYPE_ INT16 - blobmsg_
type_ BLOBMSG_ TYPE_ INT32 - blobmsg_
type_ BLOBMSG_ TYPE_ INT64 - blobmsg_
type_ BLOBMSG_ TYPE_ LAST - blobmsg_
type_ BLOBMSG_ TYPE_ STRING - blobmsg_
type_ BLOBMSG_ TYPE_ TABLE - blobmsg_
type_ BLOBMSG_ TYPE_ UNSPEC - blobmsg_
type___ BLOBMSG_ TYPE_ LAST - udebug_
format_ UDEBUG_ FORMAT_ BLOBMSG - udebug_
format_ UDEBUG_ FORMAT_ PACKET - udebug_
format_ UDEBUG_ FORMAT_ STRING
Functions§
- avl_
blobcmp ⚠ - avl_
delete ⚠ - avl_
find ⚠ - avl_
find_ ⚠greaterequal - avl_
find_ ⚠lessequal - avl_
init ⚠ - avl_
insert ⚠ - avl_
strcmp ⚠ - blob_
attr_ ⚠equal - blob_
buf_ ⚠free - blob_
buf_ ⚠grow - blob_
buf_ ⚠init - blob_
check_ ⚠type - blob_
fill_ ⚠pad - blob_
memdup ⚠ - blob_
nest_ ⚠end - blob_
nest_ ⚠start - blob_
new ⚠ - blob_
parse ⚠ - blob_
parse_ ⚠untrusted - blob_
put ⚠ - blob_
put_ ⚠raw - blob_
set_ ⚠raw_ len - blobmsg_
add_ ⚠field - blobmsg_
add_ ⚠json_ element - blobmsg_
add_ ⚠json_ from_ file - blobmsg_
add_ ⚠json_ from_ string - blobmsg_
add_ ⚠object - blobmsg_
add_ ⚠string_ buffer - blobmsg_
alloc_ ⚠string_ buffer - blobmsg_
check_ ⚠array - blobmsg_
check_ ⚠array_ len - blobmsg_
check_ ⚠attr - blobmsg_
check_ ⚠attr_ len - blobmsg_
check_ ⚠attr_ list - blobmsg_
check_ ⚠attr_ list_ len - blobmsg_
format_ ⚠json_ value_ with_ cb - blobmsg_
format_ ⚠json_ with_ cb - blobmsg_
open_ ⚠nested - blobmsg_
parse ⚠ - blobmsg_
parse_ ⚠array - blobmsg_
printf ⚠ - blobmsg_
realloc_ ⚠string_ buffer - blobmsg_
vprintf ⚠ - json_
script_ ⚠eval_ string - json_
script_ ⚠file_ from_ blobmsg - json_
script_ ⚠find_ var - json_
script_ ⚠free - json_
script_ ⚠init - json_
script_ ⚠run - json_
script_ ⚠run_ file - kvlist_
blob_ ⚠len - kvlist_
delete ⚠ - kvlist_
free ⚠ - kvlist_
get ⚠ - kvlist_
init ⚠ - kvlist_
set ⚠ - kvlist_
strlen ⚠ - md5_
begin ⚠ - md5_end⚠
- md5_
hash ⚠ - md5sum⚠
- runqueue_
cancel ⚠ - runqueue_
cancel_ ⚠active - runqueue_
cancel_ ⚠pending - runqueue_
init ⚠ - runqueue_
kill ⚠ - runqueue_
process_ ⚠add - runqueue_
process_ ⚠cancel_ cb - runqueue_
process_ ⚠kill_ cb - runqueue_
resume ⚠ - runqueue_
stop ⚠ - runqueue_
task_ ⚠add - runqueue_
task_ ⚠add_ first - runqueue_
task_ ⚠cancel - runqueue_
task_ ⚠complete - runqueue_
task_ ⚠kill - safe_
list_ ⚠add - safe_
list_ ⚠add_ first - safe_
list_ ⚠del - safe_
list_ ⚠for_ each - ulog⚠
- ulog_
close ⚠ - ulog_
open ⚠ - ulog_
threshold ⚠ - ulog_
udebug ⚠ - uloop_
cancelling ⚠ - uloop_
done ⚠ - uloop_
fd_ ⚠add - uloop_
fd_ ⚠delete - uloop_
get_ ⚠next_ timeout - uloop_
init ⚠ - uloop_
interval_ ⚠cancel - uloop_
interval_ ⚠remaining - uloop_
interval_ ⚠set - uloop_
process_ ⚠add - uloop_
process_ ⚠delete - uloop_
run_ ⚠timeout - uloop_
signal_ ⚠add - uloop_
signal_ ⚠delete - uloop_
timeout_ ⚠add - uloop_
timeout_ ⚠cancel - uloop_
timeout_ ⚠remaining - uloop_
timeout_ ⚠remaining64 - uloop_
timeout_ ⚠set - usock⚠
- usock_
inet_ ⚠timeout - usock_
port ⚠ - usock_
wait_ ⚠ready - ustream_
consume ⚠ - ustream_
fd_ ⚠init - ustream_
fill_ ⚠read - ustream_
free ⚠ - ustream_
get_ ⚠read_ buf - ustream_
init_ ⚠defaults - ustream_
printf ⚠ - ustream_
read ⚠ - ustream_
reserve ⚠ - ustream_
set_ ⚠read_ blocked - ustream_
vprintf ⚠ - ustream_
write ⚠ - ustream_
write_ ⚠pending - vlist_
add ⚠ - vlist_
delete ⚠ - vlist_
flush ⚠ - vlist_
flush_ ⚠all - vlist_
init ⚠