1 /* -*- mode: C; c-file-style: "gnu" -*- */
2 /* dbus-glib-lowlevel.h GLib integration details that require dbus/dbus.h
4 * Copyright (C) 2002, 2003 CodeFactory AB
5 * Copyright (C) 2003, 2004 Red Hat, Inc.
7 * Licensed under the Academic Free License version 2.1
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 #ifndef DBUS_GLIB_LOWLEVEL_H
25 #define DBUS_GLIB_LOWLEVEL_H
27 #include <dbus/dbus-glib.h>
28 #include <dbus/dbus.h>
32 void dbus_set_g_error (GError **gerror,
35 #define DBUS_TYPE_CONNECTION (dbus_connection_get_g_type ())
36 #define DBUS_TYPE_MESSAGE (dbus_message_get_g_type ())
37 GType dbus_connection_get_g_type (void) G_GNUC_CONST;
38 GType dbus_message_get_g_type (void) G_GNUC_CONST;
40 #define DBUS_TYPE_G_CONNECTION (dbus_g_connection_get_g_type ())
41 #define DBUS_TYPE_G_MESSAGE (dbus_g_message_get_g_type ())
42 GType dbus_g_connection_get_g_type (void) G_GNUC_CONST;
43 GType dbus_g_message_get_g_type (void) G_GNUC_CONST;
45 void dbus_connection_setup_with_g_main (DBusConnection *connection,
46 GMainContext *context);
47 void dbus_server_setup_with_g_main (DBusServer *server,
48 GMainContext *context);
50 void dbus_g_proxy_send (DBusGProxy *proxy,
52 dbus_uint32_t *client_serial);
54 DBusConnection* dbus_g_connection_get_connection (DBusGConnection *gconnection);
55 DBusMessage* dbus_g_message_get_message (DBusGMessage *gmessage);
57 /* dbus_g_pending_call_get_pending_call() deliberately skipped for now;
58 * not sure it makes sense to use any of the DBusPendingCall functions
59 * on the wrapped pending call (once we have the right exported
65 #endif /* DBUS_GLIB_LOWLEVEL_H */