diff options
author | Dmitri Pal <dpal@redhat.com> | 2009-08-20 18:50:24 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-08-21 12:55:41 -0400 |
commit | d616d46da799d2aacac1800bddb0f56f2dfd6042 (patch) | |
tree | 5fec35b840a4d1872d2a4683efce4e3f03f21b38 /elapi/elapi_priv.h | |
parent | 2d9c788b5837d2a8db025306322a5a8f63a8c9af (diff) | |
download | ding-libs2-d616d46da799d2aacac1800bddb0f56f2dfd6042.tar.gz ding-libs2-d616d46da799d2aacac1800bddb0f56f2dfd6042.tar.xz ding-libs2-d616d46da799d2aacac1800bddb0f56f2dfd6042.zip |
ELAPI Shortening names
Per ticket #118 shortened naimes of some functions and structs I added
into ELAPI during last big functional patch .
There is no plan to do a global shortening of all names
but miving forward I will try to make them shorter than I used to.
Diffstat (limited to 'elapi/elapi_priv.h')
-rw-r--r-- | elapi/elapi_priv.h | 84 |
1 files changed, 41 insertions, 43 deletions
diff --git a/elapi/elapi_priv.h b/elapi/elapi_priv.h index 0fa01b4..eb1d11f 100644 --- a/elapi/elapi_priv.h +++ b/elapi/elapi_priv.h @@ -72,7 +72,7 @@ struct elapi_dispatcher { }; /* Structure to pass data from logging function to targets */ -struct elapi_target_pass_in_data { +struct elapi_tgt_data { struct collection_item *event; struct elapi_dispatcher *handle; uint32_t target_mask; @@ -81,7 +81,7 @@ struct elapi_target_pass_in_data { /* This is a structure that holds the information * about the target. */ -struct elapi_target_context { +struct elapi_tgt_ctx { /* Value associted with the * target in the config file. */ @@ -97,7 +97,7 @@ struct elapi_target_context { }; /* The structure that describes the sink in the dispatcher */ -struct elapi_sink_context { +struct elapi_sink_ctx { /* Inpit queue of a sink */ struct collection_item *in_queue; /* Pending list */ @@ -129,66 +129,64 @@ int elapi_create_event_template_with_vargs(struct collection_item **template, va_list args); /* Sink handler function */ -int elapi_internal_sink_handler(const char *sink, - int sink_len, - int type, - void *data, - int length, - void *passed_data, - int *stop); +int elapi_sink_cb(const char *sink, + int sink_len, + int type, + void *data, + int length, + void *passed_data, + int *stop); /* Internal sink cleanup function */ -int elapi_internal_sink_cleanup_handler(const char *sink, - int sink_len, - int type, - void *data, - int length, - void *passed_data, - int *stop); +int elapi_sink_free_cb(const char *sink, + int sink_len, + int type, + void *data, + int length, + void *passed_data, + int *stop); -/* Create list of the sinks */ -int elapi_internal_construct_sink_list(struct elapi_dispatcher *handle); /* Function to add a sink based on configuration */ -int elapi_internal_add_sink(struct collection_item **sink_ref, - char *sink, - struct elapi_dispatcher *handle); +int elapi_sink_add(struct collection_item **sink_ref, + char *sink, + struct elapi_dispatcher *handle); /* Create target object */ -int elapi_internal_create_target(struct elapi_target_context **context, - char *target, - struct elapi_dispatcher *handle); +int elapi_tgt_create(struct elapi_tgt_ctx **context, + char *target, + struct elapi_dispatcher *handle); /* Destroy target object */ -void elapi_internal_destroy_target(struct elapi_target_context *context); +void elapi_tgt_destroy(struct elapi_tgt_ctx *context); /* Internal target cleanup function */ -int elapi_internal_target_cleanup_handler(const char *sink, - int sink_len, - int type, - void *data, - int length, - void *passed_data, - int *stop); +int elapi_tgt_free_cb(const char *sink, + int sink_len, + int type, + void *data, + int length, + void *passed_data, + int *stop); /* Handler for logging through the targets */ -int elapi_internal_target_handler(const char *target, - int target_len, - int type, - void *data, - int length, - void *passed_data, - int *stop); +int elapi_tgt_cb(const char *target, + int target_len, + int type, + void *data, + int length, + void *passed_data, + int *stop); /* Create list of targets for a dispatcher */ -int elapi_internal_construct_target_list(struct elapi_dispatcher *handle); +int elapi_tgt_mklist(struct elapi_dispatcher *handle); /* Send ELAPI config errors into a file */ -void elapi_internal_dump_errors_to_file(struct collection_item *error_list); +void elapi_dump_ini_err(struct collection_item *error_list); /* Print dispatcher internals for testing and debugin purposes */ -void elapi_internal_print_dispatcher(struct elapi_dispatcher *handle); +void elapi_print_dispatcher(struct elapi_dispatcher *handle); #endif |