#include "config.h"
#include "config_parsing.h"
#include "analyse.h"
#include <stdio.h>
#include <errno.h>
Go to the source code of this file.
| 
Classes | 
| struct | config_struct_t | 
| 
Defines | 
| #define | STRNCMP   strncasecmp | 
| 
Typedefs | 
| typedef struct config_struct_t | config_struct_t | 
| 
Functions | 
| int | ganesha_yyparse () | 
| void | ganesha_yyreset (void) | 
| void | ganesha_yy_set_current_file (char *file) | 
| config_file_t | config_ParseFile (char *file_path) | 
| char * | config_GetErrorMsg () | 
| void | config_Print (FILE *output, config_file_t config) | 
| void | config_Free (config_file_t config) | 
| int | config_GetNbBlocks (config_file_t config) | 
| config_item_t | config_GetBlockByIndex (config_file_t config, unsigned int block_no) | 
| char * | config_GetBlockName (config_item_t block) | 
| int | config_GetNbItems (config_item_t block) | 
| config_item_t | config_GetItemByIndex (config_item_t block, unsigned int item_no) | 
| config_item_type | config_ItemType (config_item_t item) | 
| int | config_GetKeyValue (config_item_t item, char **var_name, char **var_value) | 
| config_item_t | internal_FindItemByName (config_file_t config, const char *name, int *unique) | 
| config_item_t | config_FindItemByName (config_file_t config, const char *name) | 
| config_item_t | config_FindItemByName_CheckUnique (config_file_t config, const char *name, int *unique) | 
| char * | config_FindKeyValueByName (config_file_t config, const char *key_name) | 
| config_item_t | config_GetItemByName (config_item_t block, const char *name) | 
| char * | config_GetKeyValueByName (config_item_t block, const char *key_name) | 
| 
Variables | 
| FILE * | ganesha_yyin | 
| list_items * | program_result | 
| char | extern_errormsg [1024] | 
Define Documentation
      
        
          | #define STRNCMP   strncasecmp | 
      
 
 
Typedef Documentation
Function Documentation
      
        
          | char* config_FindKeyValueByName | ( | config_file_t | config, | 
        
          |  |  | const char * | key_name | 
        
          |  | ) |  |  | 
      
 
 
config_Free: Free the memory structure that store the configuration. 
Definition at line 164 of file config_parsing.c.
 
 
      
        
          | char* config_GetErrorMsg | ( |  | ) |  | 
      
 
 
      
        
          | int config_GetKeyValue | ( | config_item_t | item, | 
        
          |  |  | char ** | var_name, | 
        
          |  |  | char ** | var_value | 
        
          |  | ) |  |  | 
      
 
 
      
        
          | char* config_GetKeyValueByName | ( | config_item_t | block, | 
        
          |  |  | const char * | key_name | 
        
          |  | ) |  |  | 
      
 
 
config_GetNbBlocks: Indicates how many blocks are defined into the config file. 
Definition at line 184 of file config_parsing.c.
 
 
- Todo:
- : ganesha_yyparse fait exit en cas d'erreur. Remedier au probleme. 
Definition at line 69 of file config_parsing.c.
 
 
config_Print: Print the content of the syntax tree to a file. 
Definition at line 148 of file config_parsing.c.
 
 
      
        
          | void ganesha_yy_set_current_file | ( | char * | file | ) |  | 
      
 
 
      
        
          | void ganesha_yyreset | ( | void |  | ) |  | 
      
 
 
Variable Documentation