Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
teo_web_conf.c File Reference
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <libgen.h>
#include <sys/stat.h>
#include <confuse.h>
#include "conf.h"
#include "utils/utils.h"
#include "modules/teo_web/teo_web_conf.h"

Macros

#define CONF_NAME   "/teoweb.conf"
 
#define save_conf_back()
 

Functions

void teowebConfigRead (teoweb_config *conf, const char *network, int port_param)
 Read configuration fcfg_freeile. More...
 
teoweb_configteowebConfigInit ()
 Read teoweb configuration file. More...
 
void teowebConfigFree (teoweb_config *tw_cfg)
 Free teoweb configuration. More...
 

Macro Definition Documentation

#define CONF_NAME   "/teoweb.conf"

Referenced by teowebConfigRead().

#define save_conf_back ( )
Value:
strncpy(conf->document_root, document_root, KSN_BUFFER_SM_SIZE), \
strncpy(conf->l0_server_name, l0_server_name, KSN_BUFFER_SM_SIZE), \
strncpy(conf->auth_server_url, auth_server_url, KSN_BUFFER_SM_SIZE)
#define KSN_BUFFER_SM_SIZE
Size of small buffer for string.
Definition: conf.h:16

Referenced by teowebConfigRead().

Function Documentation

void teowebConfigFree ( teoweb_config tw_cfg)

Free teoweb configuration.

References free().

Referenced by main().

teoweb_config* teowebConfigInit ( )

Read teoweb configuration file.

Returns
Pointer to teoweb_config

References malloc().

Referenced by main().

void teowebConfigRead ( teoweb_config conf,
const char *  network,
int  port_param 
)