2007-12-09 18:43:23 -08:00
|
|
|
#ifndef E_MOD_MAIN_H
|
|
|
|
#define E_MOD_MAIN_H
|
|
|
|
|
2011-06-06 10:36:38 -07:00
|
|
|
#ifdef ENABLE_NLS
|
|
|
|
# include <libintl.h>
|
|
|
|
# define D_(string) dgettext(PACKAGE, string)
|
|
|
|
#else
|
|
|
|
# define bindtextdomain(domain,dir)
|
|
|
|
# define bind_textdomain_codeset(domain,codeset)
|
|
|
|
# define D_(string) (string)
|
|
|
|
#endif
|
|
|
|
|
2007-12-09 18:43:23 -08:00
|
|
|
#define RESOLUTION_MINUTE 0
|
|
|
|
#define RESOLUTION_SECOND 1
|
|
|
|
|
|
|
|
typedef struct _Config Config;
|
|
|
|
typedef struct _Config_Item Config_Item;
|
|
|
|
|
|
|
|
struct _Config
|
|
|
|
{
|
2008-01-07 18:19:22 -08:00
|
|
|
E_Module *module;
|
|
|
|
E_Config_Dialog *config_dialog;
|
|
|
|
E_Menu *menu;
|
2008-10-22 06:53:03 -07:00
|
|
|
Eina_List *instances;
|
|
|
|
Eina_List *items;
|
2007-12-09 18:43:23 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _Config_Item
|
|
|
|
{
|
2008-01-07 18:19:22 -08:00
|
|
|
const char *id;
|
|
|
|
double poll_time;
|
|
|
|
const char *hostname;
|
|
|
|
int port;
|
2009-09-01 11:23:05 -07:00
|
|
|
int show_popup;
|
2007-12-09 18:43:23 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
EAPI extern E_Module_Api e_modapi;
|
|
|
|
|
2008-01-07 18:19:22 -08:00
|
|
|
EAPI void *e_modapi_init (E_Module * m);
|
|
|
|
EAPI int e_modapi_shutdown (E_Module * m);
|
|
|
|
EAPI int e_modapi_save (E_Module * m);
|
2007-12-09 18:43:23 -08:00
|
|
|
|
2008-01-07 18:19:22 -08:00
|
|
|
void _config_mpdule_module (Config_Item * ci);
|
|
|
|
void _mpdule_config_updated (Config_Item * ci);
|
2007-12-09 18:43:23 -08:00
|
|
|
extern Config *mpdule_config;
|
|
|
|
|
|
|
|
#endif
|