Commit graph

346 commits

Author SHA1 Message Date
Felix Fietkau
da11ec6b9d remove duplicate definition of UBUS_UNIX_SOCKET 2011-02-06 20:55:34 +01:00
Felix Fietkau
c6affabb03 remove ubus.sock from .gitignore 2011-02-06 18:51:00 +01:00
Felix Fietkau
5fde74d12a set the default socket name to /var/run/ubus.sock 2011-02-06 18:50:37 +01:00
Felix Fietkau
7a56ab0411 add options to override the ubus socket name for the cli and the example program 2011-02-06 18:50:07 +01:00
Felix Fietkau
8c8a8ba34f remove the socket when ubusd exits 2011-02-06 18:41:18 +01:00
Felix Fietkau
da9a7518f6 add support for overriding the socket name 2011-02-06 18:40:47 +01:00
Felix Fietkau
45c873325e cli: display proper types for the method signatures 2011-02-06 16:48:58 +01:00
Felix Fietkau
8c81142828 use the json to blobmsg library 2011-02-06 16:15:14 +01:00
Felix Fietkau
2e83a5fab2 fix SIGINT handling 2011-02-06 02:19:54 +01:00
Felix Fietkau
4534209ea8 rename listener to ubus-example 2011-02-06 02:15:10 +01:00
Felix Fietkau
4864ab6397 listener: add a more complex example using parsing 2011-02-06 02:08:30 +01:00
Felix Fietkau
9a03063aee fix event handler list initialization 2011-02-06 01:53:58 +01:00
Felix Fietkau
88411527be fix message refcounting 2011-02-06 01:45:21 +01:00
Felix Fietkau
4ae1159f62 add support for parsing method calls with json arguments 2011-02-06 01:22:54 +01:00
Felix Fietkau
ed4b742f3f implement code for receiving events 2011-02-05 23:23:44 +01:00
Felix Fietkau
f87a9dc69e cli: wait for incoming events on listen 2011-02-05 23:01:48 +01:00
Felix Fietkau
32436bf25f remove an unnecessary check 2011-02-05 20:56:50 +01:00
Felix Fietkau
a84c6cac9a fix message buffering 2011-02-05 20:50:08 +01:00
Felix Fietkau
f6a6b0d492 add functionality for registering anonymous objects as event listeners 2011-02-05 19:53:14 +01:00
Felix Fietkau
fa989780bd add some stub functionality for the ubus event switch 2011-02-05 01:29:52 +01:00
Felix Fietkau
d80ebf55af add functions for internal object allocation 2011-02-05 00:21:27 +01:00
Felix Fietkau
ba6082bab5 install header files 2011-02-05 00:06:28 +01:00
Felix Fietkau
f0d75430d2 cli: return the ubus ret code 2011-02-05 00:02:22 +01:00
Felix Fietkau
598c2103ae use the new blobmsg string buffer functions 2011-02-04 21:58:22 +01:00
Felix Fietkau
875619ed4e add install targets 2011-01-31 21:17:33 +01:00
Felix Fietkau
659a98c810 add an inline function to add the ubus socket to uloop 2011-01-31 20:00:39 +01:00
Felix Fietkau
4f8b3c8d46 remove obsolete debug msgs 2011-01-31 19:55:07 +01:00
Felix Fietkau
7d4fd754af remove an obsolete define 2011-01-31 19:53:55 +01:00
Felix Fietkau
ea76fb270d make libubus a dynamic library 2011-01-31 19:32:58 +01:00
Felix Fietkau
768d282ae9 make ubus_parse_msg static 2011-01-31 18:28:14 +01:00
Felix Fietkau
36b1a80b07 make ubus_start_request static 2011-01-31 18:27:23 +01:00
Felix Fietkau
83a6386ede libubus: add generic lookup code 2011-01-31 18:26:24 +01:00
Felix Fietkau
480a3d66a7 export the object type through lookup calls 2011-01-31 18:26:09 +01:00
Felix Fietkau
23c9984a6c cli: use ubus_invoke() instead of low level handling 2011-01-31 17:27:11 +01:00
Felix Fietkau
57615abd9b make message data on invoke() optional 2011-01-31 17:26:29 +01:00
Felix Fietkau
1555e4610f add support for data replies 2011-01-31 17:18:10 +01:00
Felix Fietkau
2e92ac29c1 cleanup, pass both data and status messages on to other clients 2011-01-31 16:32:29 +01:00
Felix Fietkau
a03acea49c remove support for path based invoke, add object id validation for responses 2011-01-31 16:25:22 +01:00
Felix Fietkau
7b262aec38 add a callback for handling lost ubus connections 2011-01-31 16:15:55 +01:00
Felix Fietkau
c55408c4d0 libubus: add method to policy 2011-01-31 03:53:09 +01:00
Felix Fietkau
1a871e1e89 add working method calls 2011-01-31 03:26:53 +01:00
Felix Fietkau
44096a0a34 libubus: keep objects in an avl tree 2011-01-31 03:07:42 +01:00
Felix Fietkau
749aaf3b6d add request cancelled flag 2011-01-31 02:54:39 +01:00
Felix Fietkau
527d252333 remove path based invoke functions, add stub implementation for invoking method calls 2011-01-31 02:41:32 +01:00
Felix Fietkau
8321f8c523 add stubs for invoke 2011-01-30 23:57:14 +01:00
Felix Fietkau
dbd4c2f121 Initial import 2011-01-30 14:16:09 +01:00