globus_net_manager_attr.h
Go to the documentation of this file.
/*
* Copyright 1999-2014 University of Chicago
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef GLOBUS_NET_MANAGER_ATTR_H
#define GLOBUS_NET_MANAGER_ATTR_H 1
#include "globus_common.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct globus_net_manager_attr_s
{
char * scope;
char * name;
char * value;
}
globus_net_manager_attr_t;
#define GLOBUS_NET_MANAGER_NULL_ATTR { NULL, NULL, NULL }
extern const globus_net_manager_attr_t globus_net_manager_null_attr;
globus_result_t
globus_net_manager_attr_init(
globus_net_manager_attr_t *attr,
const char *scope,
const char *name,
const char *value);
void
globus_net_manager_attr_destroy(
globus_net_manager_attr_t *attr);
globus_result_t
globus_net_manager_attr_array_from_string(
globus_net_manager_attr_t **attr,
const char *scope,
const char *attr_string);
globus_result_t
globus_net_manager_attr_array_copy(
globus_net_manager_attr_t **dest_array,
const globus_net_manager_attr_t *src_array);
void
globus_net_manager_attr_array_delete(
globus_net_manager_attr_t *attrs);
#ifdef __cplusplus
}
#endif
#endif /* #define GLOBUS_NET_MANAGER_ATTR_H */
globus_net_manager_attr_s::value
char * value
Definition: globus_net_manager_attr.h:53
globus_net_manager_attr_init
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
globus_net_manager_attr_s::scope
char * scope
Definition: globus_net_manager_attr.h:49
globus_net_manager_null_attr
const globus_net_manager_attr_t globus_net_manager_null_attr
End of array value.
Definition: array_delete.c:35
globus_net_manager_attr_array_from_string
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
globus_net_manager_attr_s
Net Manager Attributes.
Definition: globus_net_manager_attr.h:46
globus_net_manager_attr_array_copy
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
globus_net_manager_attr_t
struct globus_net_manager_attr_s globus_net_manager_attr_t
Net Manager Attributes.
globus_net_manager_attr_destroy
void globus_net_manager_attr_destroy(globus_net_manager_attr_t *attr)
Destroy the contents of an attribute.
Definition: destroy.c:36
globus_net_manager_attr_array_delete
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
globus_net_manager_attr_s::name
char * name
Definition: globus_net_manager_attr.h:51