Grid Community Toolkit  6.2.1541705016
globus_rvf_parser.h
1 /*
2  * Copyright 1999-2014 University of Chicago
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef GLOBUS_RVF_PARSER_H
18 #define GLOBUS_RVF_PARSER_H 1
19 
20 #include "globus_common.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 #ifndef GLOBUS_DONT_DOCUMENT_INTERNAL
27 
48 typedef struct
49 {
51  char * attribute;
56  char * description;
61  char * default_value;
67  char * enumerated_values;
68 
74  int required_when;
75 
82  int default_when;
88  int valid_when;
89 
94  globus_bool_t publishable;
95 }
96 globus_rvf_record_t;
97 
98 extern int
99 globus_rvf_parse_file(
100  char * rvf_path,
101  globus_list_t ** out_attr_list,
102  char ** error_string);
103 
104 extern int
105 globus_rvf_parse_string(
106  char * rvf_string,
107  globus_list_t ** out_attr_list,
108  char ** error_string);
109 
110 
111 #endif /* GLOBUS_DONT_DOCUMENT_INTERNAL */
112 
113 
114 #ifdef __cplusplus
115 }
116 #endif
117 
118 #endif /* GLOBUS_RVF_PARSER_H */
int globus_bool_t
Boolean type.
Definition: globus_types.h:93
List data type.
Definition: globus_list.h:43
Headers common to all of Globus.