Changeset 580 for trunk/zoo-project/zoo-kernel/service_yaml.c
- Timestamp:
- Feb 12, 2015, 11:18:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_yaml.c
r490 r580 1 /* *1 /* 2 2 * Author : Gérald FENOY 3 3 * … … 31 31 static map* current_content=NULL; 32 32 static elements* current_element=NULL; 33 static char* curr_key; 34 35 /** 36 * getServiceFromFile : 37 * set service given as second parameter with informations extracted from the 38 * definition file. 39 */ 33 40 34 #ifdef __cplusplus 41 35 extern "C" { 42 36 #endif 43 37 38 /** 39 * Read and parse a ZCFG file in YAML format 40 * 41 * @param conf the conf maps containing the main.cfg settings 42 * @param file the file name to read 43 * @param service the service structure to fill 44 * @param name the service name 45 * @return 1 on success, -1 if error occured 46 */ 44 47 int getServiceFromYAML(maps* conf, char* file,service** service,char *name){ 45 48 FILE *fh = fopen("test.yml", "r");
Note: See TracChangeset
for help on using the changeset viewer.