mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 04:31:50 +00:00
adding some shit
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@100 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -251,4 +251,11 @@ struct switch_application_interface {
|
||||
const struct switch_application_interface *next;
|
||||
};
|
||||
|
||||
struct switch_api_interface {
|
||||
const char *interface_name;
|
||||
const char *desc;
|
||||
switch_status (*function)(char *in, char *out, size_t outlen);
|
||||
const struct switch_api_interface *next;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -78,6 +78,7 @@ typedef typeof(tv.tv_usec) switch_suseconds_t;
|
||||
#define switch_copy_flags(dest, src, flags) (dest)->flags &= ~(flags); (dest)->flags |= ((src)->flags & (flags))
|
||||
#define switch_strlen_zero(s) (s && *s != '\0') ? 0 : 1
|
||||
#define switch_yield(ms) apr_sleep(ms * 10); apr_thread_yield();
|
||||
#define SWITCH_DECLARE_GLOBAL_STRING_FUNC(fname, vname) static void fname(char *string) { if (vname) {free(vname); vname = NULL;}vname = strdup(string);}
|
||||
|
||||
SWITCH_DECLARE(unsigned int) switch_separate_string(char *buf, char delim, char **array, int arraylen);
|
||||
SWITCH_DECLARE(switch_status) switch_socket_create_pollfd(switch_pollfd_t *poll, switch_socket_t *sock, unsigned int flags, switch_memory_pool *pool);
|
||||
|
||||
Reference in New Issue
Block a user