forked from enlightenment/enlightenment
unfortunately i had to change the libe api to e_lib_ instead of e_ prefix to
avoid namespace comnflicts with the rest of e17. i simplified the including as i am sure sooner or later we will need the defines, enums etc. from other e include files so this will minimise breakage. SVN revision: 15128
This commit is contained in:
parent
684454929b
commit
2778bdf461
34
src/lib/E.h
34
src/lib/E.h
|
@ -65,31 +65,31 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* library startup and shutdown */
|
/* library startup and shutdown */
|
||||||
EAPI int e_init (const char *display);
|
EAPI int e_lib_init (const char *display);
|
||||||
EAPI int e_shutdown (void);
|
EAPI int e_lib_shutdown (void);
|
||||||
|
|
||||||
/* E startup and shutdown */
|
/* E startup and shutdown */
|
||||||
EAPI void e_restart (void);
|
EAPI void e_lib_restart (void);
|
||||||
EAPI void e_quit (void);
|
EAPI void e_lib_quit (void);
|
||||||
|
|
||||||
/* E module manipulation */
|
/* E module manipulation */
|
||||||
EAPI void e_module_enabled_set (const char *module, int enable);
|
EAPI void e_lib_module_enabled_set (const char *module, int enable);
|
||||||
EAPI void e_module_loaded_set (const char *module, int load);
|
EAPI void e_lib_module_loaded_set (const char *module, int load);
|
||||||
EAPI void e_module_list (void);
|
EAPI void e_lib_module_list (void);
|
||||||
|
|
||||||
/* E desktop manipulation */
|
/* E desktop manipulation */
|
||||||
EAPI void e_background_set (const char *bgfile);
|
EAPI void e_lib_background_set (const char *bgfile);
|
||||||
EAPI void e_background_get (void);
|
EAPI void e_lib_background_get (void);
|
||||||
|
|
||||||
/* E path information */
|
/* E path information */
|
||||||
EAPI void e_data_dirs_list (void);
|
EAPI void e_lib_data_dirs_list (void);
|
||||||
EAPI void e_image_dirs_list (void);
|
EAPI void e_lib_image_dirs_list (void);
|
||||||
EAPI void e_font_dirs_list (void);
|
EAPI void e_lib_font_dirs_list (void);
|
||||||
EAPI void e_theme_dirs_list (void);
|
EAPI void e_lib_theme_dirs_list (void);
|
||||||
EAPI void e_init_dirs_list (void);
|
EAPI void e_lib_init_dirs_list (void);
|
||||||
EAPI void e_icon_dirs_list (void);
|
EAPI void e_lib_icon_dirs_list (void);
|
||||||
EAPI void e_module_dirs_list (void);
|
EAPI void e_lib_module_dirs_list (void);
|
||||||
EAPI void e_background_dirs_list (void);
|
EAPI void e_lib_background_dirs_list (void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,16 +21,7 @@
|
||||||
#include <Ecore.h>
|
#include <Ecore.h>
|
||||||
#include <Ecore_Ipc.h>
|
#include <Ecore_Ipc.h>
|
||||||
#include "E.h"
|
#include "E.h"
|
||||||
#include "e_private.h"
|
#include "e.h"
|
||||||
|
|
||||||
#define E_TYPEDEFS 1
|
|
||||||
#include "e_config.h"
|
|
||||||
#include "e_ipc_codec.h"
|
|
||||||
#undef E_TYPEDEFS
|
|
||||||
#include "e_config.h"
|
|
||||||
#include "e_ipc_codec.h"
|
|
||||||
#define E_H
|
|
||||||
#include "e_ipc_codec.c"
|
|
||||||
|
|
||||||
typedef struct _Opt Opt;
|
typedef struct _Opt Opt;
|
||||||
|
|
||||||
|
@ -80,7 +71,7 @@ int E_RESPONSE_BACKGROUND_DIRS_LIST = 0;
|
||||||
* If parameter is null try to use DISPLAY env var.
|
* If parameter is null try to use DISPLAY env var.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
e_init(const char* display)
|
e_lib_init(const char* display)
|
||||||
{
|
{
|
||||||
char *disp, *pos;
|
char *disp, *pos;
|
||||||
int free_disp;
|
int free_disp;
|
||||||
|
@ -95,7 +86,7 @@ e_init(const char* display)
|
||||||
disp = getenv("DISPLAY");
|
disp = getenv("DISPLAY");
|
||||||
|
|
||||||
if (!disp)
|
if (!disp)
|
||||||
fprintf(stderr, "ERROR: No display parameter passed to e_init, and no DISPLAY variable\n");
|
fprintf(stderr, "ERROR: No display parameter passed to e_lib_init, and no DISPLAY variable\n");
|
||||||
|
|
||||||
pos = strrchr(disp, ':');
|
pos = strrchr(disp, ':');
|
||||||
if (!pos)
|
if (!pos)
|
||||||
|
@ -169,7 +160,7 @@ e_init(const char* display)
|
||||||
* close our connection to E
|
* close our connection to E
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
e_shutdown(void)
|
e_lib_shutdown(void)
|
||||||
{
|
{
|
||||||
e_ipc_codec_shutdown();
|
e_ipc_codec_shutdown();
|
||||||
_e_ipc_shutdown();
|
_e_ipc_shutdown();
|
||||||
|
@ -181,19 +172,19 @@ e_shutdown(void)
|
||||||
|
|
||||||
/* actual IPC calls */
|
/* actual IPC calls */
|
||||||
void
|
void
|
||||||
e_restart(void)
|
e_lib_restart(void)
|
||||||
{
|
{
|
||||||
_e_ipc_call(E_IPC_OP_RESTART, NULL);
|
_e_ipc_call(E_IPC_OP_RESTART, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
e_quit(void)
|
e_lib_quit(void)
|
||||||
{
|
{
|
||||||
_e_ipc_call(E_IPC_OP_SHUTDOWN, NULL);
|
_e_ipc_call(E_IPC_OP_SHUTDOWN, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
e_module_enabled_set(const char *module, int enable)
|
e_lib_module_enabled_set(const char *module, int enable)
|
||||||
{
|
{
|
||||||
if (!module)
|
if (!module)
|
||||||
return;
|
return;
|
||||||
|
@ -205,7 +196,7 @@ e_module_enabled_set(const char *module, int enable)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
e_module_load_set(const char *module, int load)
|
e_lib_module_load_set(const char *module, int load)
|
||||||
{
|
{
|
||||||
if (!module)
|
if (!module)
|
||||||
return;
|
return;
|
||||||
|
@ -217,13 +208,13 @@ e_module_load_set(const char *module, int load)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
e_module_list(void)
|
e_lib_module_list(void)
|
||||||
{
|
{
|
||||||
_e_ipc_call(E_IPC_OP_MODULE_LIST, NULL);
|
_e_ipc_call(E_IPC_OP_MODULE_LIST, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
e_background_set(const char *bgfile)
|
e_lib_background_set(const char *bgfile)
|
||||||
{
|
{
|
||||||
if (!bgfile)
|
if (!bgfile)
|
||||||
return;
|
return;
|
||||||
|
@ -232,62 +223,62 @@ e_background_set(const char *bgfile)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
e_background_get(void)
|
e_lib_background_get(void)
|
||||||
{
|
{
|
||||||
_e_ipc_call(E_IPC_OP_BG_GET, NULL);
|
_e_ipc_call(E_IPC_OP_BG_GET, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
e_data_dirs_list(void)
|
e_lib_data_dirs_list(void)
|
||||||
{
|
{
|
||||||
char *type = "data";
|
char *type = "data";
|
||||||
_e_ipc_call(E_IPC_OP_DIRS_LIST, &type);
|
_e_ipc_call(E_IPC_OP_DIRS_LIST, &type);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
e_image_dirs_list(void)
|
e_lib_image_dirs_list(void)
|
||||||
{
|
{
|
||||||
char *type = "images";
|
char *type = "images";
|
||||||
_e_ipc_call(E_IPC_OP_DIRS_LIST, &type);
|
_e_ipc_call(E_IPC_OP_DIRS_LIST, &type);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
e_font_dirs_list(void)
|
e_lib_font_dirs_list(void)
|
||||||
{
|
{
|
||||||
char *type = "fonts";
|
char *type = "fonts";
|
||||||
_e_ipc_call(E_IPC_OP_DIRS_LIST, &type);
|
_e_ipc_call(E_IPC_OP_DIRS_LIST, &type);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
e_theme_dirs_list(void)
|
e_lib_theme_dirs_list(void)
|
||||||
{
|
{
|
||||||
char *type = "themes";
|
char *type = "themes";
|
||||||
_e_ipc_call(E_IPC_OP_DIRS_LIST, &type);
|
_e_ipc_call(E_IPC_OP_DIRS_LIST, &type);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
e_init_dirs_list(void)
|
e_lib_init_dirs_list(void)
|
||||||
{
|
{
|
||||||
char *type = "inits";
|
char *type = "inits";
|
||||||
_e_ipc_call(E_IPC_OP_DIRS_LIST, &type);
|
_e_ipc_call(E_IPC_OP_DIRS_LIST, &type);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
e_icon_dirs_list(void)
|
e_lib_icon_dirs_list(void)
|
||||||
{
|
{
|
||||||
char *type = "icons";
|
char *type = "icons";
|
||||||
_e_ipc_call(E_IPC_OP_DIRS_LIST, &type);
|
_e_ipc_call(E_IPC_OP_DIRS_LIST, &type);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
e_module_dirs_list(void)
|
e_lib_module_dirs_list(void)
|
||||||
{
|
{
|
||||||
char *type = "modules";
|
char *type = "modules";
|
||||||
_e_ipc_call(E_IPC_OP_DIRS_LIST, &type);
|
_e_ipc_call(E_IPC_OP_DIRS_LIST, &type);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
e_background_dirs_list(void)
|
e_lib_background_dirs_list(void)
|
||||||
{
|
{
|
||||||
char *type = "backgrounds";
|
char *type = "backgrounds";
|
||||||
_e_ipc_call(E_IPC_OP_DIRS_LIST, &type);
|
_e_ipc_call(E_IPC_OP_DIRS_LIST, &type);
|
||||||
|
|
Loading…
Reference in New Issue