2004-08-24 Mikael Hallendal <micke@imendio.com>
[platform/upstream/dbus.git] / dbus / dbus-glib-lowlevel.h
1 /* -*- mode: C; c-file-style: "gnu" -*- */
2 /* dbus-glib-lowlevel.h GLib integration details that require dbus/dbus.h
3  *
4  * Copyright (C) 2002, 2003  CodeFactory AB
5  * Copyright (C) 2003, 2004 Red Hat, Inc.
6  *
7  * Licensed under the Academic Free License version 2.1
8  * 
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.
13  *
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.
18  * 
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
22  *
23  */
24 #ifndef DBUS_GLIB_LOWLEVEL_H
25 #define DBUS_GLIB_LOWLEVEL_H
26
27 #include <dbus/dbus-glib.h>
28 #include <dbus/dbus.h>
29
30 G_BEGIN_DECLS
31
32 void dbus_set_g_error (GError   **gerror,
33                        DBusError *derror);
34
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;
39
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;
44
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);
49
50 void dbus_g_proxy_send (DBusGProxy    *proxy,
51                         DBusMessage   *message,
52                         dbus_uint32_t *client_serial);
53
54 DBusConnection*  dbus_g_connection_get_connection (DBusGConnection *gconnection);
55 DBusMessage*     dbus_g_message_get_message       (DBusGMessage    *gmessage);
56
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
60  * g-functions anyhow)
61  */
62
63 G_END_DECLS
64
65 #endif /* DBUS_GLIB_LOWLEVEL_H */
66
67
68