iPXE
Functions
message.h File Reference

Message printing. More...

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
void msg (unsigned int row, const char *fmt,...)
 Print message centred on specified row. More...
 
void clearmsg (unsigned int row)
 Clear message on specified row. More...
 
void alert (unsigned int row, const char *fmt,...)
 Show alert message. More...
 

Detailed Description

Message printing.

Definition in file message.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ msg()

void msg ( unsigned int  row,
const char *  fmt,
  ... 
)

Print message centred on specified row.

Parameters
rowRow
fmtprintf() format string
..printf() arguments

Definition at line 61 of file message.c.

61  {
62  va_list args;
63 
64  va_start ( args, fmt );
65  vmsg ( row, fmt, args );
66  va_end ( args );
67 }
#define va_end(ap)
Definition: stdarg.h:9
static void vmsg(unsigned int row, const char *fmt, va_list args)
Print message centred on specified row.
Definition: message.c:46
__builtin_va_list va_list
Definition: stdarg.h:6
int ssize_t const char * fmt
Definition: vsprintf.h:72
#define va_start(ap, last)
Definition: stdarg.h:7

References fmt, va_end, va_start, and vmsg().

Referenced by ccmp_kie_decrypt(), ccmp_kie_mic(), cms_message_okx(), cms_verify_fail_okx(), cms_verify_okx(), draw_errors(), draw_form(), draw_info_row(), draw_instruction_row(), draw_title_row(), eap_rx_request(), eap_tx_response(), hv_post_message(), hv_wait_for_message(), igbvf_read_mbx_vf(), igbvf_read_posted_mbx(), igbvf_write_mbx_vf(), igbvf_write_posted_mbx(), intelvf_mbox_msg(), intelvf_mbox_poll(), intelvf_mbox_read(), intelvf_mbox_reset(), intelvf_mbox_set_mac(), intelvf_mbox_set_mtu(), intelvf_mbox_write(), intelxvf_mbox_queues(), intelxvf_mbox_version(), ipair_key(), ipair_rx(), ipair_rx_pair(), ipair_rx_pubkey(), ipair_rx_session(), ipair_tag(), ipair_tx(), netvsc_establish_buffer(), netvsc_initialise(), netvsc_ndis_version(), netvsc_recv_data(), netvsc_revoke_buffer(), netvsc_transmit(), ntlm_data_okx(), peerblk_parse_block(), peerblk_parse_header(), peerblk_parse_iv(), peerblk_parse_useless(), peerblk_retrieval_open(), reg_delay(), rndis_rx_data(), rndis_rx_status(), rndis_tx_data(), rndis_tx_defer(), rndis_tx_halt(), rndis_tx_initialise(), rndis_tx_oid(), sis190_phy_task(), tkip_kie_decrypt(), tkip_kie_mic(), usbio_config(), usbio_control_poll(), xcm_deliver(), xenstore_request(), xenstore_response(), xsmp_chassis_name(), xsmp_rx_session(), xsmp_rx_session_confirm(), xsmp_rx_session_reject(), xsmp_rx_session_shutdown(), xsmp_rx_xve(), xsmp_rx_xve_delete(), xsmp_rx_xve_install(), xsmp_rx_xve_modify(), xsmp_rx_xve_oper_req(), xsmp_rx_xve_ready(), xsmp_rx_xve_update(), xsmp_session_name(), xsmp_tx_session(), xsmp_tx_xve(), xsmp_tx_xve_nack(), xsmp_tx_xve_notify(), and xsmp_tx_xve_params().

◆ clearmsg()

void clearmsg ( unsigned int  row)

Clear message on specified row.

Parameters
rowRow

Definition at line 74 of file message.c.

74  {
75  move ( row, 0 );
76  clrtoeol();
77 }
static int clrtoeol(void)
Definition: curses.h:553
static int move(int y, int x)
Definition: curses.h:593

References clrtoeol(), and move().

Referenced by draw_errors(), draw_info_row(), draw_instruction_row(), draw_setting_rows(), draw_title_row(), and valert().

◆ alert()

void alert ( unsigned int  row,
const char *  fmt,
  ... 
)

Show alert message.

Parameters
rowRow
fmtprintf() format string
...printf() arguments

Definition at line 103 of file message.c.

103  {
104  va_list args;
105 
106  va_start ( args, fmt );
107  valert ( row, fmt, args );
108  va_end ( args );
109 }
#define va_end(ap)
Definition: stdarg.h:9
static void valert(unsigned int row, const char *fmt, va_list args)
Show alert message.
Definition: message.c:86
__builtin_va_list va_list
Definition: stdarg.h:6
int ssize_t const char * fmt
Definition: vsprintf.h:72
#define va_start(ap, last)
Definition: stdarg.h:7

References fmt, va_end, va_start, and valert().

Referenced by main_loop(), and tls_new_alert().