ossrv_pub/dbus/inc/dbus-bus.h
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 /* -*- mode: C; c-file-style: "gnu" -*- */
       
     2 /* dbus-bus.h  Convenience functions for communicating with the bus.
       
     3  *
       
     4  * Copyright (C) 2003  CodeFactory AB
       
     5  * Portion Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
       
     6  * Licensed under the Academic Free License version 2.1
       
     7  * 
       
     8  * This program is free software; you can redistribute it and/or modify
       
     9  * it under the terms of the GNU General Public License as published by
       
    10  * the Free Software Foundation; either version 2 of the License, or
       
    11  * (at your option) any later version.
       
    12  *
       
    13  * This program is distributed in the hope that it will be useful,
       
    14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    16  * GNU General Public License for more details.
       
    17  * 
       
    18  * You should have received a copy of the GNU General Public License
       
    19  * along with this program; if not, write to the Free Software
       
    20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
       
    21  *
       
    22  */
       
    23 #if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
       
    24 #error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
       
    25 #endif
       
    26 
       
    27 #ifndef DBUS_BUS_H
       
    28 #define DBUS_BUS_H
       
    29 
       
    30 #include <dbus/dbus-connection.h>
       
    31 
       
    32 DBUS_BEGIN_DECLS
       
    33 
       
    34 
       
    35 /*
       
    36  * @addtogroup DBusBus
       
    37  * @{
       
    38  */
       
    39 
       
    40 #ifdef __SYMBIAN32__
       
    41 IMPORT_C
       
    42 #endif
       
    43 DBusConnection *dbus_bus_get              (DBusBusType     type,
       
    44 					   DBusError      *error);
       
    45 #ifdef __SYMBIAN32__
       
    46 IMPORT_C
       
    47 #endif
       
    48 DBusConnection *dbus_bus_get_private      (DBusBusType     type,
       
    49 					   DBusError      *error);
       
    50 
       
    51 #ifdef __SYMBIAN32__
       
    52 IMPORT_C
       
    53 #endif
       
    54 dbus_bool_t     dbus_bus_register         (DBusConnection *connection,
       
    55 					   DBusError      *error);
       
    56 #ifdef __SYMBIAN32__
       
    57 IMPORT_C
       
    58 #endif
       
    59 dbus_bool_t     dbus_bus_set_unique_name  (DBusConnection *connection,
       
    60 					   const char     *unique_name);
       
    61 #ifdef __SYMBIAN32__
       
    62 IMPORT_C
       
    63 #endif
       
    64 const char*     dbus_bus_get_unique_name  (DBusConnection *connection);
       
    65 #ifdef __SYMBIAN32__
       
    66 IMPORT_C
       
    67 #endif
       
    68 unsigned long   dbus_bus_get_unix_user    (DBusConnection *connection,
       
    69 			                   const char     *name,
       
    70                                            DBusError      *error);
       
    71 #ifdef __SYMBIAN32__
       
    72 IMPORT_C
       
    73 #endif
       
    74 int             dbus_bus_request_name     (DBusConnection *connection,
       
    75 					   const char     *name,
       
    76 					   unsigned int    flags,
       
    77 					   DBusError      *error);
       
    78 #ifdef __SYMBIAN32__
       
    79 IMPORT_C
       
    80 #endif
       
    81 int             dbus_bus_release_name     (DBusConnection *connection,
       
    82 					   const char     *name,
       
    83 					   DBusError      *error);
       
    84 #ifdef __SYMBIAN32__
       
    85 IMPORT_C
       
    86 #endif
       
    87 dbus_bool_t     dbus_bus_name_has_owner   (DBusConnection *connection,
       
    88 					   const char     *name,
       
    89 					   DBusError      *error);
       
    90 
       
    91 #ifdef __SYMBIAN32__
       
    92 IMPORT_C
       
    93 #endif
       
    94 dbus_bool_t     dbus_bus_start_service_by_name (DBusConnection *connection,
       
    95                                                 const char     *name,
       
    96                                                 dbus_uint32_t   flags,
       
    97                                                 dbus_uint32_t  *reply,
       
    98                                                 DBusError      *error);
       
    99 
       
   100 #ifdef __SYMBIAN32__
       
   101 IMPORT_C
       
   102 #endif
       
   103 void            dbus_bus_add_match        (DBusConnection *connection,
       
   104                                            const char     *rule,
       
   105                                            DBusError      *error);
       
   106 #ifdef __SYMBIAN32__
       
   107 IMPORT_C
       
   108 #endif
       
   109 void            dbus_bus_remove_match     (DBusConnection *connection,
       
   110                                            const char     *rule,
       
   111                                            DBusError      *error);
       
   112 
       
   113 /** @} */
       
   114 
       
   115 DBUS_END_DECLS
       
   116 
       
   117 #endif /* DBUS_BUS_H */