chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bus: implicitly set no_reply flag on outgoing messages if the serial number is not...
[elogind.git]
/
src
/
libsystemd-bus
/
sd-bus.h
diff --git
a/src/libsystemd-bus/sd-bus.h
b/src/libsystemd-bus/sd-bus.h
index 03ea4b88483ee2b67b1249a7108cb9c0a7f57909..a759f54f3e1f82f94b71bf72eedda974d10eabcb 100644
(file)
--- a/
src/libsystemd-bus/sd-bus.h
+++ b/
src/libsystemd-bus/sd-bus.h
@@
-33,11
+33,13
@@
* - add page donation logic
* - api for appending/reading fixed arrays
* - always verify container depth
* - add page donation logic
* - api for appending/reading fixed arrays
* - always verify container depth
- * - implement method timeout logic
- * - implicitly set no_reply when a message-call is sent an the serial number ignored
- * - reduce number of ppoll()s if we can avoid it
* - handle NULL strings nicer when appending
* - merge busctl into systemctl or so?
* - handle NULL strings nicer when appending
* - merge busctl into systemctl or so?
+ * - add object handlers
+ * - add peer message handlers
+ * - verify object paths
+ * - when reading a message, verify its size
+ * - add limits to wqueue and rqueue alike
*/
typedef struct sd_bus sd_bus;
*/
typedef struct sd_bus sd_bus;
@@
-49,7
+51,7
@@
typedef struct {
int need_free;
} sd_bus_error;
int need_free;
} sd_bus_error;
-typedef int (*sd_message_handler_t)(sd_bus *bus, sd_bus_message *m, void *userdata);
+typedef int (*sd_message_handler_t)(sd_bus *bus,
int ret,
sd_bus_message *m, void *userdata);
/* Connections */
/* Connections */
@@
-62,6
+64,7
@@
void sd_bus_close(sd_bus *bus);
sd_bus *sd_bus_ref(sd_bus *bus);
sd_bus *sd_bus_unref(sd_bus *bus);
sd_bus *sd_bus_ref(sd_bus *bus);
sd_bus *sd_bus_unref(sd_bus *bus);
+int sd_bus_is_open(sd_bus *bus);
int sd_bus_is_running(sd_bus *bus);
int sd_bus_can_send(sd_bus *bus, char type);
int sd_bus_is_running(sd_bus *bus);
int sd_bus_can_send(sd_bus *bus, char type);
@@
-72,6
+75,7
@@
int sd_bus_send_with_reply_and_block(sd_bus *bus, sd_bus_message *m, uint64_t us
int sd_bus_get_fd(sd_bus *bus);
int sd_bus_get_events(sd_bus *bus);
int sd_bus_get_fd(sd_bus *bus);
int sd_bus_get_events(sd_bus *bus);
+int sd_bus_get_timeout(sd_bus *bus, uint64_t *timeout_usec);
int sd_bus_process(sd_bus *bus, sd_bus_message **r);
int sd_bus_wait(sd_bus *bus, uint64_t timeout_usec);
int sd_bus_flush(sd_bus *bus);
int sd_bus_process(sd_bus *bus, sd_bus_message **r);
int sd_bus_wait(sd_bus *bus, uint64_t timeout_usec);
int sd_bus_flush(sd_bus *bus);