/[pdpsoft]/trunk/grid-mw-security/ees/src/eval_man/pdl.c
ViewVC logotype

Diff of /trunk/grid-mw-security/ees/src/eval_man/pdl.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 566 by aramv, Mon Jul 20 09:41:59 2009 UTC revision 572 by aramv, Mon Jul 20 13:31:12 2009 UTC
# Line 1  Line 1 
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){
# Line 110  void remove_policy(record_t* policy){ Line 111  void remove_policy(record_t* policy){
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);
# Line 121  void add_variable(record_t* name, record Line 126  void add_variable(record_t* name, record
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;

Legend:
Removed from v.566  
changed lines
  Added in v.572

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28