base/config/kconfig/mconf.c File Reference

Include dependency graph for mconf.c:

Go to the source code of this file.

Defines

#define LKC_DIRECT_LINK

Functions

static void conf (struct menu *menu)
static void conf_choice (struct menu *menu)
static void conf_string (struct menu *menu)
static void conf_load (void)
static void conf_save (void)
static void show_textbox (const char *title, const char *text, int r, int c)
static void show_helptext (const char *title, const char *text)
static void show_help (struct menu *menu)
static void show_readme (void)
static void cprint_init (void)
static int cprint1 (const char *fmt,...)
static void cprint_done (void)
static int cprint (const char *fmt,...)
static void init_wsize (void)
static void winch_handler (int sig)
static int exec_conf (void)
static void build_conf (struct menu *menu)
static void conf_cleanup (void)
int main (int ac, char **av)

Variables

static char menu_backtitle [128]
static const char menu_instructions []
static const char radiolist_instructions []
static const char inputbox_instructions_int []
static const char inputbox_instructions_hex []
static const char inputbox_instructions_string []
static const char setmod_text []
static const char nohelp_text []
static const char load_config_text []
static const char load_config_help []
static const char save_config_text []
static const char save_config_help []
static char buf [4096]
static char * bufptr = buf
static char input_buf [4096]
static char filename [PATH_MAX+1] = ".config"
static char * args [1024]
static char ** argptr = args
static int indent = 0
static struct termios ios_org
static int rows
static int cols
static struct menucurr_menu
static int child_count
static int do_resize
static int single_menu_mode
pid_t pid


Define Documentation

#define LKC_DIRECT_LINK

Definition at line 22 of file mconf.c.


Function Documentation

static void build_conf ( struct menu menu  )  [static]

Definition at line 279 of file mconf.c.

References child_count, cprint(), cprint1(), cprint_done(), curr_menu, menu::data, indent, menu::list, menu_get_prompt(), menu_is_visible(), mod, menu::next, no, P_MENU, menu::prompt, S_BOOLEAN, S_TRISTATE, single_menu_mode, menu::sym, sym_get_choice_value(), sym_get_string_value(), sym_get_tristate_value(), sym_get_type(), sym_has_value(), sym_is_changable(), sym_is_choice(), sym_is_choice_value(), property::type, and yes.

Referenced by conf().

Here is the call graph for this function:

static void conf ( struct menu menu  )  [static]

Definition at line 435 of file mconf.c.

References build_conf(), child_count, cols, conf(), conf_choice(), conf_load(), conf_save(), conf_string(), cprint(), cprint_init(), curr_menu, menu::data, exec_conf(), input_buf, menu_get_prompt(), menu_instructions, mod, no, P_MENU, menu::prompt, rootmenu, rows, setmod_text, show_help(), show_readme(), show_textbox(), single_menu_mode, menu::sym, sym_get_tristate_value(), sym_is_choice(), sym_set_tristate_value(), sym_toggle_tristate_value(), symbol::type, and yes.

Here is the call graph for this function:

static void conf_choice ( struct menu menu  )  [static]

Definition at line 603 of file mconf.c.

References cprint(), cprint_init(), curr_menu, exec_conf(), input_buf, menu::list, menu_get_prompt(), menu_is_visible(), menu::next, radiolist_instructions, show_help(), menu::sym, sym_get_choice_value(), sym_set_tristate_value(), and yes.

Here is the call graph for this function:

static void conf_cleanup ( void   )  [static]

Definition at line 746 of file mconf.c.

References ios_org.

Referenced by main().

static void conf_load ( void   )  [static]

Definition at line 688 of file mconf.c.

References conf_read(), cprint(), cprint_init(), exec_conf(), filename, input_buf, load_config_help, load_config_text, show_helptext(), and show_textbox().

Referenced by conf().

Here is the call graph for this function:

static void conf_save ( void   )  [static]

Definition at line 717 of file mconf.c.

References conf_write(), cprint(), cprint_init(), exec_conf(), filename, input_buf, save_config_help, save_config_text, show_helptext(), and show_textbox().

Referenced by conf().

Here is the call graph for this function:

static void conf_string ( struct menu menu  )  [static]

Definition at line 161 of file conf.c.

References conf_askvalue(), symbol::help, indent, line, symbol::name, nohelp_text, menu::prompt, menu::sym, sym_get_string_value(), sym_set_string_value(), and property::text.

Referenced by conf().

Here is the call graph for this function:

static int cprint ( const char *  fmt,
  ... 
) [static]

Definition at line 181 of file mconf.c.

References argptr, and bufptr.

Referenced by build_conf(), conf(), conf_choice(), conf_load(), conf_save(), cprint_init(), main(), show_readme(), and show_textbox().

static int cprint1 ( const char *  fmt,
  ... 
) [static]

Definition at line 160 of file mconf.c.

References argptr, and bufptr.

Referenced by build_conf().

static void cprint_done ( void   )  [static]

Definition at line 175 of file mconf.c.

References argptr, and bufptr.

Referenced by build_conf().

static void cprint_init ( void   )  [static]

Definition at line 148 of file mconf.c.

References argptr, args, buf, bufptr, child_count, cprint(), indent, and menu_backtitle.

Referenced by conf(), conf_choice(), conf_load(), conf_save(), main(), show_readme(), and show_textbox().

Here is the call graph for this function:

static int exec_conf ( void   )  [static]

Definition at line 206 of file mconf.c.

References argptr, args, bufptr, do_resize, errno, init_wsize(), input_buf, pid, and winch_handler().

Referenced by conf(), conf_choice(), conf_load(), conf_save(), main(), show_readme(), and show_textbox().

Here is the call graph for this function:

static void init_wsize ( void   )  [static]

Definition at line 111 of file mconf.c.

References cols, and rows.

Referenced by exec_conf(), and main().

int main ( int  ac,
char **  av 
)

Definition at line 753 of file mconf.c.

References conf(), conf_cleanup(), conf_parse(), conf_read(), conf_write(), cprint(), cprint_init(), exec_conf(), init_wsize(), ios_org, menu_backtitle, rootmenu, single_menu_mode, sym_calc_value(), sym_get_string_value(), and sym_lookup().

Here is the call graph for this function:

static void show_help ( struct menu menu  )  [static]

Definition at line 574 of file mconf.c.

References symbol::help, menu_get_prompt(), symbol::name, nohelp_text, show_helptext(), and menu::sym.

Referenced by conf(), and conf_choice().

Here is the call graph for this function:

static void show_helptext ( const char *  title,
const char *  text 
) [static]

Definition at line 569 of file mconf.c.

References cols, rows, and show_textbox().

Referenced by conf_load(), conf_save(), and show_help().

Here is the call graph for this function:

static void show_readme ( void   )  [static]

Definition at line 592 of file mconf.c.

References cols, cprint(), cprint_init(), exec_conf(), and rows.

Referenced by conf().

Here is the call graph for this function:

static void show_textbox ( const char *  title,
const char *  text,
int  r,
int  c 
) [static]

Definition at line 548 of file mconf.c.

References cprint(), cprint_init(), exec_conf(), and fd.

Referenced by conf(), conf_load(), conf_save(), and show_helptext().

Here is the call graph for this function:

static void winch_handler ( int  sig  )  [static]

Definition at line 198 of file mconf.c.

References do_resize, and pid.

Referenced by exec_conf().


Variable Documentation

char ** argptr = args [static]

Definition at line 87 of file mconf.c.

Referenced by cprint(), cprint1(), cprint_done(), cprint_init(), and exec_conf().

char* args[1024] [static]

Definition at line 87 of file mconf.c.

Referenced by cprint_init(), exec_conf(), main(), rt_printk(), rt_sync_printk(), rtai_print_to_screen(), rtf_evdrp(), rtf_ioctl(), rtf_overwrite(), rtf_read_all_at_once(), rtf_read_if(), rtf_read_timed(), rtf_write_if(), rtf_write_timed(), support_tasklet(), and user_srq().

char buf[4096] [static]

Definition at line 84 of file mconf.c.

char * bufptr = buf [static]

Definition at line 84 of file mconf.c.

Referenced by cprint(), cprint1(), cprint_done(), cprint_init(), and exec_conf().

int child_count [static]

Definition at line 92 of file mconf.c.

Referenced by build_conf(), conf(), and cprint_init().

int cols [static]

Definition at line 90 of file mconf.c.

Referenced by conf(), init_wsize(), show_helptext(), and show_readme().

struct menu* curr_menu [static]

Definition at line 91 of file mconf.c.

Referenced by build_conf(), conf(), and conf_choice().

int do_resize [static]

Definition at line 93 of file mconf.c.

Referenced by exec_conf(), and winch_handler().

char filename[PATH_MAX+1] = ".config" [static]

Definition at line 86 of file mconf.c.

Referenced by conf_load(), and conf_save().

int indent = 0 [static]

Definition at line 88 of file mconf.c.

char input_buf[4096] [static]

Definition at line 85 of file mconf.c.

Referenced by conf(), conf_choice(), conf_load(), conf_save(), and exec_conf().

const char inputbox_instructions_hex[] [static]

Initial value:

    "Please enter a hexadecimal value. "
    "Use the <TAB> key to move from the input field to the buttons below it."

Definition at line 42 of file mconf.c.

const char inputbox_instructions_int[] [static]

Initial value:

    "Please enter a decimal value. "
    "Fractions will not be accepted.  "
    "Use the <TAB> key to move from the input field to the buttons below it."

Definition at line 38 of file mconf.c.

const char inputbox_instructions_string[] [static]

Initial value:

    "Please enter a string value. "
    "Use the <TAB> key to move from the input field to the buttons below it."

Definition at line 45 of file mconf.c.

struct termios ios_org [static]

Definition at line 89 of file mconf.c.

Referenced by conf_cleanup(), and main().

const char load_config_help[] [static]

Initial value:

    "\n"
    "For various reasons, one may wish to keep several different RTAI\n"
    "configurations available on a single machine.\n"
    "\n"
    "If you have saved a previous configuration in a file other than\n"
    "RTAI's default, entering the name of the file here will allow you\n"
    "to modify that configuration.\n"
    "\n"
    "If you are uncertain, then you have probably never used alternate\n"
    "configuration files.  You should therefor leave this blank to abort.\n"

Definition at line 57 of file mconf.c.

Referenced by conf_load().

const char load_config_text[] [static]

Initial value:

    "Enter the name of the configuration file you wish to load.  "
    "Accept the name shown to restore the configuration you "
    "last retrieved.  Leave blank to abort."

Definition at line 53 of file mconf.c.

Referenced by conf_load().

char menu_backtitle[128] [static]

Definition at line 25 of file mconf.c.

Referenced by cprint_init(), and main().

const char menu_instructions[] [static]

Initial value:

    "Arrow keys navigate the menu.  "
    "<Enter> selects submenus --->.  "
    "Highlighted letters are hotkeys.  "
    "Pressing <Y> includes, <N> excludes, <M> modularizes features.  "
    "Press <Esc><Esc> to exit, <?> for Help.  "
    "Legend: [*] built-in  [ ] excluded  <M> module  < > module capable"

Definition at line 26 of file mconf.c.

Referenced by conf().

const char nohelp_text[] [static]

Initial value:

    "There is no help available for this RTAI option.\n"

Definition at line 51 of file mconf.c.

pid_t pid

Definition at line 196 of file mconf.c.

Referenced by __wrap_timer_create(), exec_conf(), main(), rt_Name_attach(), rt_Name_locate(), and winch_handler().

const char radiolist_instructions[] [static]

Initial value:

    "Use the arrow keys to navigate this window or "
    "press the hotkey of the item you wish to select "
    "followed by the <SPACE BAR>. "
    "Press <?> for additional information about this option."

Definition at line 33 of file mconf.c.

Referenced by conf_choice().

int rows [static]

Definition at line 90 of file mconf.c.

Referenced by conf(), init_wsize(), show_helptext(), and show_readme().

const char save_config_help[] [static]

Initial value:

    "\n"
    "For various reasons, one may wish to keep different RTAI\n"
    "configurations available on a single machine.\n"
    "\n"
    "Entering a file name here will allow you to later retrieve, modify\n"
    "and use the current configuration as an alternate to whatever\n"
    "configuration options you have selected at that time.\n"
    "\n"
    "If you are uncertain what all this means then you should probably\n"
    "leave this blank.\n"

Definition at line 71 of file mconf.c.

Referenced by conf_save().

const char save_config_text[] [static]

Initial value:

    "Enter a filename to which this configuration should be saved "
    "as an alternate.  Leave blank to abort."

Definition at line 68 of file mconf.c.

Referenced by conf_save().

const char setmod_text[] [static]

Initial value:

    "This feature depends on another which has been configured as a module.\n"
    "As a result, this feature will be built as a module."

Definition at line 48 of file mconf.c.

Referenced by conf().

int single_menu_mode [static]

Definition at line 94 of file mconf.c.

Referenced by build_conf(), conf(), and main().


Generated on Tue Feb 2 17:46:32 2010 for RTAI API by  doxygen 1.4.7