keyboard.h File Reference

#include <termios.h>
#include <isc/lang.h>
#include <isc/result.h>

Go to the source code of this file.

Data Structures

struct  isc_keyboard_t

Defines

#define ISC_KEYBOARD_H   1

Functions

isc_result_t isc_keyboard_open (isc_keyboard_t *keyboard)
isc_result_t isc_keyboard_close (isc_keyboard_t *keyboard, unsigned int sleepseconds)
isc_result_t isc_keyboard_getchar (isc_keyboard_t *keyboard, unsigned char *cp)
isc_boolean_t isc_keyboard_canceled (isc_keyboard_t *keyboard)


Detailed Description

Definition in file keyboard.h.


Define Documentation

#define ISC_KEYBOARD_H   1

Definition at line 21 of file keyboard.h.


Function Documentation

isc_result_t isc_keyboard_open ( isc_keyboard_t keyboard  ) 

Definition at line 38 of file keyboard.c.

References isc_keyboard_t::fd, ISC_R_IOERROR, ISC_R_SUCCESS, REQUIRE, isc_keyboard_t::result, and isc_keyboard_t::saved_mode.

Referenced by kbdstart().

isc_result_t isc_keyboard_close ( isc_keyboard_t keyboard,
unsigned int  sleepseconds 
)

Definition at line 83 of file keyboard.c.

References isc_keyboard_t::fd, ISC_R_CANCELED, ISC_R_SUCCESS, REQUIRE, isc_keyboard_t::result, and isc_keyboard_t::saved_mode.

Referenced by kbdstop().

isc_result_t isc_keyboard_getchar ( isc_keyboard_t keyboard,
unsigned char *  cp 
)

Definition at line 98 of file keyboard.c.

References isc_keyboard_t::fd, ISC_R_CANCELED, ISC_R_IOERROR, ISC_R_SUCCESS, REQUIRE, isc_keyboard_t::result, and isc_keyboard_t::saved_mode.

Referenced by kbdget().

isc_boolean_t isc_keyboard_canceled ( isc_keyboard_t keyboard  ) 

Definition at line 124 of file keyboard.c.

References ISC_R_CANCELED, ISC_TF, and isc_keyboard_t::result.

Referenced by kbdstop().


Generated on Tue Apr 28 17:41:19 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha