jabberd2  2.3.1
Functions
env.c File Reference
#include "sx.h"

Go to the source code of this file.

Functions

sx_env_t sx_env_new (void)
 
void sx_env_free (sx_env_t env)
 
sx_plugin_t sx_env_plugin (sx_env_t env, sx_plugin_init_t init,...)
 load a plugin into the environment More...
 

Function Documentation

sx_env_t sx_env_new ( void  )

Definition at line 23 of file env.c.

Referenced by JABBER_MAIN().

void sx_env_free ( sx_env_t  env)

Definition at line 31 of file env.c.

References _sx_env_st::nplugins, _sx_env_st::plugins, and _sx_plugin_st::unload.

Referenced by JABBER_MAIN().

sx_plugin_t sx_env_plugin ( sx_env_t  env,
sx_plugin_init_t  init,
  ... 
)

load a plugin into the environment

Definition at line 48 of file env.c.

References _sx_debug, _sx_plugin_st::env, _sx_plugin_st::index, _sx_env_st::nplugins, _sx_env_st::plugins, and ZONE.

Referenced by _c2s_hosts_expand(), _s2s_hosts_expand(), and JABBER_MAIN().