Path: blob/master/thirdparty/linuxbsd_headers/dbus/dbus-bus.h
9898 views
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */1/* dbus-bus.h Convenience functions for communicating with the bus.2*3* Copyright (C) 2003 CodeFactory AB4*5* Licensed under the Academic Free License version 2.16*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License as published by9* the Free Software Foundation; either version 2 of the License, or10* (at your option) any later version.11*12* This program is distributed in the hope that it will be useful,13* but WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15* GNU General Public License for more details.16*17* You should have received a copy of the GNU General Public License18* along with this program; if not, write to the Free Software19* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA20*21*/22#if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)23#error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."24#endif2526#ifndef DBUS_BUS_H27#define DBUS_BUS_H2829#include <dbus/dbus-connection.h>3031DBUS_BEGIN_DECLS3233/**34* @addtogroup DBusBus35* @{36*/3738DBUS_EXPORT39DBusConnection *dbus_bus_get (DBusBusType type,40DBusError *error);41DBUS_EXPORT42DBusConnection *dbus_bus_get_private (DBusBusType type,43DBusError *error);4445DBUS_EXPORT46dbus_bool_t dbus_bus_register (DBusConnection *connection,47DBusError *error);48DBUS_EXPORT49dbus_bool_t dbus_bus_set_unique_name (DBusConnection *connection,50const char *unique_name);51DBUS_EXPORT52const char* dbus_bus_get_unique_name (DBusConnection *connection);53DBUS_EXPORT54unsigned long dbus_bus_get_unix_user (DBusConnection *connection,55const char *name,56DBusError *error);57DBUS_EXPORT58char* dbus_bus_get_id (DBusConnection *connection,59DBusError *error);60DBUS_EXPORT61int dbus_bus_request_name (DBusConnection *connection,62const char *name,63unsigned int flags,64DBusError *error);65DBUS_EXPORT66int dbus_bus_release_name (DBusConnection *connection,67const char *name,68DBusError *error);69DBUS_EXPORT70dbus_bool_t dbus_bus_name_has_owner (DBusConnection *connection,71const char *name,72DBusError *error);7374DBUS_EXPORT75dbus_bool_t dbus_bus_start_service_by_name (DBusConnection *connection,76const char *name,77dbus_uint32_t flags,78dbus_uint32_t *reply,79DBusError *error);8081DBUS_EXPORT82void dbus_bus_add_match (DBusConnection *connection,83const char *rule,84DBusError *error);85DBUS_EXPORT86void dbus_bus_remove_match (DBusConnection *connection,87const char *rule,88DBusError *error);8990/** @} */9192DBUS_END_DECLS9394#endif /* DBUS_BUS_H */959697