Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
menu.c File Reference
#include <ctype.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include "lkc.h"

Go to the source code of this file.

Functions

void menu_warn (struct menu *menu, const char *fmt,...)
 
void _menu_init (void)
 
void menu_add_entry (struct symbol *sym)
 
void menu_end_entry (void)
 
struct menumenu_add_menu (void)
 
void menu_end_menu (void)
 
void menu_add_dep (struct expr *dep)
 
void menu_set_type (int type)
 
struct propertymenu_add_prop (enum prop_type type, char *prompt, struct expr *expr, struct expr *dep)
 
struct propertymenu_add_prompt (enum prop_type type, char *prompt, struct expr *dep)
 
void menu_add_visibility (struct expr *expr)
 
void menu_add_expr (enum prop_type type, struct expr *expr, struct expr *dep)
 
void menu_add_symbol (enum prop_type type, struct symbol *sym, struct expr *dep)
 
void menu_add_option (int token, char *arg)
 
void menu_finalize (struct menu *parent)
 
bool menu_has_prompt (struct menu *menu)
 
bool menu_is_visible (struct menu *menu)
 
const charmenu_get_prompt (struct menu *menu)
 
struct menumenu_get_root_menu (struct menu *menu)
 
struct menumenu_get_parent_menu (struct menu *menu)
 
bool menu_has_help (struct menu *menu)
 
const charmenu_get_help (struct menu *menu)
 
void get_symbol_str (struct gstr *r, struct symbol *sym, struct list_head *head)
 
struct gstr get_relations_str (struct symbol **sym_arr, struct list_head *head)
 
void menu_get_ext_help (struct menu *menu, struct gstr *help)
 

Variables

struct menu rootmenu
 
struct filefile_list
 
struct filecurrent_file
 

Function Documentation

void _menu_init ( void  )

Definition at line 41 of file menu.c.

struct gstr get_relations_str ( struct symbol **  sym_arr,
struct list_head head 
)
read

Definition at line 617 of file menu.c.

void get_symbol_str ( struct gstr r,
struct symbol sym,
struct list_head head 
)

Definition at line 577 of file menu.c.

void menu_add_dep ( struct expr dep)

Definition at line 107 of file menu.c.

void menu_add_entry ( struct symbol sym)

Definition at line 47 of file menu.c.

void menu_add_expr ( enum prop_type  type,
struct expr expr,
struct expr dep 
)

Definition at line 175 of file menu.c.

struct menu* menu_add_menu ( void  )
read

Definition at line 69 of file menu.c.

void menu_add_option ( int  token,
char arg 
)

Definition at line 185 of file menu.c.

struct property* menu_add_prompt ( enum prop_type  type,
char prompt,
struct expr dep 
)
read

Definition at line 164 of file menu.c.

struct property* menu_add_prop ( enum prop_type  type,
char prompt,
struct expr expr,
struct expr dep 
)
read

Definition at line 127 of file menu.c.

void menu_add_symbol ( enum prop_type  type,
struct symbol sym,
struct expr dep 
)

Definition at line 180 of file menu.c.

void menu_add_visibility ( struct expr expr)

Definition at line 169 of file menu.c.

void menu_end_entry ( void  )

Definition at line 65 of file menu.c.

void menu_end_menu ( void  )

Definition at line 76 of file menu.c.

void menu_finalize ( struct menu parent)

Definition at line 262 of file menu.c.

void menu_get_ext_help ( struct menu menu,
struct gstr help 
)

Definition at line 631 of file menu.c.

const char* menu_get_help ( struct menu menu)

Definition at line 502 of file menu.c.

struct menu* menu_get_parent_menu ( struct menu menu)
read

Definition at line 485 of file menu.c.

const char* menu_get_prompt ( struct menu menu)

Definition at line 471 of file menu.c.

struct menu* menu_get_root_menu ( struct menu menu)
read

Definition at line 480 of file menu.c.

bool menu_has_help ( struct menu menu)

Definition at line 497 of file menu.c.

bool menu_has_prompt ( struct menu menu)

Definition at line 426 of file menu.c.

bool menu_is_visible ( struct menu menu)

Definition at line 433 of file menu.c.

void menu_set_type ( int  type)

Definition at line 112 of file menu.c.

void menu_warn ( struct menu menu,
const char fmt,
  ... 
)

Definition at line 21 of file menu.c.

Variable Documentation

struct file* current_file

Definition at line 19 of file menu.c.

struct file* file_list

Definition at line 18 of file menu.c.

struct menu rootmenu

Definition at line 15 of file menu.c.