mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
more event code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@153 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -70,6 +70,7 @@ SWITCH_DECLARE(void *) switch_core_alloc(switch_memory_pool *pool, size_t memory
|
||||
SWITCH_DECLARE(switch_status) switch_core_hash_init(switch_hash **hash, switch_memory_pool *pool);
|
||||
SWITCH_DECLARE(switch_status) switch_core_hash_destroy(switch_hash *hash);
|
||||
SWITCH_DECLARE(switch_status) switch_core_hash_insert(switch_hash *hash, char *key, void *data);
|
||||
SWITCH_DECLARE(switch_status) switch_core_hash_insert_dup(switch_hash *hash, char *key, void *data);
|
||||
SWITCH_DECLARE(switch_status) switch_core_hash_delete(switch_hash *hash, char *key);
|
||||
SWITCH_DECLARE(void *) switch_core_hash_find(switch_hash *hash, char *key);
|
||||
SWITCH_DECLARE(void) switch_core_launch_module_thread(void *(*func)(switch_thread *, void*), void *obj);
|
||||
|
||||
@@ -58,6 +58,8 @@ SWITCH_DECLARE(switch_status) switch_event_init(switch_memory_pool *pool);
|
||||
SWITCH_DECLARE(switch_status) switch_event_fire_subclass(switch_event_t event, int subclass, char *data);
|
||||
SWITCH_DECLARE(switch_status) switch_event_bind(char *id, switch_event_t event, int subclass, switch_event_callback_t callback);
|
||||
SWITCH_DECLARE(char *) switch_event_name(switch_event_t event);
|
||||
SWITCH_DECLARE(char *) switch_event_subclass_name(int subclass);
|
||||
SWITCH_DECLARE(switch_status) switch_event_reserve_subclass(int subclass, char *name);
|
||||
#define switch_event_fire(event, data) switch_event_fire_subclass(event, 0, data);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -56,7 +56,8 @@ typedef enum {
|
||||
SWITCH_STATUS_NOTIMPL,
|
||||
SWITCH_STATUS_MEMERR,
|
||||
SWITCH_STATUS_NOOP,
|
||||
SWITCH_STATUS_GENERR
|
||||
SWITCH_STATUS_GENERR,
|
||||
SWITCH_STATUS_INUSE
|
||||
} switch_status;
|
||||
|
||||
typedef enum {
|
||||
|
||||
Reference in New Issue
Block a user