Dynamic Load Balance 3.6.1+32-59d1
Data Structures | Macros | Enumerations | Functions
options.c File Reference
#include "support/options.h"
#include "apis/dlb_types.h"
#include "apis/dlb_errors.h"
#include "support/types.h"
#include "support/mask_utils.h"
#include "support/debug.h"
#include "LB_core/spd.h"
#include <string.h>
#include <stddef.h>
#include <ctype.h>
#include <stdint.h>
#include <limits.h>
Include dependency graph for options.c:

Data Structures

struct  opts_dict_t
 

Macros

#define OFFSET   " "
 

Enumerations

enum  option_flags_t {
  OPT_CLEAR = 0 , OPT_READONLY = 1 << 0 , OPT_OPTIONAL = 1 << 1 , OPT_DEPRECATED = 1 << 2 ,
  OPT_ADVANCED = 1 << 3 , OPT_HIDDEN = 1 << 4 , OPT_UNUSED = 1 << 5
}
 
enum  option_type_t {
  OPT_BOOL_T , OPT_NEG_BOOL_T , OPT_INT_T , OPT_STR_T ,
  OPT_PTR_PATH_T , OPT_VB_T , OPT_VBFMT_T , OPT_INST_T ,
  OPT_DBG_T , OPT_LEWI_AFF_T , OPT_MASK_T , OPT_MODE_T ,
  OPT_MPISET_T , OPT_OMPTOPTS_T , OPT_TLPSUM_T , OPT_TLPMOD_T ,
  OPT_TLPCOM_T , OPT_OMPTM_T
}
 
enum  { NUM_OPTIONS = sizeof(options_dictionary)/sizeof(opts_dict_t) }
 

Functions

void options_init (options_t *options, const char *dlb_args)
 
void options_finalize (options_t *options)
 
void options_parse_entry (const char *var_name, void *option)
 
int options_set_variable (options_t *options, const char *var_name, const char *value)
 
int options_get_variable (const options_t *options, const char *var_name, char *value)
 
void options_print_variables (const options_t *options, bool print_extended)
 
void options_print_lewi_flags (const options_t *options)
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET   " "

Enumeration Type Documentation

◆ option_flags_t

Enumerator
OPT_CLEAR 
OPT_READONLY 
OPT_OPTIONAL 
OPT_DEPRECATED 
OPT_ADVANCED 
OPT_HIDDEN 
OPT_UNUSED 

◆ option_type_t

Enumerator
OPT_BOOL_T 
OPT_NEG_BOOL_T 
OPT_INT_T 
OPT_STR_T 
OPT_PTR_PATH_T 
OPT_VB_T 
OPT_VBFMT_T 
OPT_INST_T 
OPT_DBG_T 
OPT_LEWI_AFF_T 
OPT_MASK_T 
OPT_MODE_T 
OPT_MPISET_T 
OPT_OMPTOPTS_T 
OPT_TLPSUM_T 
OPT_TLPMOD_T 
OPT_TLPCOM_T 
OPT_OMPTM_T 

◆ anonymous enum

anonymous enum
Enumerator
NUM_OPTIONS 

Function Documentation

◆ options_init()

void options_init ( options_t options,
const char *  dlb_args 
)

◆ options_finalize()

void options_finalize ( options_t options)

◆ options_parse_entry()

void options_parse_entry ( const char *  var_name,
void *  option 
)

◆ options_set_variable()

int options_set_variable ( options_t options,
const char *  var_name,
const char *  value 
)

◆ options_get_variable()

int options_get_variable ( const options_t options,
const char *  var_name,
char *  value 
)

◆ options_print_variables()

void options_print_variables ( const options_t options,
bool  print_extended 
)

◆ options_print_lewi_flags()

void options_print_lewi_flags ( const options_t options)