globus_module.h(3) | globus_common | globus_module.h(3) |
globus_module.h - Reference Counting Module Activation and Deactivation.
#include 'globus_error_generic.h'
#include <stdio.h>
struct globus_module_descriptor_s
Module Descriptor.
typedef int(* globus_module_deactivate_proxy_cb_t)
(globus_module_descriptor_t *module_descriptor, void *user_arg)
int globus_module_activate
(globus_module_descriptor_t *module_descriptor)
Activate a module. int globus_module_activate_array
(globus_module_descriptor_t *modules[],
globus_module_descriptor_t **failed_module)
Activate a group of modules. int globus_module_deactivate
(globus_module_descriptor_t *module_descriptor)
Deactivate a module. int globus_module_activate_proxy
(globus_module_descriptor_t *module_descriptor,
globus_module_deactivate_proxy_cb_t deactivate_cb, void *user_arg)
void globus_module_setenv (const char *name, const char *value)
char * globus_module_getenv (const char *name)
void * globus_module_get_module_pointer
(globus_module_descriptor_t *)
int globus_module_get_version (globus_module_descriptor_t
*module_descriptor, globus_version_t *version)
void globus_module_print_version (globus_module_descriptor_t
*module_descriptor, FILE *stream, globus_bool_t verbose)
void globus_module_print_activated_versions (FILE *stream,
globus_bool_t verbose)
void globus_version_print (const char *name, const globus_version_t
*version, FILE *stream, globus_bool_t verbose)
Reference Counting Module Activation and Deactivation.
module must be deactivated in this call with module_descriptor->deactivation_func(); (be sure module_descriptor->deactivation_func is !NULL)
this call registers a callback to be called to handle deactivation when globus_module_deactivate() or globus_module_deactivate_all() is called
The callback is only respected for the first call to activate this module. The purpose of these proxy calls is to allow 'private' module descriptors that are activated by some other user function, but may still be affected by deactivate_all().
Get a module pointer
get version associated with module
This function copies the version structure associated with the module into 'version'.
Parameters
Returns
Get the value of an environment variable
print all activated modules' versions
This function prints all activated modules' version info using the standard form provided by globus_version_print
Parameters
Returns
print module's version
This function prints a modules version info using the standard form provided by globus_version_print
Parameters
Returns
set an environment variable
print version structure
This function provides a stand way of printing version information The version is printed to stream with the following form: name: major.minor if verbose = false name: major.minor.timestamp-branch_id if verbose = true
In either case, if name is NULL, then only the numerical version will be printed.
Parameters
Returns
Generated automatically by Doxygen for globus_common from the source code.
Sun Dec 13 2020 | Version 18.9 |