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_struct * | base_dir_st |
| typedef struct base_dir_struct | _base_dir_st |
Functions | |
| void | base_dir (pool p) |
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 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
| void base_dir | ( | pool | p | ) |
load the base_dir base module by registering a configuration handler for <dir/>
| 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().
1.6.1