epoc32/include/stdapis/dbus-1.0/dbus/dbus-bus.h
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/dbus-1.0/dbus/dbus-bus.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,117 @@
     1.4 +/* -*- mode: C; c-file-style: "gnu" -*- */
     1.5 +/* dbus-bus.h  Convenience functions for communicating with the bus.
     1.6 + *
     1.7 + * Copyright (C) 2003  CodeFactory AB
     1.8 + * Portion Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
     1.9 + * Licensed under the Academic Free License version 2.1
    1.10 + * 
    1.11 + * This program is free software; you can redistribute it and/or modify
    1.12 + * it under the terms of the GNU General Public License as published by
    1.13 + * the Free Software Foundation; either version 2 of the License, or
    1.14 + * (at your option) any later version.
    1.15 + *
    1.16 + * This program is distributed in the hope that it will be useful,
    1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.19 + * GNU General Public License for more details.
    1.20 + * 
    1.21 + * You should have received a copy of the GNU General Public License
    1.22 + * along with this program; if not, write to the Free Software
    1.23 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.24 + *
    1.25 + */
    1.26 +#if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
    1.27 +#error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
    1.28 +#endif
    1.29 +
    1.30 +#ifndef DBUS_BUS_H
    1.31 +#define DBUS_BUS_H
    1.32 +
    1.33 +#include <dbus/dbus-connection.h>
    1.34 +
    1.35 +DBUS_BEGIN_DECLS
    1.36 +
    1.37 +
    1.38 +/*
    1.39 + * @addtogroup DBusBus
    1.40 + * @{
    1.41 + */
    1.42 +
    1.43 +#ifdef __SYMBIAN32__
    1.44 +IMPORT_C
    1.45 +#endif
    1.46 +DBusConnection *dbus_bus_get              (DBusBusType     type,
    1.47 +					   DBusError      *error);
    1.48 +#ifdef __SYMBIAN32__
    1.49 +IMPORT_C
    1.50 +#endif
    1.51 +DBusConnection *dbus_bus_get_private      (DBusBusType     type,
    1.52 +					   DBusError      *error);
    1.53 +
    1.54 +#ifdef __SYMBIAN32__
    1.55 +IMPORT_C
    1.56 +#endif
    1.57 +dbus_bool_t     dbus_bus_register         (DBusConnection *connection,
    1.58 +					   DBusError      *error);
    1.59 +#ifdef __SYMBIAN32__
    1.60 +IMPORT_C
    1.61 +#endif
    1.62 +dbus_bool_t     dbus_bus_set_unique_name  (DBusConnection *connection,
    1.63 +					   const char     *unique_name);
    1.64 +#ifdef __SYMBIAN32__
    1.65 +IMPORT_C
    1.66 +#endif
    1.67 +const char*     dbus_bus_get_unique_name  (DBusConnection *connection);
    1.68 +#ifdef __SYMBIAN32__
    1.69 +IMPORT_C
    1.70 +#endif
    1.71 +unsigned long   dbus_bus_get_unix_user    (DBusConnection *connection,
    1.72 +			                   const char     *name,
    1.73 +                                           DBusError      *error);
    1.74 +#ifdef __SYMBIAN32__
    1.75 +IMPORT_C
    1.76 +#endif
    1.77 +int             dbus_bus_request_name     (DBusConnection *connection,
    1.78 +					   const char     *name,
    1.79 +					   unsigned int    flags,
    1.80 +					   DBusError      *error);
    1.81 +#ifdef __SYMBIAN32__
    1.82 +IMPORT_C
    1.83 +#endif
    1.84 +int             dbus_bus_release_name     (DBusConnection *connection,
    1.85 +					   const char     *name,
    1.86 +					   DBusError      *error);
    1.87 +#ifdef __SYMBIAN32__
    1.88 +IMPORT_C
    1.89 +#endif
    1.90 +dbus_bool_t     dbus_bus_name_has_owner   (DBusConnection *connection,
    1.91 +					   const char     *name,
    1.92 +					   DBusError      *error);
    1.93 +
    1.94 +#ifdef __SYMBIAN32__
    1.95 +IMPORT_C
    1.96 +#endif
    1.97 +dbus_bool_t     dbus_bus_start_service_by_name (DBusConnection *connection,
    1.98 +                                                const char     *name,
    1.99 +                                                dbus_uint32_t   flags,
   1.100 +                                                dbus_uint32_t  *reply,
   1.101 +                                                DBusError      *error);
   1.102 +
   1.103 +#ifdef __SYMBIAN32__
   1.104 +IMPORT_C
   1.105 +#endif
   1.106 +void            dbus_bus_add_match        (DBusConnection *connection,
   1.107 +                                           const char     *rule,
   1.108 +                                           DBusError      *error);
   1.109 +#ifdef __SYMBIAN32__
   1.110 +IMPORT_C
   1.111 +#endif
   1.112 +void            dbus_bus_remove_match     (DBusConnection *connection,
   1.113 +                                           const char     *rule,
   1.114 +                                           DBusError      *error);
   1.115 +
   1.116 +/** @} */
   1.117 +
   1.118 +DBUS_END_DECLS
   1.119 +
   1.120 +#endif /* DBUS_BUS_H */