summaryrefslogtreecommitdiff
path: root/bus/connection.h
diff options
context:
space:
mode:
authorBen Brewer <benbrewer@codethink.co.uk>2012-11-26 15:52:12 +0000
committerBen Brewer <benbrewer@codethink.co.uk>2012-11-26 15:52:12 +0000
commita9baebcf982ecb9be018bea519e5d187b0808610 (patch)
tree805bfa34e0314e93a2305b5deb4e941ec8c98d51 /bus/connection.h
parent9b04b927ee61da9639f20410d6f535aaccd76e0d (diff)
downloaddbus-baserock/af-bus.tar.gz
Patched dbus-1.6 for af-bus and added morphbaserock/genivi/dbus-1.6-af-busbaserock/af-bus
Diffstat (limited to 'bus/connection.h')
-rw-r--r--bus/connection.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/bus/connection.h b/bus/connection.h
index c9360212..95856f30 100644
--- a/bus/connection.h
+++ b/bus/connection.h
@@ -24,6 +24,8 @@
#ifndef BUS_CONNECTION_H
#define BUS_CONNECTION_H
+#include <sys/types.h>
+#include <sys/socket.h>
#include <dbus/dbus.h>
#include <dbus/dbus-list.h>
#include "bus.h"
@@ -103,8 +105,9 @@ dbus_bool_t bus_connection_complete (DBusConnection *connection,
const DBusString *name,
DBusError *error);
-/* called by dispatch.c when the connection is dropped */
-void bus_connection_disconnected (DBusConnection *connection);
+/* called by dispatch.c */
+void bus_connection_disconnected (DBusConnection *connection);
+DBusConnection *bus_connection_get_proxy_connection (DBusConnection *connection);
dbus_bool_t bus_connection_is_in_unix_group (DBusConnection *connection,
unsigned long gid);
@@ -151,4 +154,9 @@ int bus_connections_get_peak_bus_names_per_conn (BusConnections *connections);
int bus_connection_get_peak_match_rules (DBusConnection *connection);
int bus_connection_get_peak_bus_names (DBusConnection *connection);
+/* called by driver-afbus.c */
+int bus_connection_get_peer_address (DBusConnection *connection,
+ struct sockaddr **peer_address,
+ socklen_t *peer_addrlen);
+
#endif /* BUS_CONNECTION_H */