00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
00024 #error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
00025 #endif
00026
00027 #ifndef DBUS_BUS_H
00028 #define DBUS_BUS_H
00029
00030 #include <dbus/dbus-connection.h>
00031
00032 DBUS_BEGIN_DECLS
00033
00039 DBusConnection *dbus_bus_get (DBusBusType type,
00040 DBusError *error);
00041 DBusConnection *dbus_bus_get_private (DBusBusType type,
00042 DBusError *error);
00043
00044 dbus_bool_t dbus_bus_register (DBusConnection *connection,
00045 DBusError *error);
00046 dbus_bool_t dbus_bus_set_unique_name (DBusConnection *connection,
00047 const char *unique_name);
00048 const char* dbus_bus_get_unique_name (DBusConnection *connection);
00049 unsigned long dbus_bus_get_unix_user (DBusConnection *connection,
00050 const char *name,
00051 DBusError *error);
00052 char* dbus_bus_get_id (DBusConnection *connection,
00053 DBusError *error);
00054 int dbus_bus_request_name (DBusConnection *connection,
00055 const char *name,
00056 unsigned int flags,
00057 DBusError *error);
00058 int dbus_bus_release_name (DBusConnection *connection,
00059 const char *name,
00060 DBusError *error);
00061 dbus_bool_t dbus_bus_name_has_owner (DBusConnection *connection,
00062 const char *name,
00063 DBusError *error);
00064
00065 dbus_bool_t dbus_bus_start_service_by_name (DBusConnection *connection,
00066 const char *name,
00067 dbus_uint32_t flags,
00068 dbus_uint32_t *reply,
00069 DBusError *error);
00070
00071 void dbus_bus_add_match (DBusConnection *connection,
00072 const char *rule,
00073 DBusError *error);
00074 void dbus_bus_remove_match (DBusConnection *connection,
00075 const char *rule,
00076 DBusError *error);
00077
00080 DBUS_END_DECLS
00081
00082 #endif