sl@0: /* -*- mode: C; c-file-style: "gnu" -*- */ sl@0: /* dbus-bus.h Convenience functions for communicating with the bus. sl@0: * sl@0: * Copyright (C) 2003 CodeFactory AB sl@0: * Portion Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. sl@0: * Licensed under the Academic Free License version 2.1 sl@0: * sl@0: * This program is free software; you can redistribute it and/or modify sl@0: * it under the terms of the GNU General Public License as published by sl@0: * the Free Software Foundation; either version 2 of the License, or sl@0: * (at your option) any later version. sl@0: * sl@0: * This program is distributed in the hope that it will be useful, sl@0: * but WITHOUT ANY WARRANTY; without even the implied warranty of sl@0: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the sl@0: * GNU General Public License for more details. sl@0: * sl@0: * You should have received a copy of the GNU General Public License sl@0: * along with this program; if not, write to the Free Software sl@0: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA sl@0: * sl@0: */ sl@0: #if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION) sl@0: #error "Only can be included directly, this file may disappear or change contents." sl@0: #endif sl@0: sl@0: #ifndef DBUS_BUS_H sl@0: #define DBUS_BUS_H sl@0: sl@0: #include sl@0: sl@0: DBUS_BEGIN_DECLS sl@0: sl@0: sl@0: /* sl@0: * @addtogroup DBusBus sl@0: * @{ sl@0: */ sl@0: sl@0: #ifdef __SYMBIAN32__ sl@0: IMPORT_C sl@0: #endif sl@0: DBusConnection *dbus_bus_get (DBusBusType type, sl@0: DBusError *error); sl@0: #ifdef __SYMBIAN32__ sl@0: IMPORT_C sl@0: #endif sl@0: DBusConnection *dbus_bus_get_private (DBusBusType type, sl@0: DBusError *error); sl@0: sl@0: #ifdef __SYMBIAN32__ sl@0: IMPORT_C sl@0: #endif sl@0: dbus_bool_t dbus_bus_register (DBusConnection *connection, sl@0: DBusError *error); sl@0: #ifdef __SYMBIAN32__ sl@0: IMPORT_C sl@0: #endif sl@0: dbus_bool_t dbus_bus_set_unique_name (DBusConnection *connection, sl@0: const char *unique_name); sl@0: #ifdef __SYMBIAN32__ sl@0: IMPORT_C sl@0: #endif sl@0: const char* dbus_bus_get_unique_name (DBusConnection *connection); sl@0: #ifdef __SYMBIAN32__ sl@0: IMPORT_C sl@0: #endif sl@0: unsigned long dbus_bus_get_unix_user (DBusConnection *connection, sl@0: const char *name, sl@0: DBusError *error); sl@0: #ifdef __SYMBIAN32__ sl@0: IMPORT_C sl@0: #endif sl@0: int dbus_bus_request_name (DBusConnection *connection, sl@0: const char *name, sl@0: unsigned int flags, sl@0: DBusError *error); sl@0: #ifdef __SYMBIAN32__ sl@0: IMPORT_C sl@0: #endif sl@0: int dbus_bus_release_name (DBusConnection *connection, sl@0: const char *name, sl@0: DBusError *error); sl@0: #ifdef __SYMBIAN32__ sl@0: IMPORT_C sl@0: #endif sl@0: dbus_bool_t dbus_bus_name_has_owner (DBusConnection *connection, sl@0: const char *name, sl@0: DBusError *error); sl@0: sl@0: #ifdef __SYMBIAN32__ sl@0: IMPORT_C sl@0: #endif sl@0: dbus_bool_t dbus_bus_start_service_by_name (DBusConnection *connection, sl@0: const char *name, sl@0: dbus_uint32_t flags, sl@0: dbus_uint32_t *reply, sl@0: DBusError *error); sl@0: sl@0: #ifdef __SYMBIAN32__ sl@0: IMPORT_C sl@0: #endif sl@0: void dbus_bus_add_match (DBusConnection *connection, sl@0: const char *rule, sl@0: DBusError *error); sl@0: #ifdef __SYMBIAN32__ sl@0: IMPORT_C sl@0: #endif sl@0: void dbus_bus_remove_match (DBusConnection *connection, sl@0: const char *rule, sl@0: DBusError *error); sl@0: sl@0: /** @} */ sl@0: sl@0: DBUS_END_DECLS sl@0: sl@0: #endif /* DBUS_BUS_H */