cmdlinelib.h File Reference

Go to the source code of this file.

Data Structures

struct  cmd_line
struct  cmdl_param_list

Defines

#define CMDL_BUFFER_SIZE   256
#define CMDL_PROMPT_SIZE   8
#define CMDL_MAX_TAB_COMPLETE_RESULT   256
#define NULL   ((void *)0)

Typedefs

typedef int(* cmdl_putchar_t )(int)
typedef int(* cmdl_printf_t )(const char *format,...)
typedef int(* cmdl_getchar_t )()

Enumerations

enum  { CMDL_LEFT, CMDL_RIGHT }
enum  {
  CMDLK_FW = 6, CMDLK_BW = 2, CMDLK_BS = 8, CMDLK_HOME = 2,
  CMDLK_END = 5, CMDLK_DELTOEND = 11, CMDLK_DELARG = 23, CMDLK_ENTER = 0x0d,
  CMDLK_RETURN = 0x0a, CMDLK_TAB = 9
}

Functions

void cmdl_setputchar (cmd_line *cmd, cmdl_putchar_t in)
void cmdl_setgetchar (cmd_line *cmd, cmdl_getchar_t in)
void cmdl_setprintf (cmd_line *cmd, cmdl_printf_t in)
void cmdl_parsechar (cmd_line *cmd, char in)
void cmdl_addreplace (cmd_line *cmd, char in)
void cmdl_addinsert (cmd_line *cmd, char in)
void cmdl_enterloop (cmd_line *cmd)
void cmdl_exec (cmd_line *cmd)
void cmdl_setexit (cmd_line *cmd, int exit)
int cmdl_getexit (cmd_line *cmd)
void cmdl_clearoutput (cmd_line *cmd)
void cmdl_clearbuffer (cmd_line *cmd)
int cmdl_printf (cmd_line *cmd, const char *format,...)
char * cmdl_getoutput (cmd_line *cmd)
void cmdl_addstr (cmd_line *cmd, char *str)
int cmdl_movecursor (cmd_line *cmd, int direction)
char * cmdl_getbuffer (cmd_line *cmd)
void cmdl_addchar (cmd_line *cmd, char in)
int cmdl_check (cmd_line *cmd)
void cmdl_del (cmd_line *cmd)
cmd_linecmdl_create ()
void cmdl_free (cmd_line *cmd)
char * cmdl_getprompt (cmd_line *cmd)
void cmdl_setpropmt (cmd_line *cmd, char prompt[CMDL_PROMPT_SIZE])
cmdl_param_listcmdl_getparams (const char *command)
void cmdl_tabcomplete (cmd_line *cmd)


Define Documentation

#define CMDL_BUFFER_SIZE   256

Definition at line 5 of file cmdlinelib.h.

#define CMDL_PROMPT_SIZE   8

Definition at line 7 of file cmdlinelib.h.

#define CMDL_MAX_TAB_COMPLETE_RESULT   256

Definition at line 8 of file cmdlinelib.h.

#define NULL   ((void *)0)

Definition at line 15 of file cmdlinelib.h.

Referenced by __divdi3(), __udivdi3(), __vxge_hw_device_reg_addr_get(), __vxge_hw_device_toc_get(), __vxge_hw_fifo_delete(), __vxge_hw_ring_delete(), __vxge_hw_vpath_alarm_process(), _enter_slk(), _leave_slk(), _print_label(), _wgetc(), a3c90x_free_rx_iobuf(), a3c90x_free_rx_ring(), a3c90x_free_tx_ring(), a3c90x_process_rx_packets(), a3c90x_refill_rx_ring(), a3c90x_setup_rx_ring(), add_ipv4_miniroute(), alloc(), alloc_iob(), alloc_memblock(), aoe_detach(), aoe_discover(), aoe_done(), apply_dns_settings(), apply_iscsi_string_setting(), arbel_cmd_2rst_qpee(), arbel_cmd_close_hca(), arbel_cmd_close_ib(), arbel_cmd_disable_lam(), arbel_cmd_enable_lam(), arbel_cmd_hw2sw_cq(), arbel_cmd_hw2sw_eq(), arbel_cmd_init2rtr_qpee(), arbel_cmd_init_hca(), arbel_cmd_init_ib(), arbel_cmd_map_eq(), arbel_cmd_map_fa(), arbel_cmd_map_icm(), arbel_cmd_map_icm_aux(), arbel_cmd_query_dev_lim(), arbel_cmd_query_fw(), arbel_cmd_read_mgm(), arbel_cmd_rst2init_qpee(), arbel_cmd_rtr2rts_qpee(), arbel_cmd_rts2rts_qp(), arbel_cmd_run_fw(), arbel_cmd_sw2hw_cq(), arbel_cmd_sw2hw_eq(), arbel_cmd_sw2hw_mpt(), arbel_cmd_unmap_fa(), arbel_cmd_unmap_icm(), arbel_cmd_unmap_icm_aux(), arbel_cmd_write_mgm(), arbel_complete(), arbel_destroy_cq(), arbel_destroy_qp(), arc4_skip(), arp_find_entry(), arp_find_protocol(), asn1_skip(), asn1_start(), ath5k_desc_alloc(), ath5k_desc_free(), ath5k_eeprom_free_pcal_info(), ath5k_handle_rx(), ath5k_hw_attach(), ath5k_hw_gainf_calibrate(), ath5k_hw_reset(), ath5k_hw_rf_check_gainf_readback(), ath5k_hw_rf_gainf_corr(), ath5k_hw_rfb_op(), ath5k_hw_rfregs_init(), ath5k_hw_setup_tx_queue(), ath5k_init(), ath5k_poll(), ath5k_rx_iob_alloc(), ath5k_rx_start(), ath5k_rx_stop(), ath5k_rxbuf_free(), ath5k_rxbuf_setup(), ath5k_stop_hw(), ath5k_tx(), ath5k_tx_processq(), ath5k_txbuf_free(), ath5k_txbuf_setup(), ath5k_txq_drainq(), ath5k_txq_setup(), atl1e_clean_rx_irq(), atl1e_clean_rx_ring(), atl1e_clean_tx_irq(), atl1e_clean_tx_ring(), atl1e_configure_des_ring(), atl1e_free_ring_resources(), atl1e_init_ring_ptrs(), atl1e_init_ring_resources(), atl1e_probe(), atl1e_setup_ring_resources(), atl1e_tx_map(), autovivify_child_settings(), b44_free_rx_ring(), b44_free_tx_ring(), b44_process_rx_packets(), b44_rx_refill(), b44_tx_complete(), bi_terminate(), bnx2_init_nvram(), buffered_line(), ccmp_decrypt(), ccmp_encrypt(), chain_exec(), chap_init(), chap_respond(), chap_update(), com32_exec(), comboot_exec(), comboot_fetch_kernel(), comboot_resolv(), create_fakedhcpack(), create_fakepxebsack(), delete_character(), delete_named_setting(), delete_setting(), delwin(), derwin(), dhcp_chaddr(), dhcp_create_request(), dhcp_exec(), dhcp_next_offer(), dhcp_proxy_rx(), dhcp_pxebs_rx(), dhcp_request_rx(), dhcp_rx_offer(), dhcpopt_fetch(), dhcppkt_fetch(), dhcppkt_store(), dns_find_rr(), dns_resolv(), dupwin(), e1000_process_rx_packets(), e1000_refill_rx_ring(), e1000_setup_rx_resources(), e1000e_process_rx_packets(), e1000e_refill_rx_ring(), e1000e_setup_rx_resources(), efab_alloc_resources(), efab_fill_rx_queue(), efab_probe(), efab_receive(), efab_remove(), efab_transmit(), efab_transmit_done(), efi_currticks(), efi_find_table(), efi_image_exec(), efi_image_load(), efi_init(), efi_snp_driver_start(), efi_snp_driver_stop(), efi_snp_get_status(), efi_snp_install(), efi_snp_netdev(), efi_snp_snpdev(), eisabus_probe(), elf_load(), empty_line_buffer(), endwin(), expand_command(), falcon_alloc_special_buffer(), fetch_setting_len(), fetchf_uristring(), find_boot_netdev(), find_child_settings(), find_closest_error(), find_dhcp_packet_field(), find_error(), find_gdb_transport(), find_generic_setting(), find_ibdev(), find_image(), find_netdev(), find_netdev_by_location(), find_setting(), find_setting_type(), fopen(), ftp_open(), ftp_reply(), gdbmach_find_hwbp(), gdbstub_breakpoint(), gdbstub_continue(), gdbstub_exec(), gdbstub_read_mem(), gdbudp_configure(), gdbudp_init(), gdbudp_recv(), generic_settings_store(), get_argv_argument(), getopt(), has_input(), hermon_cmd_2rst_qp(), hermon_cmd_close_hca(), hermon_cmd_close_port(), hermon_cmd_conf_special_qp(), hermon_cmd_hw2sw_cq(), hermon_cmd_hw2sw_eq(), hermon_cmd_init2rtr_qp(), hermon_cmd_init_hca(), hermon_cmd_init_port(), hermon_cmd_map_eq(), hermon_cmd_map_fa(), hermon_cmd_map_icm(), hermon_cmd_map_icm_aux(), hermon_cmd_query_dev_cap(), hermon_cmd_query_eq(), hermon_cmd_query_fw(), hermon_cmd_query_qp(), hermon_cmd_read_mcg(), hermon_cmd_rst2init_qp(), hermon_cmd_rtr2rts_qp(), hermon_cmd_rts2rts_qp(), hermon_cmd_run_fw(), hermon_cmd_sense_port(), hermon_cmd_sw2hw_cq(), hermon_cmd_sw2hw_eq(), hermon_cmd_sw2hw_mpt(), hermon_cmd_unmap_fa(), hermon_cmd_unmap_icm(), hermon_cmd_unmap_icm_aux(), hermon_cmd_write_mcg(), hermon_cmd_write_mtt(), hermon_complete(), hermon_destroy_cq(), hermon_destroy_qp(), hermon_post_send(), http_open(), http_open_filter(), http_rx_response(), http_step(), i2c_check_presence(), ib_cm_path_complete(), ib_cm_req_complete(), ib_cmrc_xfer_deliver_iob(), ib_create_conn(), ib_create_cq(), ib_create_madx(), ib_create_mi(), ib_create_path(), ib_create_qp(), ib_destroy_mi(), ib_destroy_qp(), ib_find_path_cache_entry(), ib_find_qp_mgid(), ib_find_qp_qpn(), ib_find_wq(), ib_mcast_complete(), ib_mcast_join(), ib_mcast_leave(), ib_mi_timer_expired(), ib_path_complete(), ib_pull(), ib_push(), ib_sma_node_desc(), ib_srp_parse_sgid(), ibft_fill_nic(), ibft_set_ipaddr_option(), ibft_set_string_option(), ibft_string(), icmp6_send_solicit(), icmp_rx(), ieee80211_next_ie(), ifcommon_exec(), ifec_free(), ifec_get_rx_desc(), ifec_net_open(), ifec_refill_rx_ring(), ifec_reprime_ru(), ifec_rx_process(), ifec_rx_setup(), ifec_tx_process(), ifec_tx_setup(), igb_process_rx_packets(), igb_refill_rx_ring(), igb_setup_rx_resources(), image_autoload(), image_exec(), image_load(), imgargs_exec(), imgautoselect(), imgexec_exec(), imgfetch_core_exec(), imgfetch_exec(), imgfree_exec(), imgload_exec(), imgstat_exec(), init_i2c_bit_basher(), init_media(), init_spi_bit_basher(), ipoib_lookup_peer_by_key(), ipv4_reassemble(), ipv4_route(), ipv4_tx(), isabus_probe(), isapnp_find_tag(), isapnpbus_probe(), iscsi_build_login_request_strings(), iscsi_command(), iscsi_detach(), iscsi_handle_targetaddress_value(), iscsi_open_connection(), iscsi_parse_root_path(), iscsi_rx_buffered_data_done(), iscsi_rx_data_in(), iscsi_scsi_done(), iscsi_start_login(), iscsi_tx_data_out(), keep_san(), kernel_exec(), kill_eol(), last_opened_ibdev(), last_opened_netdev(), linda_complete_recv(), linda_complete_send(), linda_post_recv(), linda_post_send(), linda_program_uc_ram(), linda_verify_uc_ram(), load_setting(), login_ui(), main_loop(), malloc(), match_long_option(), match_short_option(), max2820_rf_init(), mcabus_probe(), memchr(), mii_rw(), mtnic_alloc_eq(), mtnic_CONFIG_CQ(), mtnic_CONFIG_EQ(), mtnic_CONFIG_PORT_RSS_STEER(), mtnic_CONFIG_RX(), mtnic_CONFIG_RX_RING(), mtnic_CONFIG_TX(), mtnic_CONFIG_TX_RING(), mtnic_disable(), mtnic_HEART_BEAT(), mtnic_init_card(), mtnic_map_cmd(), mtnic_OPEN_NIC(), mtnic_probe(), mtnic_process_rx_cq(), mtnic_QUERY_FW(), mtnic_RELEASE_RESOURCE(), mtnic_SET_PORT_DEFAULT_RING(), mtnic_SET_PORT_MTU(), mtnic_SET_PORT_RSS_INDIRECTION(), mtnic_SET_PORT_STATE(), mtnic_SET_RX_RING_ADDR(), mvwin(), named_resolv_done(), natsemi_poll(), natsemi_probe(), ndp_find_entry(), ndp_resolve(), net80211_alloc(), net80211_autoassociate(), net80211_free_frags(), net80211_get(), net80211_marshal_request_info(), net80211_mgmt_dequeue(), net80211_netdev_close(), net80211_prepare_assoc(), net80211_probe_finish_all(), net80211_probe_finish_best(), net80211_probe_start(), net80211_probe_step(), net80211_rx(), net80211_rx_frag(), net80211_step_associate(), netboot(), netdev_rx_dequeue(), netdev_tx_complete_err(), newwin(), parse_eeprom(), parse_setting_name(), parse_settings_name(), parse_uri(), pcibus_probe(), pcnet32_probe(), phantom_close(), phantom_clp_fetch(), phantom_clp_store(), phantom_open(), phantom_poll(), phantom_refill_rx_ring(), phantom_transmit(), phys_ram_within_limit(), pnic_command_quiet(), pnic_irq(), pnic_poll(), pnic_probe(), pnic_remove(), pnic_transmit(), posix_fd_to_file(), prism2_find_plx(), pxe_api_call_weak(), pxe_deactivate(), pxe_exec(), pxe_menu_draw_item(), pxe_menu_parse(), pxe_menu_select(), pxe_set_netdev(), pxe_tftp_open(), pxe_udp_deliver_iob(), pxebs_exec(), pxenv_udp_read(), pxenv_undi_isr(), pxenv_undi_transmit(), readline(), realloc(), receive_new(), register_netdev(), register_nvo(), register_settings(), resolve_path(), resolve_uri(), route_exec(), RSA_free(), rsn_pick_desc(), rtl8169_free_rx_resources(), rtl8169_process_rx_packets(), rtl8169_refill_rx_ring(), rtl818x_free_rx_ring(), rtl818x_free_tx_ring(), rtl818x_handle_rx(), rtl818x_handle_tx(), rtl818x_probe(), rtl_close(), rtl_poll(), rtl_transmit(), sanboot_exec(), scancode_to_ansi_seq(), sec80211_find_rsn(), sec80211_install(), set_dhcp_option(), settings_ui(), sis190_default_phy(), sis190_free(), sis190_get_mac_addr_from_apc(), sis190_phy_task(), sis190_process_rx(), sis190_process_tx(), sis900_probe(), skge_devinit(), skge_down(), skge_free(), skge_probe(), skge_remove(), skge_rx_clean(), skge_rx_done(), skge_rx_refill(), skge_rx_setup(), sky2_free_rings(), sky2_init_netdev(), sky2_probe(), sky2_receive(), sky2_remove(), sky2_rx_alloc(), sky2_rx_clean(), sky2_status_intr(), sky2_xmit_frame(), slam_open(), slam_pull_header(), sleep_exec(), slk_attr(), slk_attr_set(), slk_attroff(), slk_attron(), slk_attrset(), slk_clear(), slk_colour(), slk_label(), slk_restore(), slk_set(), smbios_init(), spi_bit_rw(), spi_read(), spi_wait(), spi_write(), srp_detach(), srp_rsp_response_data(), srp_rsp_sense_data(), srp_scsi_done(), start_dhcp(), start_pxebs(), strchr(), strpbrk(), strrchr(), strsep(), strstr(), strtok(), subwin(), system(), t509bus_probe(), tcp_demux(), tcp_open_uri(), tcp_rx_ack(), tcp_xmit(), tcp_xmit_reset(), test_parse_unparse(), test_resolve(), tftm_open(), tftp_apply_settings(), tftp_open(), tftp_reopen(), tftpsize_open(), threewire_detect_address_len(), threewire_read(), threewire_write(), tkip_decrypt(), tkip_encrypt(), TLan_SetMac(), TLan_SetMulticastList(), tls_assemble_block(), tls_assemble_stream(), tls_new_ciphertext(), tls_newdata_process_data(), tls_newdata_process_header(), tls_send_plaintext(), trivial_change_key(), trivial_init(), udp_alloc_iob(), udp_demux(), udp_open_promisc(), udp_open_uri(), undinet_poll(), undinet_probe(), undipci_probe(), undipci_remove(), undirom_find_pci(), undirom_probe(), unregister_nvo(), unregister_settings(), uri_dup(), uri_is_absolute(), uri_port(), valert(), vasprintf(), velocity_open(), velocity_probe(), virtnet_transmit(), vring_get_buf(), vxge_close_vpaths(), vxge_device_register(), vxge_hw_device_hw_info_get(), vxge_hw_device_initialize(), vxge_hw_fifo_free_txdl_get(), vxge_hw_ring_replenish(), vxge_hw_vpath_close(), vxge_hw_vpath_poll_rx(), vxge_probe(), vxge_remove(), vxge_xmit(), vxge_xmit_compl(), wep_decrypt(), wep_encrypt(), wpa_alloc_frame(), wpa_find_cryptosystem(), wpa_find_kie(), wpa_handle_3_of_4(), wpa_install_ptk(), wpa_start(), wpa_stop(), xfer_vprintf(), and yukon_phy_intr().


Typedef Documentation

typedef int(* cmdl_putchar_t)(int)

Definition at line 10 of file cmdlinelib.h.

typedef int(* cmdl_printf_t)(const char *format,...)

Definition at line 11 of file cmdlinelib.h.

typedef int(* cmdl_getchar_t)()

Definition at line 12 of file cmdlinelib.h.


Enumeration Type Documentation

anonymous enum

Enumerator:
CMDL_LEFT 
CMDL_RIGHT 

Definition at line 18 of file cmdlinelib.h.

00018     {
00019         CMDL_LEFT,
00020         CMDL_RIGHT
00021 };

anonymous enum

Enumerator:
CMDLK_FW 
CMDLK_BW 
CMDLK_BS 
CMDLK_HOME 
CMDLK_END 
CMDLK_DELTOEND 
CMDLK_DELARG 
CMDLK_ENTER 
CMDLK_RETURN 
CMDLK_TAB 

Definition at line 23 of file cmdlinelib.h.

00023     {
00024         CMDLK_FW=6,
00025         CMDLK_BW=2,
00026         CMDLK_BS=8,
00027         CMDLK_HOME=2,
00028         CMDLK_END=5,
00029         CMDLK_DELTOEND=11,
00030         CMDLK_DELARG=23,
00031         CMDLK_ENTER=0x0d,
00032         CMDLK_RETURN=0x0a,
00033         CMDLK_TAB=9
00034 };


Function Documentation

void cmdl_setputchar ( cmd_line cmd,
cmdl_putchar_t  in 
)

void cmdl_setgetchar ( cmd_line cmd,
cmdl_getchar_t  in 
)

void cmdl_setprintf ( cmd_line cmd,
cmdl_printf_t  in 
)

void cmdl_parsechar ( cmd_line cmd,
char  in 
)

void cmdl_addreplace ( cmd_line cmd,
char  in 
)

void cmdl_addinsert ( cmd_line cmd,
char  in 
)

void cmdl_enterloop ( cmd_line cmd  ) 

void cmdl_exec ( cmd_line cmd  ) 

void cmdl_setexit ( cmd_line cmd,
int  exit 
)

int cmdl_getexit ( cmd_line cmd  ) 

void cmdl_clearoutput ( cmd_line cmd  ) 

void cmdl_clearbuffer ( cmd_line cmd  ) 

int cmdl_printf ( cmd_line cmd,
const char *  format,
  ... 
)

char* cmdl_getoutput ( cmd_line cmd  ) 

void cmdl_addstr ( cmd_line cmd,
char *  str 
)

int cmdl_movecursor ( cmd_line cmd,
int  direction 
)

char* cmdl_getbuffer ( cmd_line cmd  ) 

void cmdl_addchar ( cmd_line cmd,
char  in 
)

int cmdl_check ( cmd_line cmd  ) 

void cmdl_del ( cmd_line cmd  ) 

cmd_line* cmdl_create (  ) 

void cmdl_free ( cmd_line cmd  ) 

char* cmdl_getprompt ( cmd_line cmd  ) 

void cmdl_setpropmt ( cmd_line cmd,
char  prompt[CMDL_PROMPT_SIZE] 
)

cmdl_param_list* cmdl_getparams ( const char *  command  ) 

void cmdl_tabcomplete ( cmd_line cmd  ) 


Generated on Tue Apr 6 20:01:47 2010 for gPXE by  doxygen 1.5.7.1