* configure.in: Add test/name-test/Makefile to the generated
[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 #define DBUS_TYPE_PENDING_CALL    (dbus_pending_call_get_g_type ())
38 GType dbus_connection_get_g_type   (void) G_GNUC_CONST;
39 GType dbus_message_get_g_type      (void) G_GNUC_CONST;
40 GType dbus_pending_call_get_g_type (void) G_GNUC_CONST;
41
42 void            dbus_connection_setup_with_g_main (DBusConnection  *connection,
43                                                    GMainContext    *context);
44 void            dbus_server_setup_with_g_main     (DBusServer      *server,
45                                                    GMainContext    *context);
46
47 void dbus_g_proxy_send (DBusGProxy    *proxy,
48                         DBusMessage   *message,
49                         dbus_uint32_t *client_serial);
50
51 DBusConnection*  dbus_g_connection_get_connection (DBusGConnection *gconnection);
52 DBusMessage*     dbus_g_message_get_message       (DBusGMessage    *gmessage);
53
54 /* dbus_g_pending_call_get_pending_call() deliberately skipped for now;
55  * not sure it makes sense to use any of the DBusPendingCall functions
56  * on the wrapped pending call (once we have the right exported
57  * g-functions anyhow)
58  */
59
60 gchar*            dbus_g_method_get_sender    (DBusGMethodInvocation *context);
61
62 DBusMessage*      dbus_g_method_get_reply     (DBusGMethodInvocation *context);
63
64 void              dbus_g_method_send_reply    (DBusGMethodInvocation *context, 
65                                                DBusMessage *reply);
66
67 G_END_DECLS
68
69 #endif /* DBUS_GLIB_LOWLEVEL_H */
70
71
72