williamr@2
|
1 |
/* -*- mode: C; c-file-style: "gnu" -*- */
|
williamr@2
|
2 |
/* dbus-glib-lowlevel.h GLib integration details that require dbus/dbus.h
|
williamr@2
|
3 |
*
|
williamr@2
|
4 |
* Copyright (C) 2002, 2003 CodeFactory AB
|
williamr@2
|
5 |
* Copyright (C) 2003, 2004 Red Hat, Inc.
|
williamr@2
|
6 |
* Portion Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
|
williamr@2
|
7 |
* Licensed under the Academic Free License version 2.1
|
williamr@2
|
8 |
*
|
williamr@2
|
9 |
* This program is free software; you can redistribute it and/or modify
|
williamr@2
|
10 |
* it under the terms of the GNU General Public License as published by
|
williamr@2
|
11 |
* the Free Software Foundation; either version 2 of the License, or
|
williamr@2
|
12 |
* (at your option) any later version.
|
williamr@2
|
13 |
*
|
williamr@2
|
14 |
* This program is distributed in the hope that it will be useful,
|
williamr@2
|
15 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
williamr@2
|
16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
williamr@2
|
17 |
* GNU General Public License for more details.
|
williamr@2
|
18 |
*
|
williamr@2
|
19 |
* You should have received a copy of the GNU General Public License
|
williamr@2
|
20 |
* along with this program; if not, write to the Free Software
|
williamr@2
|
21 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
williamr@2
|
22 |
*
|
williamr@2
|
23 |
*/
|
williamr@2
|
24 |
#ifndef DBUS_GLIB_LOWLEVEL_H
|
williamr@2
|
25 |
#define DBUS_GLIB_LOWLEVEL_H
|
williamr@2
|
26 |
|
williamr@2
|
27 |
#include <dbus/dbus-glib.h>
|
williamr@2
|
28 |
#include <dbus/dbus.h>
|
williamr@2
|
29 |
|
williamr@2
|
30 |
G_BEGIN_DECLS
|
williamr@2
|
31 |
|
williamr@2
|
32 |
#ifdef __SYMBIAN32__
|
williamr@2
|
33 |
IMPORT_C
|
williamr@2
|
34 |
#endif
|
williamr@2
|
35 |
void dbus_set_g_error (GError **gerror,
|
williamr@2
|
36 |
DBusError *derror);
|
williamr@2
|
37 |
|
williamr@2
|
38 |
#define DBUS_TYPE_CONNECTION (dbus_connection_get_g_type ())
|
williamr@2
|
39 |
#define DBUS_TYPE_MESSAGE (dbus_message_get_g_type ())
|
williamr@2
|
40 |
#define DBUS_TYPE_PENDING_CALL (dbus_pending_call_get_g_type ())
|
williamr@2
|
41 |
#ifdef __SYMBIAN32__
|
williamr@2
|
42 |
IMPORT_C
|
williamr@2
|
43 |
#endif
|
williamr@2
|
44 |
GType dbus_connection_get_g_type (void) G_GNUC_CONST;
|
williamr@2
|
45 |
#ifdef __SYMBIAN32__
|
williamr@2
|
46 |
IMPORT_C
|
williamr@2
|
47 |
#endif
|
williamr@2
|
48 |
GType dbus_message_get_g_type (void) G_GNUC_CONST;
|
williamr@2
|
49 |
GType dbus_pending_call_get_g_type (void) G_GNUC_CONST;
|
williamr@2
|
50 |
|
williamr@2
|
51 |
#ifdef __SYMBIAN32__
|
williamr@2
|
52 |
IMPORT_C
|
williamr@2
|
53 |
#endif
|
williamr@2
|
54 |
void dbus_connection_setup_with_g_main (DBusConnection *connection,
|
williamr@2
|
55 |
GMainContext *context);
|
williamr@2
|
56 |
#ifdef __SYMBIAN32__
|
williamr@2
|
57 |
IMPORT_C
|
williamr@2
|
58 |
#endif
|
williamr@2
|
59 |
void dbus_server_setup_with_g_main (DBusServer *server,
|
williamr@2
|
60 |
GMainContext *context);
|
williamr@2
|
61 |
|
williamr@2
|
62 |
#ifdef __SYMBIAN32__
|
williamr@2
|
63 |
IMPORT_C
|
williamr@2
|
64 |
#endif
|
williamr@2
|
65 |
void dbus_g_proxy_send (DBusGProxy *proxy,
|
williamr@2
|
66 |
DBusMessage *message,
|
williamr@2
|
67 |
dbus_uint32_t *client_serial);
|
williamr@2
|
68 |
|
williamr@2
|
69 |
#ifdef __SYMBIAN32__
|
williamr@2
|
70 |
IMPORT_C
|
williamr@2
|
71 |
#endif
|
williamr@2
|
72 |
DBusConnection* dbus_g_connection_get_connection (DBusGConnection *gconnection);
|
williamr@2
|
73 |
#ifdef __SYMBIAN32__
|
williamr@2
|
74 |
IMPORT_C
|
williamr@2
|
75 |
#endif
|
williamr@2
|
76 |
DBusGConnection* dbus_connection_get_g_connection (DBusConnection *connection);
|
williamr@2
|
77 |
#ifdef __SYMBIAN32__
|
williamr@2
|
78 |
IMPORT_C
|
williamr@2
|
79 |
#endif
|
williamr@2
|
80 |
DBusMessage* dbus_g_message_get_message (DBusGMessage *gmessage);
|
williamr@2
|
81 |
|
williamr@2
|
82 |
/* dbus_g_pending_call_get_pending_call() deliberately skipped for now;
|
williamr@2
|
83 |
* not sure it makes sense to use any of the DBusPendingCall functions
|
williamr@2
|
84 |
* on the wrapped pending call (once we have the right exported
|
williamr@2
|
85 |
* g-functions anyhow)
|
williamr@2
|
86 |
*/
|
williamr@2
|
87 |
|
williamr@2
|
88 |
#ifdef __SYMBIAN32__
|
williamr@2
|
89 |
IMPORT_C
|
williamr@2
|
90 |
#endif
|
williamr@2
|
91 |
gchar* dbus_g_method_get_sender (DBusGMethodInvocation *context);
|
williamr@2
|
92 |
|
williamr@2
|
93 |
#ifdef __SYMBIAN32__
|
williamr@2
|
94 |
IMPORT_C
|
williamr@2
|
95 |
#endif
|
williamr@2
|
96 |
DBusMessage* dbus_g_method_get_reply (DBusGMethodInvocation *context);
|
williamr@2
|
97 |
|
williamr@2
|
98 |
#ifdef __SYMBIAN32__
|
williamr@2
|
99 |
IMPORT_C
|
williamr@2
|
100 |
#endif
|
williamr@2
|
101 |
void dbus_g_method_send_reply (DBusGMethodInvocation *context,
|
williamr@2
|
102 |
DBusMessage *reply);
|
williamr@2
|
103 |
|
williamr@2
|
104 |
G_END_DECLS
|
williamr@2
|
105 |
|
williamr@2
|
106 |
#endif /* DBUS_GLIB_LOWLEVEL_H */
|
williamr@2
|
107 |
|
williamr@2
|
108 |
|
williamr@2
|
109 |
|