lib/dbus/e_dbus_private.h
Go to the documentation of this file.
00001 #ifndef E_DBUS_PRIVATE_H
00002 #define E_DBUS_PRIVATE_H
00003 
00004 #include <Ecore.h>
00005 
00006 #include "E_DBus.h"
00007 
00008 #ifndef E_DBUS_COLOR_DEFAULT
00009 #define E_DBUS_COLOR_DEFAULT EINA_COLOR_CYAN
00010 #endif
00011 EAPI extern int _e_dbus_log_dom;
00012 #define DBG(...)   EINA_LOG_DOM_DBG(_e_dbus_log_dom, __VA_ARGS__)
00013 #define INFO(...)    EINA_LOG_DOM_INFO(_e_dbus_log_dom, __VA_ARGS__)
00014 #define WARN(...) EINA_LOG_DOM_WARN(_e_dbus_log_dom, __VA_ARGS__)
00015 #define ERR(...)   EINA_LOG_DOM_ERR(_e_dbus_log_dom, __VA_ARGS__)
00016 
00017 
00018 struct E_DBus_Connection
00019 {
00020   DBusBusType shared_type;
00021   DBusConnection *conn;
00022   char *conn_name;
00023 
00024   Eina_List *fd_handlers;
00025   Eina_List *timeouts;
00026   Eina_List *signal_handlers;
00027   void (*signal_dispatcher)(E_DBus_Connection *conn, DBusMessage *msg);
00028 
00029   Ecore_Idler *idler;
00030 
00031   int refcount;
00032 };
00033 
00034 struct E_DBus_Callback
00035 {
00036   E_DBus_Callback_Func cb_func;
00037   E_DBus_Unmarshal_Func unmarshal_func;
00038   E_DBus_Free_Func free_func;
00039   void *user_data;
00040 };
00041 
00042 int  e_dbus_object_init(void);
00043 void e_dbus_object_shutdown(void);
00044 
00045 extern int e_dbus_idler_active;
00046 void e_dbus_signal_handlers_clean(E_DBus_Connection *conn);
00047 void e_dbus_signal_handlers_free_all(E_DBus_Connection *conn);
00048 
00049 
00050 const char *e_dbus_basic_type_as_string(int type);
00051 
00052   
00053 #endif