jabberd2  2.3.2
Macros | Functions
db.c File Reference
#include "s2s.h"

Go to the source code of this file.

Macros

#define S2S_DB_NS_DECL   " xmlns:db='" uri_DIALBACK "'"
 
#define S2S_DB_NS_DECL_LEN   (uri_DIALBACK_L + 12)
 

Functions

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 More...
 
int s2s_db_init (sx_env_t env, sx_plugin_t p, va_list args)
 

Macro Definition Documentation

#define S2S_DB_NS_DECL   " xmlns:db='" uri_DIALBACK "'"

Definition at line 28 of file db.c.

Referenced by _s2s_db_header().

#define S2S_DB_NS_DECL_LEN   (uri_DIALBACK_L + 12)

Definition at line 29 of file db.c.

Referenced by _s2s_db_header().

Function Documentation

static void _s2s_db_header ( sx_t  s,
sx_plugin_t  p,
sx_buf_t  buf 
)
static
static void _s2s_db_features ( sx_t  s,
sx_plugin_t  p,
nad_t  nad 
)
static

sx features callback

Definition at line 47 of file db.c.

References nad_add_namespace(), nad_append_elem(), and uri_URN_DIALBACK.

Referenced by s2s_db_init().

int s2s_db_init ( sx_env_t  env,
sx_plugin_t  p,
va_list  args 
)

Definition at line 55 of file db.c.

References _s2s_db_features(), _s2s_db_header(), _sx_plugin_st::features, _sx_plugin_st::header, log_debug, and ZONE.

Referenced by JABBER_MAIN().