comparison dbus-d/dsrc/org/freedesktop/dbus/c/Bus.d @ 0:a5576806d36d

recreate repository without any libs for lightweight repository
author Frank Benoit <benoit@tionex.de>
date Sat, 20 Oct 2007 18:07:18 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:a5576806d36d
1 /* -*- mode: C; c-file-style: "gnu" -*- */
2 /* dbus-bus.h Convenience functions for communicating with the bus.
3 *
4 * Copyright (C) 2003 CodeFactory AB
5 *
6 * Licensed under the Academic Free License version 2.1
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 *
22 */
23 module org.freedesktop.dbus.c.Bus;
24
25 import org.freedesktop.dbus.c.Connection;
26 import org.freedesktop.dbus.c.Shared;
27 import org.freedesktop.dbus.c.Types;
28 import org.freedesktop.dbus.c.Errors;
29
30 extern(C):
31 /**
32 * @addtogroup DBusBus
33 * @{
34 */
35 //struct DBusError {};
36
37 DBusConnection *dbus_bus_get (DBusBusType type,
38 DBusError *error);
39 DBusConnection *dbus_bus_get_private (DBusBusType type,
40 DBusError *error);
41
42 dbus_bool_t dbus_bus_register (DBusConnection *connection,
43 DBusError *error);
44 dbus_bool_t dbus_bus_set_unique_name (DBusConnection *connection,
45 char *unique_name);
46 char* dbus_bus_get_unique_name (DBusConnection *connection);
47 uint dbus_bus_get_unix_user (DBusConnection *connection,
48 char *name,
49 DBusError *error);
50 char* dbus_bus_get_id (DBusConnection *connection,
51 DBusError *error);
52 int dbus_bus_request_name (DBusConnection *connection,
53 char *name,
54 uint flags,
55 DBusError *error);
56 int dbus_bus_release_name (DBusConnection *connection,
57 char *name,
58 DBusError *error);
59 dbus_bool_t dbus_bus_name_has_owner (DBusConnection *connection,
60 char *name,
61 DBusError *error);
62
63 dbus_bool_t dbus_bus_start_service_by_name (DBusConnection *connection,
64 char *name,
65 dbus_uint32_t flags,
66 dbus_uint32_t *reply,
67 DBusError *error);
68
69 void dbus_bus_add_match (DBusConnection *connection,
70 char *rule,
71 DBusError *error);
72 void dbus_bus_remove_match (DBusConnection *connection,
73 char *rule,
74 DBusError *error);
75
76 /** @} */
77