summaryrefslogtreecommitdiff
path: root/src/bus-proxyd/proxy.h
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-07-31 15:03:49 +0200
committerDaniel Mack <github@zonque.org>2015-07-31 15:03:49 +0200
commit832089af55fc739d5ea7cec8cb8212344c80aa74 (patch)
tree0886bd7524357bb5033470a48c7b3aa7ebcd2cee /src/bus-proxyd/proxy.h
parent0810bc568ace619b16e440805e93256730d45541 (diff)
parent11f254be0c27b1944a1df8e7c14d83e56ebe7d9b (diff)
Merge pull request #805 from dvdhrm/proxy-activation
bus-proxy: make StartServiceByName synchronous
Diffstat (limited to 'src/bus-proxyd/proxy.h')
-rw-r--r--src/bus-proxyd/proxy.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/bus-proxyd/proxy.h b/src/bus-proxyd/proxy.h
index ccb951c109..6aac650ac9 100644
--- a/src/bus-proxyd/proxy.h
+++ b/src/bus-proxyd/proxy.h
@@ -25,6 +25,9 @@
#include "bus-xml-policy.h"
typedef struct Proxy Proxy;
+typedef struct ProxyActivation ProxyActivation;
+
+#define PROXY_ACTIVATIONS_MAX (16) /* max parallel activation requests */
struct Proxy {
sd_bus *local_bus;
@@ -37,12 +40,22 @@ struct Proxy {
Set *owned_names;
SharedPolicy *policy;
+ LIST_HEAD(ProxyActivation, activations);
+ size_t n_activations;
+
bool got_hello : 1;
bool queue_overflow : 1;
bool message_matched : 1;
bool synthetic_matched : 1;
};
+struct ProxyActivation {
+ LIST_FIELDS(ProxyActivation, activations_by_proxy);
+ Proxy *proxy;
+ sd_bus_message *request;
+ sd_bus_slot *slot;
+};
+
int proxy_new(Proxy **out, int in_fd, int out_fd, const char *dest);
Proxy *proxy_free(Proxy *p);