entrance: final step to split configuration panel code, add call to init and shutdown generic interface. Add files to autotools

This commit is contained in:
Michael Bouchaud 2014-03-20 00:44:20 +00:00
parent 88b85be09b
commit 847ac65b7e
4 changed files with 32 additions and 1 deletions

View File

@ -18,6 +18,10 @@ entrance_client.h \
entrance_client.c \
entrance_conf.h \
entrance_conf.c \
entrance_conf_main.h \
entrance_conf_main.c \
entrance_conf_user.h \
entrance_conf_user.c \
entrance_connect.h \
entrance_connect.c \
entrance_fill.h \

View File

@ -62,11 +62,15 @@ main(int argc, char **argv)
entrance_login_init();
PT("gui init\n");
if (!entrance_gui_init(theme)) return EXIT_FAILURE;
PT("conf init\n");
entrance_conf_init();
PT("connect init\n");
entrance_connect_init();
elm_run();
PT("connect shutdown\n");
entrance_connect_shutdown();
PT("conf shutdown\n");
entrance_conf_init();
PT("gui shutdown\n");
entrance_gui_shutdown();
PT("login shutdown\n");

View File

@ -11,11 +11,13 @@
#include "../event/entrance_event.h"
#include "entrance_gui.h"
#include "entrance_fill.h"
#include "entrance_conf.h"
#include "entrance_conf_main.h"
#include "entrance_conf_user.h"
#include "entrance_connect.h"
#include "entrance_client.h"
#include "entrance_gui.h"
#include "entrance_fill.h"
#include "entrance_login.h"
#define PT(f, x...) \

View File

@ -1,6 +1,27 @@
#ifndef ENTRANCE_CONFIG_H
#define ENTRANCE_CONFIG_H
typedef struct Entrance_Conf_Background_
{
const char *path;
const char *group;
const char *name;
} Entrance_Conf_Background;
typedef void (*Entrance_Conf_Begin) (void);
typedef void (*Entrance_Conf_End) (void);
typedef Evas_Object *(*Entrance_Conf_Build) (Evas_Object *obj);
typedef Eina_Bool (*Entrance_Conf_Check) (void);
typedef void (*Entrance_Conf_Apply) (void);
void entrance_conf_init(void);
void entrance_conf_shutdown(void);
void entrance_conf_module_register(const char *label, Entrance_Conf_Begin begin, Entrance_Conf_End end, Entrance_Conf_Build build, Entrance_Conf_Check check, Entrance_Conf_Apply apply);
void entrance_conf_begin(Evas_Object *obj, Evas_Object *parent);
void entrance_conf_changed(void);
Eina_List *entrance_conf_backgrounds_get(Evas_Object *obj, const char *user);
Entrance_Fill *entrance_conf_background_fill_get(void);
#endif /* ENTRANCE_CONFIG_H */