@@ -95,7 +95,7 @@ typedef enum {
9595 PMIX_MCA_BASE_VAR_TYPE_MAX
9696} pmix_mca_base_var_type_t ;
9797
98- extern const char * pmix_var_type_names [];
98+ PMIX_EXPORT extern const char * pmix_var_type_names [];
9999
100100/**
101101 * Source of an MCA variable's value
@@ -298,7 +298,7 @@ BEGIN_C_DECLS
298298/**
299299 * Object declarayion for pmix_mca_base_var_t
300300 */
301- PMIX_CLASS_DECLARATION (pmix_mca_base_var_t );
301+ PMIX_EXPORT PMIX_CLASS_DECLARATION (pmix_mca_base_var_t );
302302
303303/**
304304 * Initialize the MCA variable system.
@@ -309,7 +309,7 @@ PMIX_CLASS_DECLARATION(pmix_mca_base_var_t);
309309 * invoked internally (by pmix_mca_base_open()) and is only documented
310310 * here for completeness.
311311 */
312- int pmix_mca_base_var_init (void );
312+ PMIX_EXPORT int pmix_mca_base_var_init (void );
313313
314314/**
315315 * Register an MCA variable
@@ -489,7 +489,7 @@ PMIX_EXPORT int pmix_mca_base_var_register_synonym (int synonym_for, const char
489489 *
490490 * If an enumerator is associated with this variable it will be dereferenced.
491491 */
492- int pmix_mca_base_var_deregister (int vari );
492+ PMIX_EXPORT int pmix_mca_base_var_deregister (int vari );
493493
494494
495495/**
@@ -512,9 +512,9 @@ int pmix_mca_base_var_deregister(int vari);
512512 * Note: The value can be changed by the registering code without using
513513 * the pmix_mca_base_var_* interface so the source may be incorrect.
514514 */
515- int pmix_mca_base_var_get_value (int vari , void * value ,
516- pmix_mca_base_var_source_t * source ,
517- const char * * source_file );
515+ PMIX_EXPORT int pmix_mca_base_var_get_value (int vari , void * value ,
516+ pmix_mca_base_var_source_t * source ,
517+ const char * * source_file );
518518
519519/**
520520 * Sets an "override" value for an integer MCA variable.
@@ -537,9 +537,9 @@ int pmix_mca_base_var_get_value (int vari, void *value,
537537 * a synonym the variable the synonym represents) if the value is
538538 * settable.
539539 */
540- int pmix_mca_base_var_set_value (int vari , const void * value , size_t size ,
541- pmix_mca_base_var_source_t source ,
542- const char * source_file );
540+ PMIX_EXPORT int pmix_mca_base_var_set_value (int vari , const void * value , size_t size ,
541+ pmix_mca_base_var_source_t source ,
542+ const char * source_file );
543543
544544/**
545545 * Get the string name corresponding to the MCA variable
@@ -554,8 +554,8 @@ int pmix_mca_base_var_set_value (int vari, const void *value, size_t size,
554554 * The string that is returned is owned by the caller; if
555555 * appropriate, it must be eventually freed by the caller.
556556 */
557- int pmix_mca_base_var_env_name (const char * param_name ,
558- char * * env_name );
557+ PMIX_EXPORT int pmix_mca_base_var_env_name (const char * param_name ,
558+ char * * env_name );
559559
560560/**
561561 * Find the index for an MCA variable based on its names.
@@ -574,10 +574,10 @@ int pmix_mca_base_var_env_name(const char *param_name,
574574 * of any registered variable. The returned index can be used with
575575 * pmix_mca_base_var_get() and pmix_mca_base_var_get_value().
576576 */
577- int pmix_mca_base_var_find (const char * project_name ,
578- const char * type_name ,
579- const char * component_name ,
580- const char * param_name );
577+ PMIX_EXPORT int pmix_mca_base_var_find (const char * project_name ,
578+ const char * type_name ,
579+ const char * component_name ,
580+ const char * param_name );
581581
582582/**
583583 * Find the index for a variable based on its full name
@@ -587,7 +587,7 @@ int pmix_mca_base_var_find (const char *project_name,
587587 *
588588 * See pmix_mca_base_var_find().
589589 */
590- int pmix_mca_base_var_find_by_name (const char * full_name , int * vari );
590+ PMIX_EXPORT int pmix_mca_base_var_find_by_name (const char * full_name , int * vari );
591591
592592/**
593593 * Check that two MCA variables were not both set to non-default
@@ -617,13 +617,13 @@ int pmix_mca_base_var_find_by_name (const char *full_name, int *vari);
617617 * are not MCA_BASE_VAR_SOURCE_DEFAULT.
618618 * @returns PMIX_SUCCESS otherwise.
619619 */
620- int pmix_mca_base_var_check_exclusive (const char * project ,
621- const char * type_a ,
622- const char * component_a ,
623- const char * param_a ,
624- const char * type_b ,
625- const char * component_b ,
626- const char * param_b );
620+ PMIX_EXPORT int pmix_mca_base_var_check_exclusive (const char * project ,
621+ const char * type_a ,
622+ const char * component_a ,
623+ const char * param_a ,
624+ const char * type_b ,
625+ const char * component_b ,
626+ const char * param_b );
627627
628628/**
629629 * Set or unset a flag on a variable.
@@ -636,8 +636,8 @@ int pmix_mca_base_var_check_exclusive (const char *project,
636636 * @returns PMIX_ERR_BAD_PARAM If the variable is not registered.
637637 * @returns PMIX_ERROR Otherwise
638638 */
639- int pmix_mca_base_var_set_flag (int vari , pmix_mca_base_var_flag_t flag ,
640- bool set );
639+ PMIX_EXPORT int pmix_mca_base_var_set_flag (int vari , pmix_mca_base_var_flag_t flag ,
640+ bool set );
641641
642642/**
643643 * Obtain basic info on a single variable (name, help message, etc)
@@ -651,7 +651,7 @@ int pmix_mca_base_var_set_flag(int vari, pmix_mca_base_var_flag_t flag,
651651 * The returned pointer belongs to the MCA variable system. Do not
652652 * modify/free/retain the pointer.
653653 */
654- int pmix_mca_base_var_get (int vari , const pmix_mca_base_var_t * * var );
654+ PMIX_EXPORT int pmix_mca_base_var_get (int vari , const pmix_mca_base_var_t * * var );
655655
656656/**
657657 * Obtain the number of variables that have been registered.
@@ -664,7 +664,7 @@ int pmix_mca_base_var_get (int vari, const pmix_mca_base_var_t **var);
664664 * returned is equal to the number of calls to pmix_mca_base_var_register with
665665 * unique names. ie. two calls with the same name will not affect the count.
666666 */
667- int pmix_mca_base_var_get_count (void );
667+ PMIX_EXPORT int pmix_mca_base_var_get_count (void );
668668
669669/**
670670 * Obtain a list of enironment variables describing the all
@@ -683,8 +683,8 @@ int pmix_mca_base_var_get_count (void);
683683 * its output is in terms of an argv-style array of key=value
684684 * strings, suitable for using in an environment.
685685 */
686- int pmix_mca_base_var_build_env (char * * * env , int * num_env ,
687- bool internal );
686+ PMIX_EXPORT int pmix_mca_base_var_build_env (char * * * env , int * num_env ,
687+ bool internal );
688688
689689/**
690690 * Shut down the MCA variable system (normally only invoked by the
@@ -700,7 +700,7 @@ int pmix_mca_base_var_build_env(char ***env, int *num_env,
700700 * when the process is shutting down (e.g., during MPI_FINALIZE). It
701701 * is only documented here for completeness.
702702 */
703- int pmix_mca_base_var_finalize (void );
703+ PMIX_EXPORT int pmix_mca_base_var_finalize (void );
704704
705705typedef enum {
706706 /* Dump human-readable strings */
@@ -721,19 +721,19 @@ typedef enum {
721721 * This function returns an array of strings describing the variable. All strings
722722 * and the array must be freed by the caller.
723723 */
724- int pmix_mca_base_var_dump (int vari , char * * * out , pmix_mca_base_var_dump_type_t output_type );
724+ PMIX_EXPORT int pmix_mca_base_var_dump (int vari , char * * * out , pmix_mca_base_var_dump_type_t output_type );
725725
726726#define MCA_COMPILETIME_VER "print_compiletime_version"
727727#define MCA_RUNTIME_VER "print_runtime_version"
728728
729- int pmix_mca_base_var_cache_files (bool rel_path_search );
729+ PMIX_EXPORT int pmix_mca_base_var_cache_files (bool rel_path_search );
730730
731731/*
732732 * Parse a provided list of envars and add their local value, or
733733 * their assigned value, to the provided argv
734734 */
735- int pmix_mca_base_var_process_env_list (char * * * argv );
736- int pmix_mca_base_var_process_env_list_from_file (char * * * argv );
735+ PMIX_EXPORT int pmix_mca_base_var_process_env_list (char * * * argv );
736+ PMIX_EXPORT int pmix_mca_base_var_process_env_list_from_file (char * * * argv );
737737
738738END_C_DECLS
739739
0 commit comments