#include <stdio.h>
#include <glib.h>
#include <utils/eh_types.h>
Go to the source code of this file.
Classes | |
struct | Eh_opt_entry |
Functions | |
new_handle (Eh_opt_context) | |
Eh_opt_context | eh_opt_create_context (const gchar *name, const gchar *description, const gchar *help_description) |
Eh_opt_context | eh_destroy_context (Eh_opt_context context) |
Eh_opt_context | eh_opt_set_context (Eh_opt_context context, Eh_opt_entry *entries) |
gboolean | eh_opt_parse_context (Eh_opt_context context, gint *argc, gchar ***argv, GError **error) |
void | eh_opt_print_label_value (Eh_opt_context context, char *label) |
char * | eh_opt_value (Eh_opt_context context, char *label) |
char * | eh_opt_str_value (Eh_opt_context c, char *label) |
gboolean | eh_opt_bool_value (Eh_opt_context c, char *label) |
int | eh_opt_key_value (Eh_opt_context c, char *label, char *keys[]) |
gint | eh_opt_int_value (Eh_opt_context c, char *label) |
double | eh_opt_dbl_value (Eh_opt_context c, char *label) |
void | eh_opt_print_key_file (Eh_opt_context c, FILE *fp) |
void | eh_opt_print_all_opts (Eh_opt_context c, FILE *fp) |
Eh_opt_context eh_destroy_context | ( | Eh_opt_context | context | ) |
Definition at line 153 of file eh_opt_context.c.
References eh_free, and eh_symbol_table_destroy().
Referenced by main().
gboolean eh_opt_bool_value | ( | Eh_opt_context | c, | |
char * | label | |||
) |
Definition at line 247 of file eh_opt_context.c.
References eh_opt_value(), and eh_str_to_boolean().
Referenced by main().
Eh_opt_context eh_opt_create_context | ( | const gchar * | name, | |
const gchar * | description, | |||
const gchar * | help_description | |||
) |
Definition at line 136 of file eh_opt_context.c.
References eh_symbol_table_new(), and NEW_OBJECT.
Referenced by main().
double eh_opt_dbl_value | ( | Eh_opt_context | c, | |
char * | label | |||
) |
gint eh_opt_int_value | ( | Eh_opt_context | c, | |
char * | label | |||
) |
int eh_opt_key_value | ( | Eh_opt_context | c, | |
char * | label, | |||
char * | keys[] | |||
) |
gboolean eh_opt_parse_context | ( | Eh_opt_context | context, | |
gint * | argc, | |||
gchar *** | argv, | |||
GError ** | error | |||
) |
void eh_opt_print_all_opts | ( | Eh_opt_context | c, | |
FILE * | fp | |||
) |
Definition at line 344 of file eh_opt_context.c.
References Print_opt_padded_st::context, eh_opt_get_max_label_length(), eh_opt_print_opt_padded(), eh_symbol_table_foreach(), Print_opt_padded_st::max_key_len, and Print_opt_padded_st::max_value_len.
void eh_opt_print_key_file | ( | Eh_opt_context | c, | |
FILE * | fp | |||
) |
Definition at line 320 of file eh_opt_context.c.
References eh_opt_print_label_value_helper(), and eh_symbol_table_foreach().
Referenced by main().
void eh_opt_print_label_value | ( | Eh_opt_context | context, | |
char * | label | |||
) |
Eh_opt_context eh_opt_set_context | ( | Eh_opt_context | context, | |
Eh_opt_entry * | entries | |||
) |
Definition at line 172 of file eh_opt_context.c.
References convert_eh_option_entry_to_g_option_entry(), get_n_entries(), and set_default_values().
Referenced by main().
char* eh_opt_str_value | ( | Eh_opt_context | c, | |
char * | label | |||
) |
char* eh_opt_value | ( | Eh_opt_context | context, | |
char * | label | |||
) |
Definition at line 226 of file eh_opt_context.c.
References eh_symbol_table_lookup().
Referenced by eh_opt_bool_value(), eh_opt_dbl_value(), eh_opt_int_value(), eh_opt_key_value(), eh_opt_print_label_value(), eh_opt_print_opt_padded(), eh_opt_str_value(), and main().
new_handle | ( | Eh_opt_context | ) |