/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ /* dbus-shared.h Stuff used by both dbus/dbus.h low-level and C/C++ binding APIs * * Copyright (C) 2004 Red Hat, Inc. * * Licensed under the Academic Free License version 2.1 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * */ #ifndef DBUS_SHARED_H #define DBUS_SHARED_H /* Don't include anything in here from anywhere else. It's * intended for use by any random library. */ #ifdef __cplusplus extern "C" { #if 0 } /* avoids confusing emacs indentation */ #endif #endif /* Normally docs are in .c files, but there isn't a .c file for this. */ /** * @defgroup DBusShared Shared constants * @ingroup DBus * * @brief Shared header included by both libdbus and C/C++ bindings such as the GLib bindings. * * Usually a C/C++ binding such as the GLib or Qt binding won't want to include dbus.h in its * public headers. However, a few constants and macros may be useful to include; those are * found here and in dbus-protocol.h * * @{ */ /** * Well-known bus types. See dbus_bus_get(). */ DBusBusType; /** * Results that a message handler can return. */ DBusHandlerResult; /* Bus names */ /** The bus name used to talk to the bus itself. */ #define DBUS_SERVICE_DBUS … /* Paths */ /** The object path used to talk to the bus itself. */ #define DBUS_PATH_DBUS … /** The object path used in local/in-process-generated messages. */ #define DBUS_PATH_LOCAL … /* Interfaces, these #define don't do much other than * catch typos at compile time */ /** The interface exported by the object with #DBUS_SERVICE_DBUS and #DBUS_PATH_DBUS */ #define DBUS_INTERFACE_DBUS … /** The monitoring interface exported by the dbus-daemon */ #define DBUS_INTERFACE_MONITORING … /** The verbose interface exported by the dbus-daemon */ #define DBUS_INTERFACE_VERBOSE … /** The interface supported by introspectable objects */ #define DBUS_INTERFACE_INTROSPECTABLE … /** The interface supported by objects with properties */ #define DBUS_INTERFACE_PROPERTIES … /** The interface supported by most dbus peers */ #define DBUS_INTERFACE_PEER … /** This is a special interface whose methods can only be invoked * by the local implementation (messages from remote apps aren't * allowed to specify this interface). */ #define DBUS_INTERFACE_LOCAL … /* Owner flags */ #define DBUS_NAME_FLAG_ALLOW_REPLACEMENT … #define DBUS_NAME_FLAG_REPLACE_EXISTING … #define DBUS_NAME_FLAG_DO_NOT_QUEUE … /* Replies to request for a name */ #define DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER … #define DBUS_REQUEST_NAME_REPLY_IN_QUEUE … #define DBUS_REQUEST_NAME_REPLY_EXISTS … #define DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER … /* Replies to releasing a name */ #define DBUS_RELEASE_NAME_REPLY_RELEASED … #define DBUS_RELEASE_NAME_REPLY_NON_EXISTENT … #define DBUS_RELEASE_NAME_REPLY_NOT_OWNER … /* Replies to service starts */ #define DBUS_START_REPLY_SUCCESS … #define DBUS_START_REPLY_ALREADY_RUNNING … /** @} */ #ifdef __cplusplus #if 0 { /* avoids confusing emacs indentation */ #endif } #endif #endif /* DBUS_SHARED_H */