Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:55:12

0001 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
0002 /* dbus-bus.h  Convenience functions for communicating with the bus.
0003  *
0004  * Copyright (C) 2003  CodeFactory AB
0005  *
0006  * Licensed under the Academic Free License version 2.1
0007  *
0008  * This program is free software; you can redistribute it and/or modify
0009  * it under the terms of the GNU General Public License as published by
0010  * the Free Software Foundation; either version 2 of the License, or
0011  * (at your option) any later version.
0012  *
0013  * This program is distributed in the hope that it will be useful,
0014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0016  * GNU General Public License for more details.
0017  *
0018  * You should have received a copy of the GNU General Public License
0019  * along with this program; if not, write to the Free Software
0020  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
0021  *
0022  */
0023 #if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
0024 #error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
0025 #endif
0026 
0027 #ifndef DBUS_BUS_H
0028 #define DBUS_BUS_H
0029 
0030 #include <dbus/dbus-connection.h>
0031 
0032 DBUS_BEGIN_DECLS
0033 
0034 /**
0035  * @addtogroup DBusBus
0036  * @{
0037  */
0038 
0039 DBUS_EXPORT
0040 DBusConnection *dbus_bus_get              (DBusBusType     type,
0041                        DBusError      *error);
0042 DBUS_EXPORT
0043 DBusConnection *dbus_bus_get_private      (DBusBusType     type,
0044                        DBusError      *error);
0045 
0046 DBUS_EXPORT
0047 dbus_bool_t     dbus_bus_register         (DBusConnection *connection,
0048                        DBusError      *error);
0049 DBUS_EXPORT
0050 dbus_bool_t     dbus_bus_set_unique_name  (DBusConnection *connection,
0051                        const char     *unique_name);
0052 DBUS_EXPORT
0053 const char*     dbus_bus_get_unique_name  (DBusConnection *connection);
0054 DBUS_EXPORT
0055 unsigned long   dbus_bus_get_unix_user    (DBusConnection *connection,
0056                                const char     *name,
0057                                            DBusError      *error);
0058 DBUS_EXPORT
0059 char*           dbus_bus_get_id           (DBusConnection *connection,
0060                                            DBusError      *error);
0061 DBUS_EXPORT
0062 int             dbus_bus_request_name     (DBusConnection *connection,
0063                        const char     *name,
0064                        unsigned int    flags,
0065                        DBusError      *error);
0066 DBUS_EXPORT
0067 int             dbus_bus_release_name     (DBusConnection *connection,
0068                        const char     *name,
0069                        DBusError      *error);
0070 DBUS_EXPORT
0071 dbus_bool_t     dbus_bus_name_has_owner   (DBusConnection *connection,
0072                        const char     *name,
0073                        DBusError      *error);
0074 
0075 DBUS_EXPORT
0076 dbus_bool_t     dbus_bus_start_service_by_name (DBusConnection *connection,
0077                                                 const char     *name,
0078                                                 dbus_uint32_t   flags,
0079                                                 dbus_uint32_t  *reply,
0080                                                 DBusError      *error);
0081 
0082 DBUS_EXPORT
0083 void            dbus_bus_add_match        (DBusConnection *connection,
0084                                            const char     *rule,
0085                                            DBusError      *error);
0086 DBUS_EXPORT
0087 void            dbus_bus_remove_match     (DBusConnection *connection,
0088                                            const char     *rule,
0089                                            DBusError      *error);
0090 
0091 /** @} */
0092 
0093 DBUS_END_DECLS
0094 
0095 #endif /* DBUS_BUS_H */