summaryrefslogtreecommitdiff
path: root/dbind/dbind.h
diff options
context:
space:
mode:
authorMike Gorse <mgorse@boston.site>2008-06-23 18:50:15 -0400
committerMike Gorse <mgorse@boston.site>2008-06-23 18:50:15 -0400
commit28d2e961940e5b242e008f23bf9b2d68ab555cfa (patch)
tree1c1e12de0d5469bab5c4f1c4bb3883318507fcd0 /dbind/dbind.h
parent6e37a9ea253974a02f72cb65f88007aed0b3c77a (diff)
downloadat-spi2-core-28d2e961940e5b242e008f23bf9b2d68ab555cfa.tar.gz
Added dbind
Diffstat (limited to 'dbind/dbind.h')
-rw-r--r--dbind/dbind.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/dbind/dbind.h b/dbind/dbind.h
new file mode 100644
index 00000000..4e663594
--- /dev/null
+++ b/dbind/dbind.h
@@ -0,0 +1,39 @@
+#ifndef _DBIND_H_
+#define _DBIND_H_
+
+
+#define DBUS_API_SUBJECT_TO_CHANGE
+#include <dbus/dbus.h>
+
+typedef struct _DBindContext DBindContext;
+
+DBindContext *dbind_create_context (DBusBusType type, DBusError *opt_error);
+void dbind_context_free (DBindContext *ctx);
+dbus_bool_t dbind_context_method_call (DBindContext *ctx,
+ const char *bus_name,
+ const char *path,
+ const char *interface,
+ const char *method,
+ DBusError *opt_error,
+ const char *arg_types,
+ ...);
+
+/* dbus connection variants */
+dbus_bool_t dbind_connection_method_call (DBusConnection *cnx,
+ const char *bus_name,
+ const char *path,
+ const char *interface,
+ const char *method,
+ DBusError *opt_error,
+ const char *arg_types,
+ ...);
+dbus_bool_t dbind_connection_method_call_va (DBusConnection *cnx,
+ const char *bus_name,
+ const char *path,
+ const char *interface,
+ const char *method,
+ DBusError *opt_error,
+ const char *arg_types,
+ va_list args);
+
+#endif /* _DBIND_H_ */