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