Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

engmodinit.c File Reference


Detailed Description

For internal use only.

This test engine module declares an engine_mod_init() which will handle the call to engine_register().

Definition in file engmodinit.c.

#include "engines_int.h"

Include dependency graph for engmodinit.c:

Go to the source code of this file.

Defines

#define ENGINE_MODULE

Functions

static ev_err_t emi_init (ev_ctx_t *ctx, ev_engine_t *engine, ev_flags_t *eng_flags)
 Test engine initialization callback.
static ev_err_t emi_poll (ev_ctx_t *ctx, ev_engine_t *engine, struct timeval *timeout)
 Test engine poll callback.
static ev_err_t emi_sock (ev_ctx_t *ctx, ev_engine_t *engine, ev_sock_t *sock)
 Test socket add/remove engine callback.
static ev_err_t emi_sockev (ev_ctx_t *ctx, ev_engine_t *engine, ev_sock_t *sock, ev_flags_t evs)
 Test socket event set engine callback.
static ev_err_t emi_sig (ev_ctx_t *ctx, ev_engine_t *engine, ev_sig_t *sig)
 Test signal add/remove engine callback.
static ev_err_t emi_tim (ev_ctx_t *ctx, ev_engine_t *engine, ev_tim_t *tim)
 Test timer add/remove engine callback.
ev_engine_tengine_mod_init (ev_ctx_t *ctx)
 Engine module initialization function.

Variables

static ev_engine_t engine
 Module engine descriptor.


Define Documentation

#define ENGINE_MODULE
 

Definition at line 166 of file engmodinit.c.


Function Documentation

static ev_err_t emi_init ev_ctx_t ctx,
ev_engine_t engine,
ev_flags_t eng_flags
[static]
 

For internal use only.

This routine is used to simulate an engine initialization callback. By calling engine_activate() and returning immediately, it convinces the library that it has initialized the components that the library requested.

Parameters:
[in] ctx A pointer to an ev_ctx_t.
[in] engine A pointer to the ev_engine_t.
[in,out] eng_flags A pointer to an ev_flags_t containing the desired engine flags. This is a value-result parameter that the engine is expected to modify.
Returns:
A non-zero error code, or 0 on success.

Definition at line 50 of file engmodinit.c.

References engine_activate().

Here is the call graph for this function:

static ev_err_t emi_poll ev_ctx_t ctx,
ev_engine_t engine,
struct timeval *  timeout
[static]
 

For internal use only.

This dummy routine is needed only to make the engine structure legal. All it does is return 0.

Parameters:
[in] ctx A pointer to an ev_ctx_t.
[in] engine A pointer to the ev_engine_t.
[in,out] timeout A pointer to a struct timeval which will contain the current timeout value. This is a value-result parameter that the engine may modify.
Returns:
A non-zero error code, or 0 on success.

Definition at line 71 of file engmodinit.c.

static ev_err_t emi_sig ev_ctx_t ctx,
ev_engine_t engine,
ev_sig_t sig
[static]
 

For internal use only.

This dummy routine is needed only to make the engine structure legal. All it does is return 0.

Parameters:
[in] ctx A pointer to an ev_ctx_t.
[in] engine A pointer to the ev_engine_t.
[in] sig A pointer to an ev_sig_t.
Returns:
A non-zero error code, or 0 on success.

Definition at line 127 of file engmodinit.c.

static ev_err_t emi_sock ev_ctx_t ctx,
ev_engine_t engine,
ev_sock_t sock
[static]
 

For internal use only.

This dummy routine is needed only to make the engine structure legal. All it does is return 0.

Parameters:
[in] ctx A pointer to an ev_ctx_t.
[in] engine A pointer to the ev_engine_t.
[in] sock A pointer to an ev_sock_t.
Returns:
A non-zero error code, or 0 on success.

Definition at line 89 of file engmodinit.c.

static ev_err_t emi_sockev ev_ctx_t ctx,
ev_engine_t engine,
ev_sock_t sock,
ev_flags_t  evs
[static]
 

For internal use only.

This dummy routine is needed only to make the engine structure legal. All it does is return 0.

Parameters:
[in] ctx A pointer to an ev_ctx_t.
[in] engine A pointer to the ev_engine_t.
[in] sock A pointer to an ev_sock_t.
[in] evs An ev_flags_t specifying the events of interest.
Returns:
A non-zero error code, or 0 on success.

Definition at line 109 of file engmodinit.c.

static ev_err_t emi_tim ev_ctx_t ctx,
ev_engine_t engine,
ev_tim_t tim
[static]
 

For internal use only.

This dummy routine is needed only to make the engine structure legal. All it does is return 0.

Parameters:
[in] ctx A pointer to an ev_ctx_t.
[in] engine A pointer to the ev_engine_t.
[in] tim A pointer to an ev_tim_t specifying the timer being registered.
Returns:
A non-zero error code, or 0 on success.

Definition at line 146 of file engmodinit.c.


Variable Documentation

ev_engine_t engine [static]
 

For internal use only.

This is the descriptor of the module's engine, which will be passed by engine_mod_init() to engine_register().

Definition at line 157 of file engmodinit.c.

Referenced by main().


Generated on Wed Dec 28 23:37:03 2005 for event by  doxygen 1.4.4