28 #define S2S_DB_NS_DECL " xmlns:db='" uri_DIALBACK "'"
29 #define S2S_DB_NS_DECL_LEN (uri_DIALBACK_L + 12)
36 log_debug(
ZONE,
"hacking dialback namespace decl onto stream header");
int s2s_db_init(sx_env_t env, sx_plugin_t p, va_list args)
void(* features)(sx_t s, sx_plugin_t p, nad_t nad)
int nad_add_namespace(nad_t nad, const char *uri, const char *prefix)
bring a new namespace into scope
int nad_append_elem(nad_t nad, int ns, const char *name, int depth)
create a new elem on the list
void _sx_buffer_alloc_margin(sx_buf_t buf, int before, int after)
utility: ensure a certain amount of allocated space adjacent to buf->data
holds the state for a single stream
#define S2S_DB_NS_DECL_LEN
static void _s2s_db_header(sx_t s, sx_plugin_t p, sx_buf_t buf)
static void _s2s_db_features(sx_t s, sx_plugin_t p, nad_t nad)
sx features callback
void(* header)(sx_t s, sx_plugin_t p, sx_buf_t buf)