globus_net_manager_attr(3)
π globus_net_manager_attr π
okay bestie so this is globus_net_manager_attr(3) β a library functions manual page, section 3, and it's all about Attributes for the Globus net manager. Net Manager Attribute Management Functions, if we're being fancy about it. π Let's get into it.
β¨ NAME β¨
globus_net_manager_attr β Attributes
- Net Manager Attribute Management Functions.
π SYNOPSIS π
π¦ Data Structures
struct globus_net_manager_attr_sβ Net Manager Attributes.
π Macros
#define GLOBUS_NET_MANAGER_NULL_ATTRβ End of attribute array static initializer.
π Typedefs
typedef struct globus_net_manager_attr_s globus_net_manager_attr_tβ Net Manager Attributes.
β Functions
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.
void globus_net_manager_attr_array_delete (globus_net_manager_attr_t
*attrs)
Destroy an array of Network Manager attributes.
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.
void globus_net_manager_attr_destroy (globus_net_manager_attr_t *attr)
Destroy the contents of an attribute.
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.
π Variables
const globus_net_manager_attr_t globus_net_manager_null_attr = GLOBUS_NET_MANAGER_NULL_ATTRβ End of array value.
πΈ Detailed Description πΈ
Net Manager Attribute Management Functions. That's the whole vibe. β¨
π Typedef Documentation π
π«Ά typedef struct globus_net_manager_attr_s globus_net_manager_attr_t
Net Manager Attributes. So, the globus_net_manager_attr_t structure defines a scoped (attribute, value) tuple, okay? And the scope in most cases is either the name of the transport driver, or the "globus_net_manager" scope β that second one is for attributes specific to the network manager implementation. iykyk. π«
π₯ Function Documentation π₯
π 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. Bestie, this one does a deep copy of an array of net_manager attributes. The new array gets stored in the pointer you pass as the dest_array parameter, and it will contain all entries in the array passed as src_array, ending with the value GLOBUS_NET_MANAGER_NULL_ATTR. π
heads up: the caller must free the array stored in*dest_arrayby callingglobus_net_manager_attr_array_destroy(). yes really. don't just walk away from it. π
Parameters
dest_arrayβ A pointer to an array of attributes to be allocated and initialized.src_arrayβ An array of attributes to copy.
Returns
- On error, the
dest_arrayis set toNULLand this function returns an error object. Otherwise, this function returnsGLOBUS_SUCCESS.
π¦ void globus_net_manager_attr_array_delete
(globus_net_manager_attr_t * attrs)
Destroy an array of Network Manager attributes. This function deletes an array of Network Manager attributes and all values contained within them. The array must be terminated by the value GLOBUS_NET_MANAGER_NULL_ATTR. no cap. π
Parameters
attrsβ A pointer to an array of attributes to be freed.
β 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. This function parses a string containing a list of attributes and creates a new array of Network Manager attribute values from it. The array is terminated by globus_net_manager_null_attr. πͺ
Attribute strings are formed by the regular expression:
NAME=VALUE(;NAME=VALUE)*
The NAME and VALUE strings may contain any character except ;, =, and the carriage return and newline characters. so like, choose your characters wisely bestie.
reminder: the caller must free the array stored in*attrby callingglobus_net_manager_attr_array_destroy(). π
Parameters
attrβ A pointer to an array of attributes to be allocated and initialized.scopeβ The string to be added as the scope value of the attributes.attr_stringβ The string to be parsed.
Returns
- On success, this function returns
GLOBUS_SUCCESS. Otherwise, an error result is returned to the caller.
π void globus_net_manager_attr_destroy
(globus_net_manager_attr_t * attr)
Destroy the contents of an attribute. This function frees the values contained in attr and reinitializes them to NULL. It does not free attr itself. important distinction, okay? the container stays, the insides go. π«§
Parameters
attrβ Pointer to the attribute to destroy.
π 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. This function initializes attr and with copies of the values passed as the scope, name, and value parameters. (that's the original's grammar, we're keeping it, it's iconic. π)
Parameters
attrβ Pointer to the attribute to initialize.scopeβ Attribute scopenameβ Attribute namevalueβ Attribute value
Returns
- On error,
'attr'is set toNULLand this function returns an error object. Otherwise this function returns'GLOBUS_SUCCESS'.
π§ Variable Documentation π§
π const globus_net_manager_attr_t globus_net_manager_null_attr = GLOBUS_NET_MANAGER_NULL_ATTR
End of array value. This value may be assigned to an element in an array of Network Manager attributes to terminate the array. it's the little period at the end of the sentence, fr fr. β
π Author π
Generated automatically by Doxygen for globus_net_manager from the source code. (not me writing my own autobiography, the tool did it π)
and that's the whole page, bestie!! π«Ά it's globus_net_manager, Version 1.7, and yes the page you just read is literally called globus_net_manager_attr(3) β same name up top, same name at the bottom, full circle moment. slay. π
β¨π
π¦ where this page comes from
- fedora 43: globus-net-manager-doc 1.7-13.fc43 Β· Apache-2.0
- fedora 44: globus-net-manager-doc 1.7-14.fc44 Β· Apache-2.0
- ubuntu resolute: libglobus-net-manager-doc 1.7-3build4 Β· Apache-2.0
- ubuntu stonking: libglobus-net-manager-doc 1.7-3build4 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms