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_ACTIVATION 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 #ifdef __cplusplus 00050 } 00051 #endif 00052 00053 #endif /* DBUS_PROTOCOL_H */