jabberd14 1.6.2
Data Structures | Typedefs | Functions
mod_version.cc File Reference

implements handling of 'jabber:iq:version' (XEP-0092) in the session manager More...

#include "jsm.h"
#include <sys/utsname.h>

Data Structures

struct  _mod_version_i
 structure that holds precomputed strings for jabber:iq:version reply More...

Typedefs

typedef struct _mod_version_imod_version_i

Functions

void mod_version (jsmi si)

Detailed Description

implements handling of 'jabber:iq:version' (XEP-0092) in the session manager

This session manager module implements the 'Software Version' protocol in the session manager. It can be used to request which version of the Jabber server (the version of the session manager) is running on which operating system version. The information presented by this module is gathered automatically but the administrator has the possibility to overwrite or hide this information.


Typedef Documentation

typedef struct _mod_version_i * mod_version_i

Function Documentation

void mod_version ( jsmi  si)

register this module's callbacks in the session manager, allocate memory and precompute the replies

Parameters:
sithe session manager instance

References e_SERVER, e_SHUTDOWN, js_config(), js_mapi_register(), _mod_version_i::name, _mod_version_i::os, _mod_version_i::p, pmalloco(), pool_new, pstrdup(), jsmi_struct::std_namespace_prefixes, _mod_version_i::version, xmlnode_free(), xmlnode_get_data(), xmlnode_get_list_item(), and xmlnode_get_tags().