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 #define DBUS_TYPE_PENDING_CALL    (dbus_pending_call_get_g_type ())
00038 GType dbus_connection_get_g_type   (void) G_GNUC_CONST;
00039 GType dbus_message_get_g_type      (void) G_GNUC_CONST;
00040 GType dbus_pending_call_get_g_type (void) G_GNUC_CONST;
00041 
00042 void            dbus_connection_setup_with_g_main (DBusConnection  *connection,
00043                                                    GMainContext    *context);
00044 void            dbus_server_setup_with_g_main     (DBusServer      *server,
00045                                                    GMainContext    *context);
00046 
00047 void dbus_g_proxy_send (DBusGProxy    *proxy,
00048                         DBusMessage   *message,
00049                         dbus_uint32_t *client_serial);
00050 
00051 DBusConnection*  dbus_g_connection_get_connection (DBusGConnection *gconnection);
00052 DBusGConnection* dbus_connection_get_g_connection (DBusConnection  *connection);
00053 DBusMessage*     dbus_g_message_get_message       (DBusGMessage    *gmessage);
00054 
00055 /* dbus_g_pending_call_get_pending_call() deliberately skipped for now;
00056  * not sure it makes sense to use any of the DBusPendingCall functions
00057  * on the wrapped pending call (once we have the right exported
00058  * g-functions anyhow)
00059  */
00060 
00061 gchar*            dbus_g_method_get_sender    (DBusGMethodInvocation *context);
00062 
00063 DBusMessage*      dbus_g_method_get_reply     (DBusGMethodInvocation *context);
00064 
00065 void              dbus_g_method_send_reply    (DBusGMethodInvocation *context, 
00066                                                DBusMessage *reply);
00067 
00068 G_END_DECLS
00069 
00070 #endif /* DBUS_GLIB_LOWLEVEL_H */
00071 
00072 
00073 

Generated on Tue Feb 24 16:47:59 2009 for D-BUSGLibBindings by  doxygen 1.5.1