For internal use only.
This file contains the implementation of the event_init() function, used to initialize the event library.
Definition in file event_init.c.
#include "engines_int.h"
#include <ltdl.h>
#include <stdio.h>
#include <string.h>
Include dependency graph for event_init.c:
Go to the source code of this file.
Defines | |
#define | FNAME_BUF |
File name buffer length. | |
#define | MODULE_INIT |
Module initialization function name. | |
#define | MODULE_ENGINE |
Module engine variable name. | |
#define | VAR_MODULES |
Module configuration subtree name. | |
#define | VAR_LIBPATH |
Library path configuration variable name. | |
#define | VAR_MODLIST |
Module list configuration variable name. | |
#define | confdir(fname) |
Construct system configuration file name. | |
#define | homedir(fname) |
Construct home directory configuration file name. | |
Functions | |
static int | new_modvar (treeconf_ctx_t *ctx, treeconf_node_t *parent, treeconf_str_t *name, int elements) |
Module nochange callback. | |
static ev_err_t | engine_load (ev_ctx_t *ctx, treeconf_str_t *path, int path_cnt, treeconf_str_t *module, ev_flags_t *flag_p) |
Module search and load routine. | |
ev_err_t | event_init (ev_ctx_t *ctx, const ev_attr_t *attr, ev_flags_t flags, const char *prog, const char *envpath) |
Initialize events library. | |
Variables | |
static _ev_attr_t const | _ev__defattr |
Default library attributes. | |
const _ev_attr_t const * | _ev_defattr |
Default library attributes. |
|
For internal use only. This helper macro constructs the absolute pathname to a configuration file located in the system-wide configuration directory.
Definition at line 94 of file event_init.c. |
|
For internal use only. This macro specifies the size of a buffer to contain file names. Definition at line 40 of file event_init.c. Referenced by engine_load(). |
|
For internal use only. This helper macro constructs the pathname to a configuration file located in the user's home directory.
Definition at line 107 of file event_init.c. |
|
For internal use only. This macro simply contains the name of the engine variable searched for by engine_load() if MODULE_INIT is not found. Definition at line 56 of file event_init.c. Referenced by engine_load(). |
|
For internal use only. This macro simply contains the name of the module initialization function searched for by engine_load(). Definition at line 48 of file event_init.c. Referenced by engine_load(). |
|
For internal use only. This macro simply contains the name of the library search path configuration variable. Definition at line 72 of file event_init.c. Referenced by event_init(). |
|
For internal use only. This macro simply contains the name of the module list configuration variable. Definition at line 80 of file event_init.c. Referenced by event_init(). |
|
For internal use only. This macro simply contains the name of the modules configuration subtree. Definition at line 64 of file event_init.c. Referenced by event_init(). |
|
For internal use only.
The purpose of this function is to search a
Definition at line 189 of file event_init.c. References _ev_debug(), _gca_func, _ev_ctx_s::ec_engine, _ev_englink_s::el_next, _ev_englink_s::el_prev, _ev_engine_s::eng_flags, _ev_engine_s::eng_handle, eng_init, _ev_engine_s::eng_list, _ev_engine_s::eng_name, _ev_engine_s::eng_runfl, engine_register(), ev_assert, EV_ENGINE_COMPMASK, EV_ENGINE_REGISTERED, EV_ENGINE_RUNNING, EV_ENGINE_SIGNAL, EV_ENGINE_SOCKET, EV_ENGINE_TIMER, ev_return, ev_trace, EVAS_LOG, FNAME_BUF, MODULE_ENGINE, MODULE_INIT, ts_length, and ts_string. Referenced by event_init(). Here is the call graph for this function: ![]() |
|
For internal use only. This function is a treeconf callback function, used for approving implicit creation of treeconf variables under the event.modules hierarchy.
Definition at line 152 of file event_init.c. References TC_NODETYPE_IMPLICIT, and tn_type. Referenced by event_init(). |
|
For internal use only. This variable contains the default set of attributes for the event library. Definition at line 115 of file event_init.c. |
|
For internal use only. This variable contains a pointer to the default attribute set. It is primarily useful for event_init() and event_attr_init(). Definition at line 130 of file event_init.c. Referenced by event_attr_init(), and main(). |