BrlAPI 0.8
|
How to get information about the connected Terminal. More...
Macros | |
#define | BRLAPI_MAXNAMELENGTH 31 |
Functions | |
int BRLAPI_STDCALL | brlapi_getDriverName (char *buffer, size_t size) |
int BRLAPI_STDCALL | brlapi__getDriverName (brlapi_handle_t *handle, char *buffer, size_t size) |
int BRLAPI_STDCALL | brlapi_getModelIdentifier (char *buffer, size_t size) |
int BRLAPI_STDCALL | brlapi__getModelIdentifier (brlapi_handle_t *handle, char *buffer, size_t size) |
int BRLAPI_STDCALL | brlapi_getDisplaySize (unsigned int *x, unsigned int *y) |
int BRLAPI_STDCALL | brlapi__getDisplaySize (brlapi_handle_t *handle, unsigned int *x, unsigned int *y) |
Before using Raw mode or key codes, the application should always check the type of the connected terminal, to be sure it is really the one it expects.
One should also check for display size, so as to adjust further displaying on it.
#define BRLAPI_MAXNAMELENGTH 31 |
Maximum name length for driver names embeded in BrlAPI packets, not counting any termination \0 character
int BRLAPI_STDCALL brlapi__getDisplaySize | ( | brlapi_handle_t * | handle, |
unsigned int * | x, | ||
unsigned int * | y ) |
References BRLAPI_STDCALL.
int BRLAPI_STDCALL brlapi__getDriverName | ( | brlapi_handle_t * | handle, |
char * | buffer, | ||
size_t | size ) |
References BRLAPI_STDCALL.
int BRLAPI_STDCALL brlapi__getModelIdentifier | ( | brlapi_handle_t * | handle, |
char * | buffer, | ||
size_t | size ) |
References BRLAPI_STDCALL.
int BRLAPI_STDCALL brlapi_getDisplaySize | ( | unsigned int * | x, |
unsigned int * | y ) |
Return the size of the braille display
References BRLAPI_STDCALL.
int BRLAPI_STDCALL brlapi_getDriverName | ( | char * | buffer, |
size_t | size ) |
Return the complete name of the driver used by brltty
This function fills its argument with the whole name of the braille driver if available, terminated with a '\0'.
buffer | is the buffer provided by the application; |
size | is the maximum size for the name buffer. |
size
, the value was truncated and the caller should retry with a bigger buffer accordingly. References BRLAPI_STDCALL.
int BRLAPI_STDCALL brlapi_getModelIdentifier | ( | char * | buffer, |
size_t | size ) |
Return an identifier for the device model used by brltty
This function fills its argument with the whole identifier of the braille device model if available, terminated with a '\0'.
buffer | is the buffer given by the application; |
size | is the maximum size for the identifier buffer. |
size
, the value was truncated and the caller should retry with a bigger buffer accordingly. References BRLAPI_STDCALL.