ZOO-Project
Functions | Variables
service_yaml.c File Reference
#include <stdio.h>
#include <ctype.h>
#include <service.h>
#include <yaml.h>

Functions

int getServiceFromYAML (maps *conf, char *file, service **service, char *name)
 Read and parse a ZCFG file in YAML format. More...
 

Variables

static servicemy_service =NULL
 
static mapcurrent_content =NULL
 
static elementscurrent_element =NULL
 

Function Documentation

int getServiceFromYAML ( maps conf,
char *  file,
service **  service,
char *  name 
)

Read and parse a ZCFG file in YAML format.

Parameters
confthe conf maps containing the main.cfg settings
filethe file name to read
servicethe service structure to fill
namethe service name
Returns
1 on success, -1 if error occurred

Variable Documentation

map* current_content =NULL
static
elements* current_element =NULL
static
service* my_service =NULL
static