Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | cli: fix listen_timeout compile issue | Hans Dedecker | 2017-02-20 | 1 | -2/+2 |
| | | | | | | | | Variable listen_timeout is redefined as a function resulting into a compile issue. Define the function as ubus_cli_listen_timeout to fix the compile issue. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> | ||||
* | cli: do not use default timeout for listen | Felix Fietkau | 2017-02-15 | 1 | -1/+4 |
| | | | | | | | Default to listening for events forever unless -t is explicitly specified on the command line Signed-off-by: Felix Fietkau <nbd@nbd.name> | ||||
* | cli: add support for subscribing to objects | Felix Fietkau | 2017-02-14 | 1 | -13/+73 |
| | | | | Signed-off-by: Felix Fietkau <nbd@nbd.name> | ||||
* | cli: register event handler first, then do lookup | Alexandru Ardelean | 2016-10-12 | 1 | -2/+5 |
| | | | | | | | | | | | | | | | | | We seem to be getting timeout for ubus wait_for calls every now and then. And it's not reliably reproducible. Looking at the code the only thing that would look like a potetntial reason, is that between the ubus_lookup() and ubus_register_event_handler() calls, there's a very narrow window where the event would get sent out and we would not get it, thus having to timeout. It doesn't look like registering the event handler first is a big problem for the whole wait_check_object() logic. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> | ||||
* | cli: add timeout support for listen command | Zhao, Gang | 2016-02-29 | 1 | -5/+20 |
| | | | | | | | | | | Currently 'ubus listen' command does not respect the timeout parameter, i.e., whether timeout parameter is provided, 'ubus listen' will always run infinitely. This patch let 'ubus listen' command support the timeout parameter. For example, 'ubus listen -t 60' will cause the command to exit after 60 seconds. Signed-off-by: Zhao, Gang <gang.zhao.42@gmail.com> | ||||
* | cli: static keyword tweak | Zhao, Gang | 2016-02-29 | 1 | -3/+3 |
| | | | | | | | | | | | | | Function ubus_cli_listen() is called only once, and function uloop_run() and uloop_done() which need struct ubus_event_handler listener are called within this function, so it's not needed to mark struct ubus_event_handler listener as static. The same as pointer struct ubus_context *ctx in main function. Global struct commands is only used in this file, so it should be marked static. Signed-off-by: Zhao, Gang <gang.zhao.42@gmail.com> | ||||
* | cli: add monitor support | Felix Fietkau | 2015-11-19 | 1 | -1/+191 |
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | cli: flush stdout after printing an event | Felix Fietkau | 2015-05-12 | 1 | -0/+1 |
| | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | cli: implement wait_for | Felix Fietkau | 2014-05-06 | 1 | -0/+102 |
| | | | | | | | Allows waiting for one or more objects to appear Returns instantly if objects are already present Signed-off-by: Felix Fietkau <nbd@openwrt.org> | ||||
* | cli: add array and table types to method signature dump | Felix Fietkau | 2012-09-28 | 1 | -0/+2 |
| | |||||
* | cli: prevent indenting if simple output is requested | Felix Fietkau | 2012-05-06 | 1 | -1/+1 |
| | |||||
* | add -v | Felix Fietkau | 2011-09-05 | 1 | -2/+7 |
| | |||||
* | cli: indent call result data | Felix Fietkau | 2011-07-18 | 1 | -2/+2 |
| | |||||
* | add copyright/license information | Felix Fietkau | 2011-06-17 | 1 | -0/+13 |
| | |||||
* | suppress stderr output with -S | Felix Fietkau | 2011-03-27 | 1 | -6/+10 |
| | |||||
* | improve output for scripts | Felix Fietkau | 2011-03-27 | 1 | -2/+13 |
| | |||||
* | use int8 as boolean | Felix Fietkau | 2011-03-27 | 1 | -0/+1 |
| | |||||
* | add support for timeouts on synchronous requests | Felix Fietkau | 2011-02-11 | 1 | -2/+6 |
| | |||||
* | remove separate catch all list, always require a pattern argument for ↵ | Felix Fietkau | 2011-02-11 | 1 | -6/+14 |
| | | | | registering events, even if it is just * | ||||
* | cli: clean up code | Felix Fietkau | 2011-02-07 | 1 | -46/+72 |
| | |||||
* | cli: use stdout for output | Felix Fietkau | 2011-02-07 | 1 | -3/+3 |
| | |||||
* | add code for sending events and fix the code for receiving events | Felix Fietkau | 2011-02-07 | 1 | -6/+18 |
| | |||||
* | more const for the signature type table | Felix Fietkau | 2011-02-07 | 1 | -1/+1 |
| | |||||
* | add options to override the ubus socket name for the cli and the example program | Felix Fietkau | 2011-02-06 | 1 | -25/+50 |
| | |||||
* | cli: display proper types for the method signatures | Felix Fietkau | 2011-02-06 | 1 | -1/+23 |
| | |||||
* | use the json to blobmsg library | Felix Fietkau | 2011-02-06 | 1 | -79/+2 |
| | |||||
* | add support for parsing method calls with json arguments | Felix Fietkau | 2011-02-06 | 1 | -2/+89 |
| | |||||
* | implement code for receiving events | Felix Fietkau | 2011-02-05 | 1 | -2/+22 |
| | |||||
* | cli: wait for incoming events on listen | Felix Fietkau | 2011-02-05 | 1 | -0/+5 |
| | |||||
* | add functionality for registering anonymous objects as event listeners | Felix Fietkau | 2011-02-05 | 1 | -1/+27 |
| | |||||
* | add some stub functionality for the ubus event switch | Felix Fietkau | 2011-02-05 | 1 | -0/+3 |
| | |||||
* | cli: return the ubus ret code | Felix Fietkau | 2011-02-05 | 1 | -1/+1 |
| | |||||
* | libubus: add generic lookup code | Felix Fietkau | 2011-01-31 | 1 | -51/+14 |
| | |||||
* | cli: use ubus_invoke() instead of low level handling | Felix Fietkau | 2011-01-31 | 1 | -6/+2 |
| | |||||
* | add support for data replies | Felix Fietkau | 2011-01-31 | 1 | -2/+11 |
| | |||||
* | remove path based invoke functions, add stub implementation for invoking ↵ | Felix Fietkau | 2011-01-31 | 1 | -4/+36 |
| | | | | method calls | ||||
* | add stubs for invoke | Felix Fietkau | 2011-01-30 | 1 | -4/+13 |
| | |||||
* | Initial import | Felix Fietkau | 2011-01-30 | 1 | -0/+73 |