citadel
About: Citadel is an advanced messaging and collaboration system for groupware and BBS applications (preferred OS: Linux).
  Fossies Dox: citadel.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

control.c File Reference
#include <stdio.h>
#include <sys/file.h>
#include <libcitadel.h>
#include "ctdl_module.h"
#include "config.h"
#include "citserver.h"
#include "user_ops.h"
Include dependency graph for control.c:

Go to the source code of this file.

Data Structures

struct  legacy_ctrl_format
 
struct  cfh
 
struct  __ConfType
 

Typedefs

typedef struct __ConfType ConfType
 

Functions

void control_find_highest (struct ctdlroom *qrbuf, void *data)
 
void control_find_user (char *username, void *out_data)
 
void migrate_legacy_control_record (void)
 
void check_control (void)
 
long get_new_message_number (void)
 
long CtdlGetCurrentMessageNumber (void)
 
long get_new_user_number (void)
 
long get_new_room_number (void)
 
int confbool (char *v)
 
void cmd_conf (char *argbuf)
 
void cmd_gvdn (char *argbuf)
 
char * ctdl_module_init_control (void)
 

Variables

long control_highest_user = 0
 
ConfType CfgNames []
 
HashList * CfgNameHash = NULL
 

Typedef Documentation

◆ ConfType

typedef struct __ConfType ConfType

Function Documentation

◆ check_control()

◆ cmd_conf()

◆ cmd_gvdn()

void cmd_gvdn ( char *  argbuf)

◆ confbool()

int confbool ( char *  v)

Definition at line 238 of file control.c.

Referenced by cmd_conf().

◆ control_find_highest()

void control_find_highest ( struct ctdlroom qrbuf,
void *  data 
)

◆ control_find_user()

void control_find_user ( char *  username,
void *  out_data 
)

◆ ctdl_module_init_control()

char * ctdl_module_init_control ( void  )

◆ CtdlGetCurrentMessageNumber()

long CtdlGetCurrentMessageNumber ( void  )

Definition at line 199 of file control.c.

References CtdlGetConfigLong().

◆ get_new_message_number()

long get_new_message_number ( void  )

◆ get_new_room_number()

long get_new_room_number ( void  )

◆ get_new_user_number()

long get_new_user_number ( void  )

◆ migrate_legacy_control_record()

Variable Documentation

◆ CfgNameHash

HashList* CfgNameHash = NULL

Definition at line 727 of file control.c.

Referenced by cmd_gvdn(), and ctdl_module_init_control().

◆ CfgNames

ConfType CfgNames[]
Initial value:
= {
{ {HKEY("localhost") }, 0},
{ {HKEY("directory") }, 0},
{ {HKEY("smarthost") }, 2},
{ {HKEY("fallbackhost") }, 2},
{ {HKEY("rbl") }, 3},
{ {HKEY("spamassassin") }, 3},
{ {HKEY("masqdomain") }, 1},
{ {HKEY("clamav") }, 3},
{ {HKEY("notify") }, 3},
{ {NULL, 0}, 0}
}

Definition at line 714 of file control.c.

Referenced by ctdl_module_init_control().

◆ control_highest_user

long control_highest_user = 0

Definition at line 19 of file control.c.