Main Page | Modules | Data Structures | Directories | File List | Data Fields | Related Pages

dbus-glib-lowlevel.h

00001 /* -*- mode: C; c-file-style: "gnu" -*- */
00002 /* dbus-glib-lowlevel.h GLib integration details that require dbus/dbus.h
00003  *
00004  * Copyright (C) 2002, 2003  CodeFactory AB
00005  * Copyright (C) 2003, 2004 Red Hat, Inc.
00006  *
00007  * Licensed under the Academic Free License version 2.1
00008  * 
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  * 
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022  *
00023  */
00024 #ifndef DBUS_GLIB_LOWLEVEL_H
00025 #define DBUS_GLIB_LOWLEVEL_H
00026 
00027 #include <dbus/dbus-glib.h>
00028 #include <dbus/dbus.h>
00029 
00030 G_BEGIN_DECLS
00031 
00032 void dbus_set_g_error (GError   **gerror,
00033                        DBusError *derror);
00034 
00035 #define DBUS_TYPE_CONNECTION (dbus_connection_get_g_type ())
00036 #define DBUS_TYPE_MESSAGE    (dbus_message_get_g_type ())
00037 GType dbus_connection_get_g_type (void) G_GNUC_CONST;
00038 GType dbus_message_get_g_type    (void) G_GNUC_CONST;
00039 
00040 #define DBUS_TYPE_G_CONNECTION (dbus_g_connection_get_g_type ())
00041 #define DBUS_TYPE_G_MESSAGE    (dbus_g_message_get_g_type ())
00042 GType dbus_g_connection_get_g_type (void) G_GNUC_CONST;
00043 GType dbus_g_message_get_g_type    (void) G_GNUC_CONST;
00044 
00045 void            dbus_connection_setup_with_g_main (DBusConnection  *connection,
00046                                                    GMainContext    *context);
00047 void            dbus_server_setup_with_g_main     (DBusServer      *server,
00048                                                    GMainContext    *context);
00049 
00050 void dbus_g_proxy_send (DBusGProxy    *proxy,
00051                         DBusMessage   *message,
00052                         dbus_uint32_t *client_serial);
00053 
00054 DBusConnection*  dbus_g_connection_get_connection (DBusGConnection *gconnection);
00055 DBusMessage*     dbus_g_message_get_message       (DBusGMessage    *gmessage);
00056 
00057 /* dbus_g_pending_call_get_pending_call() deliberately skipped for now;
00058  * not sure it makes sense to use any of the DBusPendingCall functions
00059  * on the wrapped pending call (once we have the right exported
00060  * g-functions anyhow)
00061  */
00062 
00063 G_END_DECLS
00064 
00065 #endif /* DBUS_GLIB_LOWLEVEL_H */
00066 
00067 
00068 

Generated on Thu Aug 11 21:11:12 2005 for D-BUS by  doxygen 1.4.0