Grid Community Toolkit  6.2.1705709074 (tag: v6.2.20240202)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 
49 typedef struct
50 {
52  char * attribute;
57  char * description;
62  char * default_value;
68  char * enumerated_values;
69 
75  int required_when;
76 
83  int default_when;
89  int valid_when;
90 
95  globus_bool_t publishable;
96 }
97 globus_rvf_record_t;
98 
99 extern int
100 globus_rvf_parse_file(
101  char * rvf_path,
102  globus_list_t ** out_attr_list,
103  char ** error_string);
104 
105 extern int
106 globus_rvf_parse_string(
107  char * rvf_string,
108  globus_list_t ** out_attr_list,
109  char ** error_string);
110 
111 
112 #endif /* GLOBUS_DONT_DOCUMENT_INTERNAL */
113 
114 
115 #ifdef __cplusplus
116 }
117 #endif
118 
119 #endif /* GLOBUS_RVF_PARSER_H */
int globus_bool_t
Boolean type.
Definition: globus_types.h:93
List data type.
Definition: globus_list.h:44
Headers common to all of Globus.