Go to the documentation of this file.
32 #ifndef BRLAPI_INCLUDED
33 #define BRLAPI_INCLUDED
39 #define BRLAPI_WIN32 1
45 #define BRLAPI_RELEASE "0.8.7"
48 #define BRLAPI_MAJOR 0
51 #define BRLAPI_MINOR 8
54 #define BRLAPI_REVISION 7
62 #include <sys/types.h>
66 #define BRLAPI_STDCALL __stdcall
68 #define BRLAPI_STDCALL
72 typedef __int64 uint64_t;
73 typedef __int32 uint32_t;
74 #define UINT64_C(x) (x ## Ui64)
76 typedef signed int ssize_t;
130 #define BRLAPI_SOCKETPORTNUM 4101
131 #define BRLAPI_SOCKETPORT "4101"
134 #define BRLAPI_SOCKETPATH "\\\\.\\pipe\\BrlAPI"
140 #define BRLAPI_ETCDIR "//etc"
145 #define BRLAPI_AUTHKEYFILE "brlapi.key"
150 #define BRLAPI_DEFAUTH "none"
152 #define BRLAPI_DEFAUTH_KEYFILE "keyfile:" BRLAPI_ETCDIR "/" BRLAPI_AUTHKEYFILE
155 #define BRLAPI_DEFAUTH_POLKIT "+polkit"
157 #define BRLAPI_DEFAUTH_POLKIT ""
160 #define BRLAPI_DEFAUTH BRLAPI_DEFAUTH_KEYFILE BRLAPI_DEFAUTH_POLKIT
179 #define BRLAPI_INVALID_FILE_DESCRIPTOR INVALID_HANDLE_VALUE
181 #define BRLAPI_INVALID_FILE_DESCRIPTOR -1
238 #define BRLAPI_SETTINGS_INITIALIZER { NULL, NULL }
287 #ifndef BRLAPI_NO_SINGLE_SESSION
300 #ifndef BRLAPI_NO_SINGLE_SESSION
313 #ifndef BRLAPI_NO_SINGLE_SESSION
331 #ifndef BRLAPI_NO_SINGLE_SESSION
341 #ifndef BRLAPI_NO_SINGLE_SESSION
361 #define BRLAPI_MAXNAMELENGTH 31
376 #ifndef BRLAPI_NO_SINGLE_SESSION
394 #ifndef BRLAPI_NO_SINGLE_SESSION
401 #ifndef BRLAPI_NO_SINGLE_SESSION
458 #ifndef BRLAPI_NO_SINGLE_SESSION
472 #define BRLAPI_TTY_DEFAULT -1
493 #ifndef BRLAPI_NO_SINGLE_SESSION
505 #ifndef BRLAPI_NO_SINGLE_SESSION
521 #ifndef BRLAPI_NO_SINGLE_SESSION
573 #ifndef BRLAPI_NO_SINGLE_SESSION
591 #ifndef BRLAPI_NO_SINGLE_SESSION
604 #ifndef BRLAPI_NO_SINGLE_SESSION
613 unsigned int regionBegin ;
617 const unsigned char *andMask ;
618 const unsigned char *orMask ;
620 const char *charset ;
627 #define BRLAPI_DISPLAY_DEFAULT -1
633 #define BRLAPI_CURSOR_LEAVE -1
639 #define BRLAPI_CURSOR_OFF 0
651 #define BRLAPI_WRITEARGUMENTS_INITIALIZER { \
652 .displayNumber = BRLAPI_DISPLAY_DEFAULT, \
659 .cursor = BRLAPI_CURSOR_LEAVE, \
699 #ifndef BRLAPI_NO_SINGLE_SESSION
725 unsigned int command ;
726 unsigned int argument ;
744 const char *command ;
745 unsigned int argument ;
762 #define BRLAPI_UC_ROW 0x2800UL
833 #ifndef BRLAPI_NO_SINGLE_SESSION
859 #ifndef BRLAPI_NO_SINGLE_SESSION
885 #ifndef BRLAPI_NO_SINGLE_SESSION
902 #ifndef BRLAPI_NO_SINGLE_SESSION
915 #ifndef BRLAPI_NO_SINGLE_SESSION
917 #define brlapi_ignoreAllKeys() brlapi_ignoreKeys(brlapi_rangeType_all, NULL, 0)
920 #define brlapi__ignoreAllKeys(handle) brlapi__ignoreKeys(handle, brlapi_rangeType_all, NULL, 0)
933 #ifndef BRLAPI_NO_SINGLE_SESSION
935 #define brlapi_acceptAllKeys() brlapi_acceptKeys(brlapi_rangeType_all, NULL, 0)
938 #define brlapi__acceptAllKeys(handle) brlapi__acceptKeys(handle, brlapi_rangeType_all, NULL, 0)
960 #ifndef BRLAPI_NO_SINGLE_SESSION
976 #ifndef BRLAPI_NO_SINGLE_SESSION
1013 #ifndef BRLAPI_NO_SINGLE_SESSION
1021 #ifndef BRLAPI_NO_SINGLE_SESSION
1032 #ifndef BRLAPI_NO_SINGLE_SESSION
1046 #ifndef BRLAPI_NO_SINGLE_SESSION
1056 #ifndef BRLAPI_NO_SINGLE_SESSION
1065 #ifndef BRLAPI_NO_SINGLE_SESSION
1098 #define BRLAPI_PARAMF_LOCAL 0X00
1099 #define BRLAPI_PARAMF_GLOBAL 0X01
1100 #define BRLAPI_PARAMF_SELF 0X02
1115 #ifndef BRLAPI_NO_SINGLE_SESSION
1133 #ifndef BRLAPI_NO_SINGLE_SESSION
1151 #ifndef BRLAPI_NO_SINGLE_SESSION
1209 #ifndef BRLAPI_NO_SINGLE_SESSION
1225 #ifndef BRLAPI_NO_SINGLE_SESSION
1242 #ifndef BRLAPI_NO_SINGLE_SESSION
1255 #ifndef BRLAPI_NO_SINGLE_SESSION
1286 #define BRLAPI_ERROR_SUCCESS 0
1288 #define BRLAPI_ERROR_NOMEM BRLAPI_ERROR_NOMEM
1290 #define BRLAPI_ERROR_TTYBUSY BRLAPI_ERROR_TTYBUSY
1292 #define BRLAPI_ERROR_DEVICEBUSY BRLAPI_ERROR_DEVICEBUSY
1294 #define BRLAPI_ERROR_UNKNOWN_INSTRUCTION BRLAPI_ERROR_UNKNOWN_INSTRUCTION
1296 #define BRLAPI_ERROR_ILLEGAL_INSTRUCTION BRLAPI_ERROR_ILLEGAL_INSTRUCTION
1298 #define BRLAPI_ERROR_INVALID_PARAMETER BRLAPI_ERROR_INVALID_PARAMETER
1300 #define BRLAPI_ERROR_INVALID_PACKET BRLAPI_ERROR_INVALID_PACKET
1302 #define BRLAPI_ERROR_CONNREFUSED BRLAPI_ERROR_CONNREFUSED
1304 #define BRLAPI_ERROR_OPNOTSUPP BRLAPI_ERROR_OPNOTSUPP
1306 #define BRLAPI_ERROR_GAIERR BRLAPI_ERROR_GAIERR
1308 #define BRLAPI_ERROR_LIBCERR BRLAPI_ERROR_LIBCERR
1310 #define BRLAPI_ERROR_UNKNOWNTTY BRLAPI_ERROR_UNKNOWNTTY
1312 #define BRLAPI_ERROR_PROTOCOL_VERSION BRLAPI_ERROR_PROTOCOL_VERSION
1314 #define BRLAPI_ERROR_EOF BRLAPI_ERROR_EOF
1316 #define BRLAPI_ERROR_EMPTYKEY BRLAPI_ERROR_EMPTYKEY
1318 #define BRLAPI_ERROR_DRIVERERROR BRLAPI_ERROR_DRIVERERROR
1320 #define BRLAPI_ERROR_AUTHENTICATION BRLAPI_ERROR_AUTHENTICATION
1322 #define BRLAPI_ERROR_READONLY_PARAMETER BRLAPI_ERROR_READONLY_PARAMETER
1382 #define brlapi_error (*brlapi_error_location())
1384 #define brlapi_errno (brlapi_error.brlerrno)
1386 #define brlapi_libcerrno (brlapi_error.libcerrno)
1388 #define brlapi_gaierrno (brlapi_error.gaierrno)
1390 #define brlapi_errfun (brlapi_error.errfun)
1443 #ifndef BRLAPI_NO_SINGLE_SESSION
1458 #ifndef BRLAPI_NO_SINGLE_SESSION
1472 #ifndef BRLAPI_NO_SINGLE_SESSION
1477 #ifndef BRLAPI_NO_SINGLE_SESSION
1486 #ifndef BRLAPI_NO_SINGLE_SESSION
1491 #ifndef BRLAPI_NO_SINGLE_SESSION
1497 #ifndef BRLAPI_NO_SINGLE_SESSION
1498 #define brlapi_writeText(cursor, str) brlapi_writeTextWin(cursor, str, 1)
1500 #define brlapi__writeText(handle, cursor, str) brlapi__writeTextWin(handle, cursor, str, 1)
1502 #ifndef BRLAPI_NO_SINGLE_SESSION
1503 #define brlapi_write(s) brlapi_writeWin(s, 1)
1505 #define brlapi__write(handle, s) brlapi__writeWin(handle, s, 1)
1509 #ifndef BRLAPI_NO_SINGLE_SESSION
1510 #define brlapi_writeText(cursor, str) brlapi_writeTextWin(cursor, str, 0)
1512 #define brlapi__writeText(handle, cursor, str) brlapi__writeTextWin(handle, cursor, str, 0)
1514 #ifndef BRLAPI_NO_SINGLE_SESSION
1515 #define brlapi_write(s) brlapi_writeWin(s, 0)
1517 #define brlapi__write(handle, s) brlapi__writeWin(handle, s, 0)
1522 #ifndef BRLAPI_NO_DEPRECATED
1535 #define brlapi_settings_t brlapi_connectionSettings_t
1549 #define BRLAPI_WRITESTRUCT_INITIALIZER BRLAPI_WRITEARGUMENTS_INITIALIZER
1551 #define brl_keycode_t brlapi_keyCode_t
1552 #define brl_type_t brlapi_packetType_t
1554 #define BRLCOMMANDS NULL
1555 #define BRL_KEYCODE_MAX BRLAPI_KEY_MAX
1557 #ifndef BRLAPI_NO_SINGLE_SESSION
1558 #define brlapi_initializeConnection brlapi_openConnection
1559 #define brlapi_getTty brlapi_enterTtyMode
1560 #define brlapi_getTtyPath brlapi_enterTtyModeWithPath
1561 #define brlapi_leaveTty brlapi_leaveTtyMode
1562 #define brlapi_unignoreKeyRange brlapi_acceptKeyRange
1563 #define brlapi_unignoreKeySet brlapi_acceptKeySet
1564 #define brlapi_getRaw brlapi_enterRawMode
1565 #define brlapi_leaveRaw brlapi_leaveRawMode
1566 #define brlapi_suspend brlapi_suspendDriver
1567 #define brlapi_resume brlapi_resumeDriver
1570 #define BRLERR_SUCCESS BRLAPI_ERROR_SUCCESS
1571 #define BRLERR_NOMEM BRLAPI_ERROR_NOMEM
1572 #define BRLERR_TTYBUSY BRLAPI_ERROR_TTYBUSY
1573 #define BRLERR_DEVICEBUSY BRLAPI_ERROR_DEVICEBUSY
1574 #define BRLERR_UNKNOWN_INSTRUCTION BRLAPI_ERROR_UNKNOWN_INSTRUCTION
1575 #define BRLERR_ILLEGAL_INSTRUCTION BRLAPI_ERROR_ILLEGAL_INSTRUCTION
1576 #define BRLERR_INVALID_PARAMETER BRLAPI_ERROR_INVALID_PARAMETER
1577 #define BRLERR_INVALID_PACKET BRLAPI_ERROR_INVALID_PACKET
1578 #define BRLERR_CONNREFUSED BRLAPI_ERROR_CONNREFUSED
1579 #define BRLERR_OPNOTSUPP BRLAPI_ERROR_OPNOTSUPP
1580 #define BRLERR_GAIERR BRLAPI_ERROR_GAIERR
1581 #define BRLERR_LIBCERR BRLAPI_ERROR_LIBCERR
1582 #define BRLERR_UNKNOWNTTY BRLAPI_ERROR_UNKNOWNTTY
1583 #define BRLERR_PROTOCOL_VERSION BRLAPI_ERROR_PROTOCOL_VERSION
1584 #define BRLERR_EOF BRLAPI_ERROR_EOF
1585 #define BRLERR_EMPTYKEY BRLAPI_ERROR_EMPTYKEY
1586 #define BRLERR_DRIVERERROR BRLAPI_ERROR_DRIVERERROR
const char * text
Definition: brlapi.h:1542
void BRLAPI_STDCALL brlapi__defaultExceptionHandler(brlapi_handle_t *handle, int error, brlapi_packetType_t type, const void *packet, size_t size)
ssize_t BRLAPI_STDCALL brlapi__recvRaw(brlapi_handle_t *handle, void *buffer, size_t size)
int textSize
Definition: brlapi.h:1543
#define BRLAPI_ERROR_LIBCERR
Definition: brlapi.h:1308
int libcerrno
Definition: brlapi.h:1347
int BRLAPI_STDCALL brlapi_enterTtyModeWithPath(const int *ttys, int count, const char *driver)
void brlapi_getLibraryVersion(int *major, int *minor, int *revision)
void *BRLAPI_STDCALL brlapi__getParameterAlloc(brlapi_handle_t *handle, brlapi_param_t parameter, brlapi_param_subparam_t subparam, brlapi_param_flags_t flags, size_t *len)
ssize_t BRLAPI_STDCALL brlapi_getParameter(brlapi_param_t parameter, brlapi_param_subparam_t subparam, brlapi_param_flags_t flags, void *data, size_t len)
const char * auth
Definition: brlapi.h:222
int BRLAPI_STDCALL brlapi_suspendDriver(const char *driver)
void * brlapi_paramCallbackDescriptor_t
Definition: brlapi.h:1184
int BRLAPI_STDCALL brlapi__leaveRawMode(brlapi_handle_t *handle)
int displayNumber
Definition: brlapi.h:1539
ssize_t BRLAPI_STDCALL brlapi__sendRaw(brlapi_handle_t *handle, const void *buffer, size_t size)
#define brlapi_libcerrno
Definition: brlapi.h:1386
void(BRLAPI_STDCALL * brlapi__exceptionHandler_t)(brlapi_handle_t *handle, int error, brlapi_packetType_t type, const void *packet, size_t size)
Definition: brlapi.h:1446
#define brlapi__writeText(handle, cursor, str)
Definition: brlapi.h:1512
@ brlapi_rangeType_command
Definition: brlapi.h:868
int BRLAPI_STDCALL brlapi_acceptKeyRanges(const brlapi_range_t ranges[], unsigned int count)
int BRLAPI_STDCALL brlapi__acceptKeys(brlapi_handle_t *handle, brlapi_rangeType_t type, const brlapi_keyCode_t keys[], unsigned int count)
int BRLAPI_STDCALL brlapi__getDisplaySize(brlapi_handle_t *handle, unsigned int *x, unsigned int *y)
ssize_t BRLAPI_STDCALL brlapi_recvRaw(void *buffer, size_t size)
int BRLAPI_STDCALL brlapi_getDisplaySize(unsigned int *x, unsigned int *y)
int gaierrno
Definition: brlapi.h:1348
int BRLAPI_STDCALL brlapi__suspendDriver(brlapi_handle_t *handle, const char *driver)
#define BRLAPI_ERROR_UNKNOWNTTY
Definition: brlapi.h:1310
brlapi_exceptionHandler_t BRLAPI_STDCALL brlapi_setExceptionHandler(brlapi_exceptionHandler_t handler)
brlapi_error_t *BRLAPI_STDCALL brlapi_error_location(void)
void BRLAPI_STDCALL brlapi_closeConnection(void)
#define BRLAPI_ERROR_TTYBUSY
Definition: brlapi.h:1290
void BRLAPI_STDCALL brlapi_perror(const char *s)
int BRLAPI_STDCALL brlapi_pause(int timeout_ms)
brlapi_error
Definition: brlapi.h:1284
int BRLAPI_STDCALL brlapi_strexception(char *buffer, size_t bufferSize, int error, brlapi_packetType_t type, const void *packet, size_t packetSize)
int BRLAPI_STDCALL brlapi_writeDots(const unsigned char *dots)
void *BRLAPI_STDCALL brlapi_getParameterAlloc(brlapi_param_t parameter, brlapi_param_subparam_t subparam, brlapi_param_flags_t flags, size_t *len)
#define BRLAPI_ERROR_SUCCESS
Definition: brlapi.h:1286
brlapi_fileDescriptor BRLAPI_STDCALL brlapi__openConnection(brlapi_handle_t *handle, const brlapi_connectionSettings_t *desiredSettings, brlapi_connectionSettings_t *actualSettings)
int BRLAPI_STDCALL brlapi_describeKeyCode(brlapi_keyCode_t code, brlapi_describedKeyCode_t *description)
const unsigned char * attrOr
Definition: brlapi.h:1545
int cursor
Definition: brlapi.h:1546
#define BRLAPI_ERROR_DEVICEBUSY
Definition: brlapi.h:1292
#define brlapi_errno
Definition: brlapi.h:1384
#define BRLAPI_ERROR_EOF
Definition: brlapi.h:1314
#define BRLAPI_ERROR_UNKNOWN_INSTRUCTION
Definition: brlapi.h:1294
int BRLAPI_STDCALL brlapi__setParameter(brlapi_handle_t *handle, brlapi_param_t parameter, brlapi_param_subparam_t subparam, brlapi_param_flags_t flags, const void *data, size_t len)
#define BRLAPI_ERROR_DRIVERERROR
Definition: brlapi.h:1318
void BRLAPI_STDCALL brlapi__setClientData(brlapi_handle_t *handle, void *data)
int BRLAPI_STDCALL brlapi_ignoreKeys(brlapi_rangeType_t type, const brlapi_keyCode_t keys[], unsigned int count)
int BRLAPI_STDCALL brlapi__enterTtyModeWithPath(brlapi_handle_t *handle, const int *ttys, int count, const char *driver)
int BRLAPI_STDCALL brlapi_setParameter(brlapi_param_t parameter, brlapi_param_subparam_t subparam, brlapi_param_flags_t flags, const void *data, size_t len)
int BRLAPI_STDCALL brlapi__writeDots(brlapi_handle_t *handle, const unsigned char *dots)
#define brlapi_acceptAllKeys()
Definition: brlapi.h:935
int BRLAPI_STDCALL brlapi__resumeDriver(brlapi_handle_t *handle)
Settings structure for BrlAPI connection.
Definition: brlapi.h:214
uint32_t brlapi_param_flags_t
Definition: brlapi.h:1097
#define brlapi_write(s)
Definition: brlapi.h:1515
void BRLAPI_STDCALL brlapi_setClientData(void *data)
brlapi_paramCallbackDescriptor_t BRLAPI_STDCALL brlapi_watchParameter(brlapi_param_t parameter, brlapi_param_subparam_t subparam, brlapi_param_flags_t flags, brlapi_paramCallback_t func, void *priv, void *data, size_t len)
int BRLAPI_STDCALL brlapi__readKeyWithTimeout(brlapi_handle_t *handle, int timeout_ms, brlapi_keyCode_t *code)
int BRLAPI_STDCALL brlapi_resumeDriver(void)
int BRLAPI_STDCALL brlapi__strexception(brlapi_handle_t *handle, char *buffer, size_t bufferSize, int error, brlapi_packetType_t type, const void *packet, size_t packetSize)
int BRLAPI_STDCALL brlapi__pause(brlapi_handle_t *handle, int timeout_ms)
@ brlapi_rangeType_code
Definition: brlapi.h:870
int BRLAPI_STDCALL brlapi__getDriverName(brlapi_handle_t *handle, char *buffer, size_t size)
int BRLAPI_STDCALL brlapi_leaveRawMode(void)
#define brlapi_writeText(cursor, str)
Definition: brlapi.h:1510
int BRLAPI_STDCALL brlapi__unwatchParameter(brlapi_handle_t *handle, brlapi_paramCallbackDescriptor_t descriptor)
const char *BRLAPI_STDCALL brlapi_strerror(const brlapi_error_t *error)
int BRLAPI_STDCALL brlapi__acceptKeyRanges(brlapi_handle_t *handle, const brlapi_range_t ranges[], unsigned int count)
brlapi_keyCode_t last
Definition: brlapi.h:946
int BRLAPI_STDCALL brlapi__getModelIdentifier(brlapi_handle_t *handle, char *buffer, size_t size)
brlapi_fileDescriptor BRLAPI_STDCALL brlapi__getFileDescriptor(brlapi_handle_t *handle)
const char * charset
Definition: brlapi.h:1547
Definition: brlapi.h:1538
Definition: brlapi.h:1345
ssize_t BRLAPI_STDCALL brlapi_sendRaw(const void *buffer, size_t size)
brlapi_keyCode_t first
Definition: brlapi.h:945
int BRLAPI_STDCALL brlapi__readKey(brlapi_handle_t *handle, int wait, brlapi_keyCode_t *code)
int BRLAPI_STDCALL brlapi__leaveTtyMode(brlapi_handle_t *handle)
#define BRLAPI_ERROR_READONLY_PARAMETER
Definition: brlapi.h:1322
brlapi_param_t
Definition: brlapi_param.h:36
brlapi_fileDescriptor BRLAPI_STDCALL brlapi_openConnection(const brlapi_connectionSettings_t *desiredSettings, brlapi_connectionSettings_t *actualSettings)
#define BRLAPI_KEY_FLAGS_SHIFT
Definition: brlapi_keycodes.h:130
int BRLAPI_STDCALL brlapi__ignoreKeyRanges(brlapi_handle_t *handle, const brlapi_range_t ranges[], unsigned int count)
@ brlapi_rangeType_key
Definition: brlapi.h:869
@ brlapi_rangeType_type
Definition: brlapi.h:867
int BRLAPI_STDCALL brlapi_acceptKeys(brlapi_rangeType_t type, const brlapi_keyCode_t keys[], unsigned int count)
void(* brlapi_paramCallback_t)(brlapi_param_t parameter, brlapi_param_subparam_t subparam, brlapi_param_flags_t flags, void *priv, const void *data, size_t len)
Definition: brlapi.h:1177
#define brlapi_gaierrno
Definition: brlapi.h:1388
uint64_t brlapi_keyCode_t
Definition: brlapi_keycodes.h:109
const char * errfun
Definition: brlapi.h:1349
int BRLAPI_STDCALL brlapi__sync(brlapi_handle_t *handle)
#define brlapi__write(handle, s)
Definition: brlapi.h:1517
int brlapi_fileDescriptor
Definition: brlapi.h:171
int BRLAPI_STDCALL brlapi__enterRawMode(brlapi_handle_t *handle, const char *driver)
int BRLAPI_STDCALL brlapi_writeWText(int cursor, const wchar_t *text)
#define BRLAPI_ERROR_OPNOTSUPP
Definition: brlapi.h:1304
int BRLAPI_STDCALL brlapi_enterTtyMode(int tty, const char *driver)
#define BRLAPI_ERROR_CONNREFUSED
Definition: brlapi.h:1302
brlapi__exceptionHandler_t BRLAPI_STDCALL brlapi__setExceptionHandler(brlapi_handle_t *handle, brlapi__exceptionHandler_t handler)
void *BRLAPI_STDCALL brlapi_getClientData(void)
const unsigned char * attrAnd
Definition: brlapi.h:1544
void BRLAPI_STDCALL brlapi__closeConnection(brlapi_handle_t *handle)
int BRLAPI_STDCALL brlapi__ignoreKeys(brlapi_handle_t *handle, brlapi_rangeType_t type, const brlapi_keyCode_t keys[], unsigned int count)
brlapi_rangeType_t
Definition: brlapi.h:865
#define BRLAPI_ERROR_PROTOCOL_VERSION
Definition: brlapi.h:1312
struct brlapi_handle_t brlapi_handle_t
Definition: brlapi.h:112
#define brlapi__ignoreAllKeys(handle)
Definition: brlapi.h:920
@ brlapi_rangeType_all
Definition: brlapi.h:866
int BRLAPI_STDCALL brlapi__writeTextWin(brlapi_handle_t *handle, int cursor, const void *str, int wide)
#define brlapi_error
Definition: brlapi.h:1382
void(BRLAPI_STDCALL * brlapi_exceptionHandler_t)(int error, brlapi_packetType_t type, const void *packet, size_t size)
Definition: brlapi.h:1444
unsigned int regionSize
Definition: brlapi.h:1541
#define BRLAPI_ERROR_ILLEGAL_INSTRUCTION
Definition: brlapi.h:1296
int BRLAPI_STDCALL brlapi_unwatchParameter(brlapi_paramCallbackDescriptor_t descriptor)
#define brlapi__acceptAllKeys(handle)
Definition: brlapi.h:938
#define BRLAPI_STDCALL
Definition: brlapi.h:66
int BRLAPI_STDCALL brlapi__writeWin(brlapi_handle_t *handle, const brlapi_writeArguments_t *s, int wide)
unsigned int regionBegin
Definition: brlapi.h:1540
const char * brlapi_errlist[]
ssize_t BRLAPI_STDCALL brlapi__getParameter(brlapi_handle_t *handle, brlapi_param_t parameter, brlapi_param_subparam_t subparam, brlapi_param_flags_t flags, void *data, size_t len)
int BRLAPI_STDCALL brlapi_setFocus(int tty)
#define BRLAPI_ERROR_NOMEM
Definition: brlapi.h:1288
int BRLAPI_STDCALL brlapi__setFocus(brlapi_handle_t *handle, int tty)
int BRLAPI_STDCALL brlapi_writeWin(const brlapi_writeArguments_t *s, int wide)
brlapi_fileDescriptor BRLAPI_STDCALL brlapi_getFileDescriptor(void)
void *BRLAPI_STDCALL brlapi__getClientData(brlapi_handle_t *handle)
#define brlapi_ignoreAllKeys()
Definition: brlapi.h:917
int BRLAPI_STDCALL brlapi__enterTtyMode(brlapi_handle_t *handle, int tty, const char *driver)
uint32_t brlapi_packetType_t
Definition: brlapi.h:1422
int BRLAPI_STDCALL brlapi_sync(void)
int BRLAPI_STDCALL brlapi__writeWText(brlapi_handle_t *handle, int cursor, const wchar_t *text)
brlapi_paramCallbackDescriptor_t BRLAPI_STDCALL brlapi__watchParameter(brlapi_handle_t *handle, brlapi_param_t parameter, brlapi_param_subparam_t subparam, brlapi_param_flags_t flags, brlapi_paramCallback_t func, void *priv, void *data, size_t len)
const char * host
Definition: brlapi.h:232
#define BRLAPI_ERROR_AUTHENTICATION
Definition: brlapi.h:1320
size_t BRLAPI_STDCALL brlapi_getHandleSize(void)
int BRLAPI_STDCALL brlapi_readKeyWithTimeout(int timeout_ms, brlapi_keyCode_t *code)
#define BRLAPI_ERROR_INVALID_PARAMETER
Definition: brlapi.h:1298
const char *BRLAPI_STDCALL brlapi_getPacketTypeName(brlapi_packetType_t type)
int BRLAPI_STDCALL brlapi_getModelIdentifier(char *buffer, size_t size)
#define BRLAPI_ERROR_GAIERR
Definition: brlapi.h:1306
int BRLAPI_STDCALL brlapi_writeTextWin(int cursor, const void *str, int wide)
#define BRLAPI_ERROR_EMPTYKEY
Definition: brlapi.h:1316
int BRLAPI_STDCALL brlapi_getDriverName(char *buffer, size_t size)
size_t BRLAPI_STDCALL brlapi_strerror_r(const brlapi_error_t *error, char *buf, size_t buflen)
#define BRLAPI_ERROR_INVALID_PACKET
Definition: brlapi.h:1300
uint64_t brlapi_param_subparam_t
Definition: brlapi_param.h:112
int BRLAPI_STDCALL brlapi_ignoreKeyRanges(const brlapi_range_t ranges[], unsigned int count)
#define brlapi_errfun
Definition: brlapi.h:1390
int BRLAPI_STDCALL brlapi_leaveTtyMode(void)
int BRLAPI_STDCALL brlapi_enterRawMode(const char *driver)
int BRLAPI_STDCALL brlapi_expandKeyCode(brlapi_keyCode_t code, brlapi_expandedKeyCode_t *expansion)
int BRLAPI_STDCALL brlapi_readKey(int wait, brlapi_keyCode_t *code)
void BRLAPI_STDCALL brlapi_defaultExceptionHandler(int error, brlapi_packetType_t type, const void *packet, size_t size)