base_dir.cc File Reference

base module base_dir: reads stanzas that are placed in a directory and processes them More...

#include "jabberd.h"
#include <dirent.h>

Data Structures

struct  base_dir_struct

Typedefs

typedef struct base_dir_structbase_dir_st
typedef struct base_dir_struct _base_dir_st

Functions

void base_dir (pool p)

Detailed Description

base module base_dir: reads stanzas that are placed in a directory and processes them

This module is can be used to periodically read a directory and check if new files are in this directory. If there are, this base module will read these files, parse them and handle them as stanzas.

This can be used to generate Jabber messages in other programs, e.g. for web integration of jabberd.


Typedef Documentation

typedef struct base_dir_struct _base_dir_st
typedef struct base_dir_struct * base_dir_st

hold data this instance of base_dir needs to be passed as void* pointer


Function Documentation

void base_dir ( pool  p  ) 

load the base_dir base module by registering a configuration handler for <dir/>

Parameters:
p memory pool used to register the configuration handler (must be available for the livetime of jabberd)

References log_debug2, LOGT_INIT, register_config(), and ZONE.

Referenced by base_init().


Generated on Thu Mar 11 06:00:04 2010 for jabberd14 by  doxygen 1.6.1