chiark / gitweb /
tests: skip bus test if bus cannot be opened
[elogind.git] / src / libsystemd-bus / bus-internal.h
index 19965083c6fa281914b9cb341b577e1de968ee1d..c25a208aea35ed59f5a76160d84329788ef6cd80 100644 (file)
@@ -72,7 +72,7 @@ struct sd_bus {
 
         bool negotiate_fds:1;
         bool can_fds:1;
-        bool send_hello:1;
+        bool bus_client:1;
         bool ucred_valid:1;
 
         void *rbuffer;
@@ -120,6 +120,9 @@ struct sd_bus {
 
         int *fds;
         unsigned n_fds;
+
+        char *exec_path;
+        char **exec_argv;
 };
 
 static inline void bus_unrefp(sd_bus **b) {
@@ -145,6 +148,8 @@ static inline void bus_unrefp(sd_bus **b) {
 
 #define BUS_FDS_MAX 1024
 
+#define BUS_EXEC_ARGV_MAX 256
+
 bool object_path_is_valid(const char *p);
 bool interface_name_is_valid(const char *p);
 bool service_name_is_valid(const char *p);
@@ -153,3 +158,5 @@ bool member_name_is_valid(const char *p);
 #define error_name_is_valid interface_name_is_valid
 
 int bus_ensure_running(sd_bus *bus);
+int bus_start_running(sd_bus *bus);
+int bus_next_address(sd_bus *bus);