55 assert(option != NULL);
79 assert(option != NULL);
95 const char *
const value,
96 const char *
const description)
103 assert(option != NULL);
104 assert(value != NULL);
105 assert(description != NULL);
109 EVEL_ERROR(
"Ignoring attempt to update %s to %s. %s already set to %s",
110 description, value, description, option->
value);
114 EVEL_DEBUG(
"Setting %s to %s", description, value);
115 option->
value = strdup(value);
129 const char *
const value)
136 assert(option != NULL);
138 assert(option->
value == NULL);
140 option->
value = strdup(value);
158 assert(option != NULL);
180 assert(option != NULL);
182 option->
value = value;
197 const char *
const description)
204 assert(option != NULL);
205 assert(description != NULL);
209 EVEL_ERROR(
"Ignoring attempt to update %s to %d. %s already set to %d",
210 description, value, description, option->
value);
214 EVEL_DEBUG(
"Setting %s to %d", description, value);
215 option->
value = value;
234 assert(option != NULL);
256 assert(option != NULL);
258 option->
value = value;
273 const char *
const description)
280 assert(option != NULL);
281 assert(description != NULL);
285 EVEL_ERROR(
"Ignoring attempt to update %s to %lf. %s already set to %lf",
286 description, value, description, option->
value);
290 EVEL_DEBUG(
"Setting %s to %lf", description, value);
291 option->
value = value;
310 assert(option != NULL);
323 const unsigned long long value)
330 assert(option != NULL);
332 option->
value = value;
346 const unsigned long long value,
347 const char *
const description)
354 assert(option != NULL);
355 assert(description != NULL);
359 EVEL_ERROR(
"Ignoring attempt to update %s to %llu. %s already set to %llu",
360 description, value, description, option->
value);
364 EVEL_DEBUG(
"Setting %s to %llu", description, value);
365 option->
value = value;
383 assert(option != NULL);
403 assert(option != NULL);
405 option->
value = value;
420 const char *
const description)
427 assert(option != NULL);
428 assert(description != NULL);
432 EVEL_ERROR(
"Ignoring attempt to update %s to %d. %s already set to %d",
433 description, value, description, option->
value);
437 EVEL_DEBUG(
"Setting %s to %d", description, value);
438 option->
value = value;
void evel_set_option_time(EVEL_OPTION_TIME *const option, const time_t value, const char *const description)
Set the value of an EVEL_OPTION_TIME.
#define EVEL_DEBUG(FMT,...)
Optional parameter holder for unsigned long long.
Optional parameter holder for double.
Optional parameter holder for string.
void evel_init_option_time(EVEL_OPTION_TIME *const option)
Initialize an EVEL_OPTION_TIME to a not-set state.
void evel_free_option_string(EVEL_OPTION_STRING *const option)
Free the underlying resources of an EVEL_OPTION_STRING.
void evel_init_option_ull(EVEL_OPTION_ULL *const option)
Initialize an EVEL_OPTION_ULL to a not-set state.
void evel_set_option_int(EVEL_OPTION_INT *const option, const int value, const char *const description)
Set the value of an EVEL_OPTION_INT.
void evel_force_option_string(EVEL_OPTION_STRING *const option, const char *const value)
Force the value of an EVEL_OPTION_STRING.
void evel_set_option_string(EVEL_OPTION_STRING *const option, const char *const value, const char *const description)
Set the value of an EVEL_OPTION_STRING.
Optional parameter holder for int.
#define EVEL_ERROR(FMT,...)
void evel_force_option_ull(EVEL_OPTION_ULL *const option, const unsigned long long value)
Force the value of an EVEL_OPTION_ULL.
void evel_init_option_double(EVEL_OPTION_DOUBLE *const option)
Initialize an EVEL_OPTION_DOUBLE to a not-set state.
void evel_set_option_ull(EVEL_OPTION_ULL *const option, const unsigned long long value, const char *const description)
Set the value of an EVEL_OPTION_ULL.
void evel_force_option_int(EVEL_OPTION_INT *const option, const int value)
Force the value of an EVEL_OPTION_INT.
void evel_init_option_string(EVEL_OPTION_STRING *const option)
Initialize an EVEL_OPTION_STRING to a not-set state.
void evel_init_option_int(EVEL_OPTION_INT *const option)
Initialize an EVEL_OPTION_INT to a not-set state.
void evel_force_option_double(EVEL_OPTION_DOUBLE *const option, const double value)
Force the value of an EVEL_OPTION_DOUBLE.
EVEL internal definitions.
void evel_force_option_time(EVEL_OPTION_TIME *const option, const time_t value)
Force the value of an EVEL_OPTION_TIME.
Optional parameter holder for time_t.
void evel_set_option_double(EVEL_OPTION_DOUBLE *const option, const double value, const char *const description)
Set the value of an EVEL_OPTION_DOUBLE.