Main Page | Modules | Data Structures | Directories | File List | Data Fields | Related Pages

dbus-shared.h

00001 /* -*- mode: C; c-file-style: "gnu" -*- */
00002 /* dbus-shared.h  Stuff used by both dbus/dbus.h low-level and C/C++ binding APIs
00003  *
00004  * Copyright (C) 2004 Red Hat, Inc.
00005  *
00006  * Licensed under the Academic Free License version 2.1
00007  * 
00008  * This program is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  * 
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program; if not, write to the Free Software
00020  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021  *
00022  */
00023 
00024 #ifndef DBUS_SHARED_H
00025 #define DBUS_SHARED_H
00026 
00027 /* Don't include anything in here from anywhere else. It's
00028  * intended for use by any random library.
00029  */
00030 
00031 #ifdef  __cplusplus
00032 extern "C" {
00033 #endif
00034 
00035 typedef enum
00036 {
00037   DBUS_BUS_SESSION,    
00038   DBUS_BUS_SYSTEM,     
00039   DBUS_BUS_STARTER     
00040 } DBusBusType;
00041 
00042 typedef enum
00043 {
00044   DBUS_HANDLER_RESULT_HANDLED,         
00045   DBUS_HANDLER_RESULT_NOT_YET_HANDLED, 
00046   DBUS_HANDLER_RESULT_NEED_MEMORY      
00047 } DBusHandlerResult;
00048 
00049 /* Services */
00050 #define DBUS_SERVICE_DBUS      "org.freedesktop.DBus"
00051 
00052 /* Paths */
00053 #define DBUS_PATH_DBUS  "/org/freedesktop/DBus"
00054 #define DBUS_PATH_LOCAL "/org/freedesktop/DBus/Local"
00055 
00056 /* Interfaces, these #define don't do much other than
00057  * catch typos at compile time
00058  */
00059 #define DBUS_INTERFACE_DBUS           "org.freedesktop.DBus"
00060 #define DBUS_INTERFACE_INTROSPECTABLE "org.freedesktop.DBus.Introspectable"
00061 #define DBUS_INTERFACE_PROPERTIES     "org.freedesktop.DBus.Properties"
00062 #define DBUS_INTERFACE_PEER           "org.freedesktop.DBus.Peer"
00063 
00064 /* This is a special interface whose methods can only be invoked
00065  * by the local implementation (messages from remote apps aren't
00066  * allowed to specify this interface).
00067  */
00068 #define DBUS_INTERFACE_LOCAL "org.freedesktop.DBus.Local"
00069 
00070 /* Owner flags */
00071 #define DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT 0x1
00072 #define DBUS_NAME_FLAG_REPLACE_EXISTING     0x2
00073 
00074 /* Replies to request for a name */
00075 #define DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER  1
00076 #define DBUS_REQUEST_NAME_REPLY_IN_QUEUE       2
00077 #define DBUS_REQUEST_NAME_REPLY_EXISTS         3
00078 #define DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER  4
00079 
00080 /* Replies to service starts */
00081 #define DBUS_START_REPLY_SUCCESS         1
00082 #define DBUS_START_REPLY_ALREADY_RUNNING 2
00083 
00084 #ifdef __cplusplus
00085 }
00086 #endif
00087 
00088 #endif /* DBUS_PROTOCOL_H */

Generated on Tue Aug 30 16:35:51 2005 for D-BUS by  doxygen 1.4.3