BrlAPI  0.6
brlapi.h
Go to the documentation of this file.
1 /* Programs/brlapi.h. Generated from brlapi.h.in by configure. */
2 /*
3  * libbrlapi - A library providing access to braille terminals for applications.
4  *
5  * Copyright (C) 2002-2018 by
6  * Samuel Thibault <Samuel.Thibault@ens-lyon.org>
7  * S├ębastien Hinderer <Sebastien.Hinderer@ens-lyon.org>
8  *
9  * libbrlapi comes with ABSOLUTELY NO WARRANTY.
10  *
11  * This is free software, placed under the terms of the
12  * GNU Lesser General Public License, as published by the Free Software
13  * Foundation; either version 2.1 of the License, or (at your option) any
14  * later version. Please see the file LICENSE-LGPL for details.
15  *
16  * Web Page: http://brltty.app/
17  *
18  * This software is maintained by Dave Mielke <dave@mielke.cc>.
19  */
20 
25 #ifndef BRLAPI_INCLUDED
26 #define BRLAPI_INCLUDED
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif /* __cplusplus */
31 
32 /* #undef BRLAPI_WIN32 */
33 
38 #define BRLAPI_RELEASE "0.6.7"
39 
41 #define BRLAPI_MAJOR 0
42 
44 #define BRLAPI_MINOR 6
45 
47 #define BRLAPI_REVISION 7
48 
50 void brlapi_getLibraryVersion(int *major, int *minor, int *revision);
51 
54 /* Types are defined there */
55 #include <sys/types.h>
56 
57 #ifdef BRLAPI_WIN32
58 #include <windows.h>
59 #define BRLAPI_STDCALL __stdcall
60 #else /* BRLAPI_WIN32 */
61 #define BRLAPI_STDCALL
62 #endif /* BRLAPI_WIN32 */
63 
64 #ifdef _MSC_VER
65 typedef __int64 uint64_t;
66 typedef __int32 uint32_t;
67 #define UINT64_C(x) (x ## Ui64)
68 #define PRIx64 "I64x"
69 typedef signed int ssize_t;
70 #else /* _MSC_VER */
71 
72 /* this is for uint*_t */
73 #include <stdint.h>
74 
75 /* NULL is defined there */
76 #include <unistd.h>
77 
78 #include <inttypes.h> /* For PRIx64 */
79 #endif /* _MSC_VER */
80 
81 #include <wchar.h>
82 
106 
109 
123 #define BRLAPI_SOCKETPORTNUM 4101
124 #define BRLAPI_SOCKETPORT "4101"
125 
127 #define BRLAPI_SOCKETPATH "/var/lib/BrlAPI"
128 
133 #define BRLAPI_ETCDIR "/etc"
134 
138 #define BRLAPI_AUTHKEYFILE "brlapi.key"
139 
141 #ifdef BRLAPI_WIN32
142 /* No authentication by default on Windows */
143 #define BRLAPI_DEFAUTH "none"
144 #else /* BRLAPI_WIN32 */
145 #define BRLAPI_DEFAUTH_KEYFILE "keyfile:" BRLAPI_ETCDIR "/" BRLAPI_AUTHKEYFILE
146 
147 #ifdef USE_POLKIT
148 #define BRLAPI_DEFAUTH_POLKIT "+polkit"
149 #else /* USE_POLKIT */
150 #define BRLAPI_DEFAUTH_POLKIT ""
151 #endif /* USE_POLKIT */
152 
153 #define BRLAPI_DEFAUTH BRLAPI_DEFAUTH_KEYFILE BRLAPI_DEFAUTH_POLKIT
154 #endif /* BRLAPI_WIN32 */
155 
156 #ifdef __MINGW32__
157 typedef HANDLE brlapi_fileDescriptor;
158 #else /* __MINGW32__ */
160 #endif /* __MINGW32__ */
161 
192 typedef struct {
200  char *auth;
201 
210  char *host;
212 
213 /* BRLAPI_SETTINGS_INITIALIZER */
216 #define BRLAPI_SETTINGS_INITIALIZER { NULL, NULL }
217 
218 /* brlapi_openConnection */
263 #ifndef BRLAPI_NO_SINGLE_SESSION
264 brlapi_fileDescriptor BRLAPI_STDCALL brlapi_openConnection(const brlapi_connectionSettings_t *desiredSettings, brlapi_connectionSettings_t *actualSettings);
265 #endif /* BRLAPI_NO_SINGLE_SESSION */
266 brlapi_fileDescriptor BRLAPI_STDCALL brlapi__openConnection(brlapi_handle_t *handle, const brlapi_connectionSettings_t *desiredSettings, brlapi_connectionSettings_t *actualSettings);
267 
268 /* brlapi_closeConnection */
275 #ifndef BRLAPI_NO_SINGLE_SESSION
277 #endif /* BRLAPI_NO_SINGLE_SESSION */
279 
288 /* brlapi__setClientData */
293 #ifndef BRLAPI_NO_SINGLE_SESSION
294 void BRLAPI_STDCALL brlapi_setClientData(void *data);
295 #endif /* BRLAPI_NO_SINGLE_SESSION */
296 void BRLAPI_STDCALL brlapi__setClientData(brlapi_handle_t *handle, void *data);
297 
298 /* brlapi__getClientData */
303 #ifndef BRLAPI_NO_SINGLE_SESSION
305 #endif /* BRLAPI_NO_SINGLE_SESSION */
307 
323 #define BRLAPI_MAXNAMELENGTH 31
324 
325 /* brlapi_getDriverName */
337 #ifndef BRLAPI_NO_SINGLE_SESSION
338 int BRLAPI_STDCALL brlapi_getDriverName(char *buffer, size_t size);
339 #endif /* BRLAPI_NO_SINGLE_SESSION */
340 int BRLAPI_STDCALL brlapi__getDriverName(brlapi_handle_t *handle, char *buffer, size_t size);
341 
342 /* brlapi_getModelIdentifier */
354 #ifndef BRLAPI_NO_SINGLE_SESSION
355 int BRLAPI_STDCALL brlapi_getModelIdentifier(char *buffer, size_t size);
356 #endif /* BRLAPI_NO_SINGLE_SESSION */
357 int BRLAPI_STDCALL brlapi__getModelIdentifier(brlapi_handle_t *handle, char *buffer, size_t size);
358 
359 /* brlapi_getDisplaySize */
361 #ifndef BRLAPI_NO_SINGLE_SESSION
362 int BRLAPI_STDCALL brlapi_getDisplaySize(unsigned int *x, unsigned int *y);
363 #endif /* BRLAPI_NO_SINGLE_SESSION */
364 int BRLAPI_STDCALL brlapi__getDisplaySize(brlapi_handle_t *handle, unsigned int *x, unsigned int *y);
365 
389 /* brlapi_enterTtyMode */
409 #ifndef BRLAPI_NO_SINGLE_SESSION
410 int BRLAPI_STDCALL brlapi_enterTtyMode(int tty, const char *driver);
411 #endif /* BRLAPI_NO_SINGLE_SESSION */
412 int BRLAPI_STDCALL brlapi__enterTtyMode(brlapi_handle_t *handle, int tty, const char *driver);
413 
423 #define BRLAPI_TTY_DEFAULT -1
424 
425 /* brlapi_enterTtyModeWithPath */
437 #ifndef BRLAPI_NO_SINGLE_SESSION
438 int BRLAPI_STDCALL brlapi_enterTtyModeWithPath(int *ttys, int count, const char *driver);
439 #endif /* BRLAPI_NO_SINGLE_SESSION */
440 int BRLAPI_STDCALL brlapi__enterTtyModeWithPath(brlapi_handle_t *handle, int *ttys, int count, const char *driver);
441 
442 /* brlapi_leaveTtyMode */
449 #ifndef BRLAPI_NO_SINGLE_SESSION
451 #endif /* BRLAPI_NO_SINGLE_SESSION */
453 
454 /* brlapi_setFocus */
465 #ifndef BRLAPI_NO_SINGLE_SESSION
466 int BRLAPI_STDCALL brlapi_setFocus(int tty);
467 #endif /* BRLAPI_NO_SINGLE_SESSION */
468 int BRLAPI_STDCALL brlapi__setFocus(brlapi_handle_t *handle, int tty);
469 
499 /* brlapi_writeText */
514 #ifndef BRLAPI_NO_SINGLE_SESSION
515 int BRLAPI_STDCALL brlapi_writeText(int cursor, const char *text);
516 #endif /* BRLAPI_NO_SINGLE_SESSION */
517 int BRLAPI_STDCALL brlapi__writeText(brlapi_handle_t *handle, int cursor, const char *text);
518 
519 /* brlapi_writeWText */
532 #ifndef BRLAPI_NO_SINGLE_SESSION
533 int BRLAPI_STDCALL brlapi_writeWText(int cursor, const wchar_t *text);
534 #endif /* BRLAPI_NO_SINGLE_SESSION */
535 int BRLAPI_STDCALL brlapi__writeWText(brlapi_handle_t *handle, int cursor, const wchar_t *text);
536 
537 /* brlapi_writeDots */
545 #ifndef BRLAPI_NO_SINGLE_SESSION
546 int BRLAPI_STDCALL brlapi_writeDots(const unsigned char *dots);
547 #endif /* BRLAPI_NO_SINGLE_SESSION */
548 int BRLAPI_STDCALL brlapi__writeDots(brlapi_handle_t *handle, const unsigned char *dots);
549 
550 /* brlapi_writeArguments_t */
552 typedef struct {
553  int displayNumber ;
554  unsigned int regionBegin ;
555  unsigned int regionSize ;
556  char *text ;
557  int textSize ;
558  unsigned char *andMask ;
559  unsigned char *orMask ;
560  int cursor ;
561  char *charset ;
563 
568 #define BRLAPI_DISPLAY_DEFAULT -1
569 
574 #define BRLAPI_CURSOR_LEAVE -1
575 
580 #define BRLAPI_CURSOR_OFF 0
581 
582 /* BRLAPI_WRITEARGUMENTS_INITIALIZER */
592 #define BRLAPI_WRITEARGUMENTS_INITIALIZER { \
593  .displayNumber = BRLAPI_DISPLAY_DEFAULT, \
594  .regionBegin = 0, \
595  .regionSize = 0, \
596  .text = NULL, \
597  .textSize = -1, \
598  .andMask = NULL, \
599  .orMask = NULL, \
600  .cursor = BRLAPI_CURSOR_LEAVE, \
601  .charset = NULL \
602 }
603 
604 /* brlapi_write */
640 #ifndef BRLAPI_NO_SINGLE_SESSION
642 #endif /* BRLAPI_NO_SINGLE_SESSION */
644 
647 #include "brlapi_keycodes.h"
648 
662 /* brlapi_expandedKeyCode_t */
664 typedef struct {
665  unsigned int type ;
666  unsigned int command ;
667  unsigned int argument ;
668  unsigned int flags ;
670 
671 /* brlapi_expandKeyCode */
680 
681 /* brlapi_describedKeyCode_t */
683 typedef struct {
684  const char *type ;
685  const char *command ;
686  unsigned int argument ;
687  unsigned int flags ;
688  const char *flag[64 - BRLAPI_KEY_FLAGS_SHIFT] ;
691 
692 /* brlapi_describeKeyCode */
701 
703 #define BRLAPI_UC_ROW 0x2800UL
704 
705 /* brlapi_readKey */
772 #ifndef BRLAPI_NO_SINGLE_SESSION
773 int BRLAPI_STDCALL brlapi_readKey(int wait, brlapi_keyCode_t *code);
774 #endif /* BRLAPI_NO_SINGLE_SESSION */
775 int BRLAPI_STDCALL brlapi__readKey(brlapi_handle_t *handle, int wait, brlapi_keyCode_t *code);
776 
777 /* brlapi_readKeyWithTimeout */
794 #ifndef BRLAPI_NO_SINGLE_SESSION
796 #endif /* BRLAPI_NO_SINGLE_SESSION */
798 
800 typedef enum {
807 
808 /* brlapi_ignoreKeys */
821 #ifndef BRLAPI_NO_SINGLE_SESSION
822 int BRLAPI_STDCALL brlapi_ignoreKeys(brlapi_rangeType_t type, const brlapi_keyCode_t keys[], unsigned int count);
823 #endif /* BRLAPI_NO_SINGLE_SESSION */
824 int BRLAPI_STDCALL brlapi__ignoreKeys(brlapi_handle_t *handle, brlapi_rangeType_t type, const brlapi_keyCode_t keys[], unsigned int count);
825 
826 /* brlapi_acceptKeys */
839 #ifndef BRLAPI_NO_SINGLE_SESSION
840 int BRLAPI_STDCALL brlapi_acceptKeys(brlapi_rangeType_t type, const brlapi_keyCode_t keys[], unsigned int count);
841 #endif /* BRLAPI_NO_SINGLE_SESSION */
842 int BRLAPI_STDCALL brlapi__acceptKeys(brlapi_handle_t *handle, brlapi_rangeType_t type, const brlapi_keyCode_t keys[], unsigned int count);
843 
844 /* brlapi_ignoreAllKeys */
850 #ifndef BRLAPI_NO_SINGLE_SESSION
852 #define brlapi_ignoreAllKeys() brlapi_ignoreKeys(brlapi_rangeType_all, NULL, 0)
853 #endif /* BRLAPI_NO_SINGLE_SESSION */
855 #define brlapi__ignoreAllKeys(handle) brlapi__ignoreKeys(handle, brlapi_rangeType_all, NULL, 0)
856 
857 /* brlapi_acceptAllKeys */
866 #ifndef BRLAPI_NO_SINGLE_SESSION
868 #define brlapi_acceptAllKeys() brlapi_acceptKeys(brlapi_rangeType_all, NULL, 0)
869 #endif /* BRLAPI_NO_SINGLE_SESSION */
871 #define brlapi__acceptAllKeys(handle) brlapi__acceptKeys(handle, brlapi_rangeType_all, NULL, 0)
872 
877 typedef struct {
881 
882 /* brlapi_ignoreKeyRanges */
893 #ifndef BRLAPI_NO_SINGLE_SESSION
894 int BRLAPI_STDCALL brlapi_ignoreKeyRanges(const brlapi_range_t ranges[], unsigned int count);
895 #endif /* BRLAPI_NO_SINGLE_SESSION */
896 int BRLAPI_STDCALL brlapi__ignoreKeyRanges(brlapi_handle_t *handle, const brlapi_range_t ranges[], unsigned int count);
897 
898 /* brlapi_acceptKeyRanges */
909 #ifndef BRLAPI_NO_SINGLE_SESSION
910 int BRLAPI_STDCALL brlapi_acceptKeyRanges(const brlapi_range_t ranges[], unsigned int count);
911 #endif /* BRLAPI_NO_SINGLE_SESSION */
912 int BRLAPI_STDCALL brlapi__acceptKeyRanges(brlapi_handle_t *handle, const brlapi_range_t ranges[], unsigned int count);
938 /* brlapi_enterRawMode */
943 #ifndef BRLAPI_NO_SINGLE_SESSION
944 int BRLAPI_STDCALL brlapi_enterRawMode(const char *driver);
945 #endif /* BRLAPI_NO_SINGLE_SESSION */
946 int BRLAPI_STDCALL brlapi__enterRawMode(brlapi_handle_t *handle, const char *driver);
947 
948 /* brlapi_leaveRawMode */
951 #ifndef BRLAPI_NO_SINGLE_SESSION
953 #endif /* BRLAPI_NO_SINGLE_SESSION */
955 
956 /* brlapi_sendRaw */
962 #ifndef BRLAPI_NO_SINGLE_SESSION
963 ssize_t BRLAPI_STDCALL brlapi_sendRaw(const void *buffer, size_t size);
964 #endif /* BRLAPI_NO_SINGLE_SESSION */
965 ssize_t BRLAPI_STDCALL brlapi__sendRaw(brlapi_handle_t *handle, const void *buffer, size_t size);
966 
967 /* brlapi_recvRaw */
974 #ifndef BRLAPI_NO_SINGLE_SESSION
975 ssize_t BRLAPI_STDCALL brlapi_recvRaw(void *buffer, size_t size);
976 #endif /* BRLAPI_NO_SINGLE_SESSION */
977 ssize_t BRLAPI_STDCALL brlapi__recvRaw(brlapi_handle_t *handle, void *buffer, size_t size);
978 
979 /* brlapi_suspendDriver */
984 #ifndef BRLAPI_NO_SINGLE_SESSION
985 int BRLAPI_STDCALL brlapi_suspendDriver(const char *driver);
986 #endif /* BRLAPI_NO_SINGLE_SESSION */
987 int BRLAPI_STDCALL brlapi__suspendDriver(brlapi_handle_t *handle, const char *driver);
988 
989 /* brlapi_resumeDriver */
993 #ifndef BRLAPI_NO_SINGLE_SESSION
995 #endif /* BRLAPI_NO_SINGLE_SESSION */
1020 /* Error codes */
1021 #define BRLAPI_ERROR_SUCCESS 0
1022 #define BRLAPI_ERROR_NOMEM 1
1023 #define BRLAPI_ERROR_TTYBUSY 2
1024 #define BRLAPI_ERROR_DEVICEBUSY 3
1025 #define BRLAPI_ERROR_UNKNOWN_INSTRUCTION 4
1026 #define BRLAPI_ERROR_ILLEGAL_INSTRUCTION 5
1027 #define BRLAPI_ERROR_INVALID_PARAMETER 6
1028 #define BRLAPI_ERROR_INVALID_PACKET 7
1029 #define BRLAPI_ERROR_CONNREFUSED 8
1030 #define BRLAPI_ERROR_OPNOTSUPP 9
1031 #define BRLAPI_ERROR_GAIERR 10
1032 #define BRLAPI_ERROR_LIBCERR 11
1033 #define BRLAPI_ERROR_UNKNOWNTTY 12
1034 #define BRLAPI_ERROR_PROTOCOL_VERSION 13
1035 #define BRLAPI_ERROR_EOF 14
1036 #define BRLAPI_ERROR_EMPTYKEY 15
1037 #define BRLAPI_ERROR_DRIVERERROR 16
1038 #define BRLAPI_ERROR_AUTHENTICATION 17
1040 /* brlapi_errlist */
1041 
1045 extern const char *brlapi_errlist[];
1046 
1047 /* brlapi_nerr */
1049 extern const int brlapi_nerr;
1050 
1051 /* brlapi_perror */
1056 void BRLAPI_STDCALL brlapi_perror(const char *s);
1057 
1058 /* brlapi_error_t */
1060 typedef struct {
1064  const char *errfun;
1065 } brlapi_error_t;
1066 
1076 
1086 
1088 extern int brlapi_errno;
1090 extern int brlapi_libcerrno;
1092 extern int brlapi_gaierrno;
1094 extern const char *brlapi_errfun;
1095 
1097 #define brlapi_error (*brlapi_error_location())
1098 
1099 #define brlapi_errno (brlapi_error.brlerrno)
1100 
1101 #define brlapi_libcerrno (brlapi_error.libcerrno)
1102 
1103 #define brlapi_gaierrno (brlapi_error.gaierrno)
1104 
1105 #define brlapi_errfun (brlapi_error.errfun)
1106 
1107 /* brlapi_strerror */
1113 const char * BRLAPI_STDCALL brlapi_strerror(const brlapi_error_t *error);
1114 
1116 typedef uint32_t brlapi_packetType_t;
1117 
1118 /* brlapi_getPacketTypeName */
1124 const char * BRLAPI_STDCALL brlapi_getPacketTypeName(brlapi_packetType_t type);
1125 
1126 /* brlapi_exceptionHandler_t */
1138 #ifndef BRLAPI_NO_SINGLE_SESSION
1139 typedef void (BRLAPI_STDCALL *brlapi_exceptionHandler_t)(int error, brlapi_packetType_t type, const void *packet, size_t size);
1140 #endif /* BRLAPI_NO_SINGLE_SESSION */
1141 typedef void (BRLAPI_STDCALL *brlapi__exceptionHandler_t)(brlapi_handle_t *handle, int error, brlapi_packetType_t type, const void *packet, size_t size);
1142 
1143 /* brlapi_strexception */
1153 #ifndef BRLAPI_NO_SINGLE_SESSION
1154 int BRLAPI_STDCALL brlapi_strexception(char *buffer, size_t bufferSize, int error, brlapi_packetType_t type, const void *packet, size_t packetSize);
1155 #endif /* BRLAPI_NO_SINGLE_SESSION */
1156 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);
1157 
1158 /* brlapi_setExceptionHandler */
1167 #ifndef BRLAPI_NO_SINGLE_SESSION
1169 #endif /* BRLAPI_NO_SINGLE_SESSION */
1171 
1172 #ifndef BRLAPI_NO_SINGLE_SESSION
1173 void BRLAPI_STDCALL brlapi_defaultExceptionHandler(int error, brlapi_packetType_t type, const void *packet, size_t size);
1174 #endif /* BRLAPI_NO_SINGLE_SESSION */
1175 void BRLAPI_STDCALL brlapi__defaultExceptionHandler(brlapi_handle_t *handle, int error, brlapi_packetType_t type, const void *packet, size_t size);
1176 
1179 /* Windows-specific tricks - don't look at this */
1180 #ifdef BRLAPI_WIN32
1181 #ifndef BRLAPI_NO_SINGLE_SESSION
1182 int BRLAPI_STDCALL brlapi_writeTextWin(int cursor, const void *str, int wide);
1183 #endif /* BRLAPI_NO_SINGLE_SESSION */
1184 int BRLAPI_STDCALL brlapi__writeTextWin(brlapi_handle_t *handle, int cursor, const void *str, int wide);
1185 
1186 #ifndef BRLAPI_NO_SINGLE_SESSION
1187 int BRLAPI_STDCALL brlapi_writeWin(const brlapi_writeArguments_t *s, int wide);
1188 #endif /* BRLAPI_NO_SINGLE_SESSION */
1189 int BRLAPI_STDCALL brlapi__writeWin(brlapi_handle_t *handle, const brlapi_writeArguments_t *s, int wide);
1190 
1191 #ifdef UNICODE
1192 #ifndef BRLAPI_NO_SINGLE_SESSION
1193 #define brlapi_writeText(cursor, str) brlapi_writeTextWin(cursor, str, 1)
1194 #endif /* BRLAPI_NO_SINGLE_SESSION */
1195 #define brlapi__writeText(handle, cursor, str) brlapi__writeTextWin(handle, cursor, str, 1)
1196 
1197 #ifndef BRLAPI_NO_SINGLE_SESSION
1198 #define brlapi_write(s) brlapi_writeWin(s, 1)
1199 #endif /* BRLAPI_NO_SINGLE_SESSION */
1200 #define brlapi__write(handle, s) brlapi__writeWin(handle, s, 1)
1201 
1202 #else /* UNICODE */
1203 
1204 #ifndef BRLAPI_NO_SINGLE_SESSION
1205 #define brlapi_writeText(cursor, str) brlapi_writeTextWin(cursor, str, 0)
1206 #endif /* BRLAPI_NO_SINGLE_SESSION */
1207 #define brlapi__writeText(handle, cursor, str) brlapi__writeTextWin(handle, cursor, str, 0)
1208 
1209 #ifndef BRLAPI_NO_SINGLE_SESSION
1210 #define brlapi_write(s) brlapi_writeWin(s, 0)
1211 #endif /* BRLAPI_NO_SINGLE_SESSION */
1212 #define brlapi__write(handle, s) brlapi__writeWin(handle, s, 0)
1213 
1214 #endif /* UNICODE */
1215 #endif /* BRLAPI_WIN32 */
1216 
1217 #ifndef BRLAPI_NO_DEPRECATED
1218 
1230 #define brlapi_settings_t brlapi_connectionSettings_t
1231 
1233 typedef struct {
1235  unsigned int regionBegin;
1236  unsigned int regionSize;
1237  char *text;
1239  unsigned char *attrAnd;
1240  unsigned char *attrOr;
1241  int cursor;
1242  char *charset;
1244 #define BRLAPI_WRITESTRUCT_INITIALIZER BRLAPI_WRITEARGUMENTS_INITIALIZER
1245 
1246 #define brl_keycode_t brlapi_keyCode_t
1247 #define brl_type_t brlapi_packetType_t
1248 
1249 #define BRLCOMMANDS NULL
1250 #define BRL_KEYCODE_MAX BRLAPI_KEY_MAX
1251 
1252 #ifndef BRLAPI_NO_SINGLE_SESSION
1253 #define brlapi_initializeConnection brlapi_openConnection
1254 #define brlapi_getTty brlapi_enterTtyMode
1255 #define brlapi_getTtyPath brlapi_enterTtyModeWithPath
1256 #define brlapi_leaveTty brlapi_leaveTtyMode
1257 #define brlapi_unignoreKeyRange brlapi_acceptKeyRange
1258 #define brlapi_unignoreKeySet brlapi_acceptKeySet
1259 #define brlapi_getRaw brlapi_enterRawMode
1260 #define brlapi_leaveRaw brlapi_leaveRawMode
1261 #define brlapi_suspend brlapi_suspendDriver
1262 #define brlapi_resume brlapi_resumeDriver
1263 #endif /* BRLAPI_NO_SINGLE_SESSION */
1264 
1265 #define BRLERR_SUCCESS BRLAPI_ERROR_SUCCESS
1266 #define BRLERR_NOMEM BRLAPI_ERROR_NOMEM
1267 #define BRLERR_TTYBUSY BRLAPI_ERROR_TTYBUSY
1268 #define BRLERR_DEVICEBUSY BRLAPI_ERROR_DEVICEBUSY
1269 #define BRLERR_UNKNOWN_INSTRUCTION BRLAPI_ERROR_UNKNOWN_INSTRUCTION
1270 #define BRLERR_ILLEGAL_INSTRUCTION BRLAPI_ERROR_ILLEGAL_INSTRUCTION
1271 #define BRLERR_INVALID_PARAMETER BRLAPI_ERROR_INVALID_PARAMETER
1272 #define BRLERR_INVALID_PACKET BRLAPI_ERROR_INVALID_PACKET
1273 #define BRLERR_CONNREFUSED BRLAPI_ERROR_CONNREFUSED
1274 #define BRLERR_OPNOTSUPP BRLAPI_ERROR_OPNOTSUPP
1275 #define BRLERR_GAIERR BRLAPI_ERROR_GAIERR
1276 #define BRLERR_LIBCERR BRLAPI_ERROR_LIBCERR
1277 #define BRLERR_UNKNOWNTTY BRLAPI_ERROR_UNKNOWNTTY
1278 #define BRLERR_PROTOCOL_VERSION BRLAPI_ERROR_PROTOCOL_VERSION
1279 #define BRLERR_EOF BRLAPI_ERROR_EOF
1280 #define BRLERR_EMPTYKEY BRLAPI_ERROR_EMPTYKEY
1281 #define BRLERR_DRIVERERROR BRLAPI_ERROR_DRIVERERROR
1282 
1284 #endif /* BRLAPI_NO_DEPRECATED */
1285 
1286 #ifdef __cplusplus
1287 }
1288 #endif /* __cplusplus */
1289 
1290 #endif /* BRLAPI_INCLUDED */