Grid Community Toolkit  6.2.1541705016
globus_net_manager_attr.h
Go to the documentation of this file.
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_NET_MANAGER_ATTR_H
18 #define GLOBUS_NET_MANAGER_ATTR_H 1
19 
20 #include "globus_common.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
46 {
48  char * scope;
50  char * name;
52  char * value;
53 }
55 
61 #define GLOBUS_NET_MANAGER_NULL_ATTR { NULL, NULL, NULL }
62 
64 
68  const char *scope,
69  const char *name,
70  const char *value);
71 
72 void
75 
76 
80  const char *scope,
81  const char *attr_string);
82 
85  globus_net_manager_attr_t **dest_array,
86  const globus_net_manager_attr_t *src_array);
87 
88 void
91 
92 #ifdef __cplusplus
93 }
94 #endif
95 
96 #endif /* #define GLOBUS_NET_MANAGER_ATTR_H */
globus_result_t globus_net_manager_attr_init(globus_net_manager_attr_t *attr, const char *scope, const char *name, const char *value)
Initialize the contents of an attribute.
Definition: init.c:46
char * value
Definition: globus_net_manager_attr.h:52
const globus_net_manager_attr_t globus_net_manager_null_attr
End of array value.
Definition: array_delete.c:35
globus_result_t globus_net_manager_attr_array_from_string(globus_net_manager_attr_t **attr, const char *scope, const char *attr_string)
Parse an array of Network Manager attributes from a string.
Definition: array_from_string.c:55
Net Manager Attributes.
Definition: globus_net_manager_attr.h:45
Headers common to all of Globus.
uint32_t globus_result_t
Definition: globus_types.h:99
char * name
Definition: globus_net_manager_attr.h:50
struct globus_net_manager_attr_s globus_net_manager_attr_t
Net Manager Attributes.
globus_result_t globus_net_manager_attr_array_copy(globus_net_manager_attr_t **dest_array, const globus_net_manager_attr_t *src_array)
Copy an array of Network Manager attributes.
Definition: array_copy.c:48
char * scope
Definition: globus_net_manager_attr.h:48
void globus_net_manager_attr_array_delete(globus_net_manager_attr_t *attrs)
Destroy an array of Network Manager attributes.
Definition: array_delete.c:49
void globus_net_manager_attr_destroy(globus_net_manager_attr_t *attr)
Destroy the contents of an attribute.
Definition: destroy.c:36