1 |
#include <stdio.h> |
#include <stdio.h> |
2 |
|
#include <stdlib.h> |
3 |
#include "pdl.h" |
#include "pdl.h" |
4 |
#include "ng_log.h" |
#include "ng_log.h" |
5 |
#include <stdlib.h> |
#include "ees_config.h" |
6 |
|
|
7 |
NG_RC pdl_init(const char* name){ |
NG_RC pdl_init(const char* name){ |
8 |
if((file = fopen(name,"r")) != NULL){ |
if((file = fopen(name,"r")) != NULL){ |
111 |
free(policy); |
free(policy); |
112 |
} |
} |
113 |
|
|
114 |
|
char** _var_to_argv(char* value){ |
115 |
|
printf("Value: %s", value); |
116 |
|
} |
117 |
|
|
118 |
void add_variable(record_t* name, record_t* value){ |
void add_variable(record_t* name, record_t* value){ |
119 |
ng_log(LOG_ERR, "Added variable name: %s\n", name->string); |
ng_log(LOG_ERR, "Added variable name: %s\n", name->string); |
120 |
ng_log(LOG_ERR, "Added variable value: %s\n", value->string); |
ng_log(LOG_ERR, "Added variable value: %s\n", value->string); |
126 |
|
|
127 |
NG_RC pdl_term(){ |
NG_RC pdl_term(){ |
128 |
if((fclose(file)==0) ){ |
if((fclose(file)==0) ){ |
129 |
|
#if HAVE_YYLEX_DESTROY |
130 |
yylex_destroy(); |
yylex_destroy(); |
131 |
|
#endif |
132 |
return NG_SUCCESS; |
return NG_SUCCESS; |
133 |
} else { |
} else { |
134 |
return NG_FAILURE; |
return NG_FAILURE; |