Main Page   Modules   Data Structures   File List   Data Fields   Related Pages  

dbus-bus.h

00001 /* -*- mode: C; c-file-style: "gnu" -*- */
00002 /* dbus-bus.h  Convenience functions for communicating with the bus.
00003  *
00004  * Copyright (C) 2003  CodeFactory AB
00005  *
00006  * Licensed under the Academic Free License version 1.2
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 #if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
00024 #error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
00025 #endif
00026 
00027 #ifndef DBUS_BUS_H
00028 #define DBUS_BUS_H
00029 
00030 #include <dbus/dbus-connection.h>
00031 
00032 DBUS_BEGIN_DECLS;
00033 
00034 typedef enum
00035 {
00036   DBUS_BUS_SESSION,    
00037   DBUS_BUS_SYSTEM,     
00038   DBUS_BUS_ACTIVATION  
00039 } DBusBusType;
00040 
00041 DBusConnection *dbus_bus_get              (DBusBusType     type,
00042                                            DBusError      *error);
00043 dbus_bool_t     dbus_bus_register         (DBusConnection *connection,
00044                                            DBusError      *error);
00045 dbus_bool_t     dbus_bus_set_base_service (DBusConnection *connection,
00046                                            const char     *base_service);
00047 const char*     dbus_bus_get_base_service (DBusConnection *connection);
00048 int             dbus_bus_acquire_service  (DBusConnection *connection,
00049                                            const char     *service_name,
00050                                            unsigned int    flags,
00051                                            DBusError      *error);
00052 dbus_bool_t     dbus_bus_service_exists   (DBusConnection *connection,
00053                                            const char     *service_name,
00054                                            DBusError      *error);
00055 
00056 dbus_bool_t     dbus_bus_activate_service (DBusConnection *connection,
00057                                            const char     *service_name,
00058                                            dbus_uint32_t   flags,
00059                                            dbus_uint32_t  *reply,
00060                                            DBusError      *error);
00061 
00062 DBUS_END_DECLS;
00063 
00064 #endif /* DBUS_BUS_H */

Generated on Wed Oct 22 14:05:01 2003 for D-BUS by doxygen1.3-rc3