epoc32/include/stdapis/dbus-1.0/dbus/dbus-glib-lowlevel.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     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  * Portion Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
     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 #ifdef __SYMBIAN32__
    33 IMPORT_C
    34 #endif
    35 void dbus_set_g_error (GError   **gerror,
    36                        DBusError *derror);
    37 
    38 #define DBUS_TYPE_CONNECTION      (dbus_connection_get_g_type ())
    39 #define DBUS_TYPE_MESSAGE         (dbus_message_get_g_type ())
    40 #define DBUS_TYPE_PENDING_CALL    (dbus_pending_call_get_g_type ())
    41 #ifdef __SYMBIAN32__
    42 IMPORT_C
    43 #endif
    44 GType dbus_connection_get_g_type   (void) G_GNUC_CONST;
    45 #ifdef __SYMBIAN32__
    46 IMPORT_C
    47 #endif
    48 GType dbus_message_get_g_type      (void) G_GNUC_CONST;
    49 GType dbus_pending_call_get_g_type (void) G_GNUC_CONST;
    50 
    51 #ifdef __SYMBIAN32__
    52 IMPORT_C
    53 #endif
    54 void            dbus_connection_setup_with_g_main (DBusConnection  *connection,
    55                                                    GMainContext    *context);
    56 #ifdef __SYMBIAN32__
    57 IMPORT_C
    58 #endif
    59 void            dbus_server_setup_with_g_main     (DBusServer      *server,
    60                                                    GMainContext    *context);
    61 
    62 #ifdef __SYMBIAN32__
    63 IMPORT_C
    64 #endif
    65 void dbus_g_proxy_send (DBusGProxy    *proxy,
    66                         DBusMessage   *message,
    67                         dbus_uint32_t *client_serial);
    68 
    69 #ifdef __SYMBIAN32__
    70 IMPORT_C
    71 #endif
    72 DBusConnection*  dbus_g_connection_get_connection (DBusGConnection *gconnection);
    73 #ifdef __SYMBIAN32__
    74 IMPORT_C
    75 #endif
    76 DBusGConnection* dbus_connection_get_g_connection (DBusConnection  *connection);
    77 #ifdef __SYMBIAN32__
    78 IMPORT_C
    79 #endif
    80 DBusMessage*     dbus_g_message_get_message       (DBusGMessage    *gmessage);
    81 
    82 /* dbus_g_pending_call_get_pending_call() deliberately skipped for now;
    83  * not sure it makes sense to use any of the DBusPendingCall functions
    84  * on the wrapped pending call (once we have the right exported
    85  * g-functions anyhow)
    86  */
    87 
    88 #ifdef __SYMBIAN32__
    89 IMPORT_C
    90 #endif
    91 gchar*            dbus_g_method_get_sender    (DBusGMethodInvocation *context);
    92 
    93 #ifdef __SYMBIAN32__
    94 IMPORT_C
    95 #endif
    96 DBusMessage*      dbus_g_method_get_reply     (DBusGMethodInvocation *context);
    97 
    98 #ifdef __SYMBIAN32__
    99 IMPORT_C
   100 #endif
   101 void              dbus_g_method_send_reply    (DBusGMethodInvocation *context, 
   102                                                DBusMessage *reply);
   103 
   104 G_END_DECLS
   105 
   106 #endif /* DBUS_GLIB_LOWLEVEL_H */
   107 
   108 
   109