2007-09-25 07:26:36 -07:00
|
|
|
#ifdef E_TYPEDEFS
|
|
|
|
|
2022-06-02 10:50:00 -07:00
|
|
|
typedef struct _E_Msgbus_Data E_Msgbus_Data;
|
|
|
|
typedef struct _E_Msgbus_Data_Screensaver_Inhibit E_Msgbus_Data_Screensaver_Inhibit;
|
2007-09-25 07:26:36 -07:00
|
|
|
|
|
|
|
#else
|
|
|
|
#ifndef E_MSGBUS_H
|
|
|
|
#define E_MSGBUS_H
|
|
|
|
|
2013-04-23 08:08:29 -07:00
|
|
|
/* This is the dbus subsystem, but eldbus namespace is taken by eldbus */
|
2007-09-25 07:26:36 -07:00
|
|
|
|
2012-06-20 23:19:43 -07:00
|
|
|
struct _E_Msgbus_Data
|
2007-09-25 07:26:36 -07:00
|
|
|
{
|
2022-06-02 02:02:17 -07:00
|
|
|
Eldbus_Connection *conn;
|
2022-06-02 10:50:00 -07:00
|
|
|
Eldbus_Service_Interface *e_iface;
|
|
|
|
Eldbus_Service_Interface *screensaver_iface;
|
2022-08-09 01:19:19 -07:00
|
|
|
Eldbus_Service_Interface *screensaver_iface2;
|
2022-06-02 10:50:00 -07:00
|
|
|
Eina_List *screensaver_inhibits;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _E_Msgbus_Data_Screensaver_Inhibit
|
|
|
|
{
|
|
|
|
const char *application;
|
|
|
|
const char *reason;
|
|
|
|
const char *sender;
|
|
|
|
unsigned int cookie;
|
2007-09-25 07:26:36 -07:00
|
|
|
};
|
|
|
|
|
2010-11-22 07:21:32 -08:00
|
|
|
EINTERN int e_msgbus_init(void);
|
|
|
|
EINTERN int e_msgbus_shutdown(void);
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API Eldbus_Service_Interface *e_msgbus_interface_attach(const Eldbus_Service_Interface_Desc *desc);
|
2022-06-02 10:50:00 -07:00
|
|
|
E_API void e_msgbus_screensaver_inhibit_remove(unsigned int cookie);
|
|
|
|
|
|
|
|
E_API extern E_Msgbus_Data *e_msgbus_data;
|
2007-09-25 07:26:36 -07:00
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|