mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
part 1 of many standardizing typedefed types to end in _t
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1292 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
+17
-17
@@ -63,7 +63,7 @@
|
||||
BEGIN_EXTERN_C
|
||||
|
||||
/*! \brief An event Header */
|
||||
struct switch_event_header {
|
||||
struct switch_event_header{
|
||||
/*! the header name */
|
||||
char *name;
|
||||
/*! the header value */
|
||||
@@ -82,7 +82,7 @@ struct switch_event_subclass {
|
||||
/*! \brief Representation of an event */
|
||||
struct switch_event {
|
||||
/*! the event id (descriptor) */
|
||||
switch_event_t event_id;
|
||||
switch_event_types_t event_id;
|
||||
/*! the priority of the event */
|
||||
switch_priority_t priority;
|
||||
/*! the owner of the event */
|
||||
@@ -90,7 +90,7 @@ struct switch_event {
|
||||
/*! the subclass of the event */
|
||||
switch_event_subclass *subclass;
|
||||
/*! the event headers */
|
||||
struct switch_event_header *headers;
|
||||
switch_event_header_t *headers;
|
||||
/*! the body of the event */
|
||||
char *body;
|
||||
/*! user data from the subclass provider */
|
||||
@@ -105,7 +105,7 @@ struct switch_event_node {
|
||||
/*! the id of the node */
|
||||
char *id;
|
||||
/*! the event id enumeration to bind to */
|
||||
switch_event_t event_id;
|
||||
switch_event_types_t event_id;
|
||||
/*! the event subclass to bind to for custom events */
|
||||
switch_event_subclass *subclass;
|
||||
/*! a callback function to execute when the event is triggered */
|
||||
@@ -122,7 +122,7 @@ struct switch_event_node {
|
||||
\param pool the memory pool to use for the event system (creates a new one if NULL)
|
||||
\return SWITCH_STATUS_SUCCESS when complete
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status) switch_event_init(switch_memory_pool *pool);
|
||||
SWITCH_DECLARE(switch_status) switch_event_init(switch_memory_pool_t *pool);
|
||||
|
||||
/*!
|
||||
\brief Stop the eventing system
|
||||
@@ -137,7 +137,7 @@ SWITCH_DECLARE(switch_status) switch_event_shutdown(void);
|
||||
\param subclass_name the subclass name for custom event (only valid when event_id is SWITCH_EVENT_CUSTOM)
|
||||
\return SWITCH_STATUS_SUCCESS on success
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status) switch_event_create_subclass(switch_event **event, switch_event_t event_id, char *subclass_name);
|
||||
SWITCH_DECLARE(switch_status) switch_event_create_subclass(switch_event_t **event, switch_event_types_t event_id, char *subclass_name);
|
||||
|
||||
/*!
|
||||
\brief Set the priority of an event
|
||||
@@ -145,7 +145,7 @@ SWITCH_DECLARE(switch_status) switch_event_create_subclass(switch_event **event,
|
||||
\param priority the event priority
|
||||
\return SWITCH_STATUS_SUCCESS
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status) switch_event_set_priority(switch_event *event, switch_priority_t priority);
|
||||
SWITCH_DECLARE(switch_status) switch_event_set_priority(switch_event_t *event, switch_priority_t priority);
|
||||
|
||||
/*!
|
||||
\brief Retrieve a header value from an event
|
||||
@@ -153,7 +153,7 @@ SWITCH_DECLARE(switch_status) switch_event_set_priority(switch_event *event, swi
|
||||
\param header_name the name of the header to read
|
||||
\return the value of the requested header
|
||||
*/
|
||||
SWITCH_DECLARE(char *) switch_event_get_header(switch_event *event, char *header_name);
|
||||
SWITCH_DECLARE(char *) switch_event_get_header(switch_event_t *event, char *header_name);
|
||||
|
||||
/*!
|
||||
\brief Add a header to an event
|
||||
@@ -163,13 +163,13 @@ SWITCH_DECLARE(char *) switch_event_get_header(switch_event *event, char *header
|
||||
\param fmt the value of the header (varargs see standard sprintf family)
|
||||
\return SWITCH_STATUS_SUCCESS if the header was added
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status) switch_event_add_header(switch_event *event, switch_stack_t stack, char *header_name, char *fmt, ...);
|
||||
SWITCH_DECLARE(switch_status) switch_event_add_header(switch_event_t *event, switch_stack_t stack, char *header_name, char *fmt, ...);
|
||||
|
||||
/*!
|
||||
\brief Destroy an event
|
||||
\param event pointer to the pointer to event to destroy
|
||||
*/
|
||||
SWITCH_DECLARE(void) switch_event_destroy(switch_event **event);
|
||||
SWITCH_DECLARE(void) switch_event_destroy(switch_event_t **event);
|
||||
|
||||
/*!
|
||||
\brief Duplicate an event
|
||||
@@ -177,7 +177,7 @@ SWITCH_DECLARE(void) switch_event_destroy(switch_event **event);
|
||||
\param todup an event to duplicate
|
||||
\return SWITCH_STATUS_SUCCESS if the event was duplicated
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status) switch_event_dup(switch_event **event, switch_event *todup);
|
||||
SWITCH_DECLARE(switch_status) switch_event_dup(switch_event_t **event, switch_event_t *todup);
|
||||
|
||||
/*!
|
||||
\brief Fire an event with full arguement list
|
||||
@@ -188,7 +188,7 @@ SWITCH_DECLARE(switch_status) switch_event_dup(switch_event **event, switch_even
|
||||
\param user_data optional private data to pass to the event handlers
|
||||
\return
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status) switch_event_fire_detailed(char *file, char *func, int line, switch_event **event, void *user_data);
|
||||
SWITCH_DECLARE(switch_status) switch_event_fire_detailed(char *file, char *func, int line, switch_event_t **event, void *user_data);
|
||||
|
||||
/*!
|
||||
\brief Bind an event callback to a specific event
|
||||
@@ -199,14 +199,14 @@ SWITCH_DECLARE(switch_status) switch_event_fire_detailed(char *file, char *func,
|
||||
\param user_data optional user specific data to pass whenever the callback is invoked
|
||||
\return SWITCH_STATUS_SUCCESS if the event was binded
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status) switch_event_bind(char *id, switch_event_t event, char *subclass_name, switch_event_callback_t callback, void *user_data);
|
||||
SWITCH_DECLARE(switch_status) switch_event_bind(char *id, switch_event_types_t event, char *subclass_name, switch_event_callback_t callback, void *user_data);
|
||||
|
||||
/*!
|
||||
\brief Render the name of an event id enumeration
|
||||
\param event the event id to render the name of
|
||||
\return the rendered name
|
||||
*/
|
||||
SWITCH_DECLARE(char *) switch_event_name(switch_event_t event);
|
||||
SWITCH_DECLARE(char *) switch_event_name(switch_event_types_t event);
|
||||
|
||||
/*!
|
||||
\brief Reserve a subclass name for private use with a custom event
|
||||
@@ -227,7 +227,7 @@ SWITCH_DECLARE(switch_status) switch_event_reserve_subclass_detailed(char *owner
|
||||
\return SWITCH_STATUS_SUCCESS if the operation was successful
|
||||
\note the body supplied by this function will supersede an existing body the event may have
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status) switch_event_serialize(switch_event *event, char *buf, switch_size_t buflen, char *fmt, ...);
|
||||
SWITCH_DECLARE(switch_status) switch_event_serialize(switch_event_t *event, char *buf, switch_size_t buflen, char *fmt, ...);
|
||||
|
||||
/*!
|
||||
\brief Determine if the event system has been initilized
|
||||
@@ -242,7 +242,7 @@ SWITCH_DECLARE(switch_status) switch_event_running(void);
|
||||
\return SWITCH_STATUS_SUCCESS if the body was added to the event
|
||||
\note the body parameter can be shadowed by the switch_event_reserve_subclass_detailed function
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status) switch_event_add_body(switch_event *event, char *fmt, ...);
|
||||
SWITCH_DECLARE(switch_status) switch_event_add_body(switch_event_t *event, char *fmt, ...);
|
||||
|
||||
|
||||
/*!
|
||||
@@ -266,7 +266,7 @@ SWITCH_DECLARE(switch_status) switch_event_add_body(switch_event *event, char *f
|
||||
\param event the event to send (will be nulled)
|
||||
\note normaly use switch_event_fire for delivering events (only use this when you wish to deliver the event blocking on your thread)
|
||||
*/
|
||||
SWITCH_DECLARE(void) switch_event_deliver(switch_event **event);
|
||||
SWITCH_DECLARE(void) switch_event_deliver(switch_event_t **event);
|
||||
|
||||
/*!
|
||||
\brief Fire an event filling in most of the arguements with obvious values
|
||||
|
||||
Reference in New Issue
Block a user