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

_ev_gen_lookup.c File Reference


Detailed Description

For internal use only.

This file contains the implementation of the _ev_gen_lookup() function, used to look up the ev_gendesc_t describing a given generator.

Definition in file _ev_gen_lookup.c.

#include "event_int.h"

Include dependency graph for _ev_gen_lookup.c:

Go to the source code of this file.

Functions

ev_err_t _ev_gen_lookup (ev_ctx_t *ctx, unsigned int gentype, ev_gendesc_t **gen)
 Look up an ev_gendesc_t for a given generator.


Function Documentation

ev_err_t _ev_gen_lookup ev_ctx_t ctx,
unsigned int  gentype,
ev_gendesc_t **  gen
 

For internal use only.

This function looks up the ev_gendesc_t describing the generator gentype.

Parameters:
[in] ctx A pointer to an ev_ctx_t.
[in] gentype An unsigned int specifying the generator type to look up.
[in] gen A pointer to a pointer to an ev_gendesc_t which will be used to return the result.
Return values:
ENOENT No such generator has been registered.

Definition at line 33 of file _ev_gen_lookup.c.

References _ev_ctx_s::ec_gens, _ev_ctx_s::ec_maxgen, ev_init, ev_return, _ev_gens_s::gs_count, _ev_gens_s::gs_first, _ev_gens_s::gs_gens, and _ev_gens_s::gs_next.

Referenced by event_gen_alloc(), event_gen_release(), and main().


Generated on Wed Dec 28 23:36:57 2005 for event by  doxygen 1.4.4