brlapi_deprecated(3)
π brlapi_deprecated β NAME π
bestie. okay. so this page lives in the Library Functions Manual and it's called brlapi_deprecated (yes, the (3) one, library functions energy π
). And what is it? Deprecated names. that's it. that's the whole name. it's the group chat where all the old BrlAPI names went to hang out before they get yeeted. π«Ά
β¨ SYNOPSIS β¨
π Data Structures π
struct brlapi_writeStructβ the old-school struct, still kicking around
π¦ Macros π¦
every one of these is an old name pointing at its new name. they still work, but they are deprecated β do not get attached, fr fr.
#define brlapi_settings_t brlapi_connectionSettings_tβ glow-up: settings got a full first name#define BRLAPI_WRITESTRUCT_INITIALIZER BRLAPI_WRITEARGUMENTS_INITIALIZERβ the initializer formerly known as WRITESTRUCT#define brl_keycode_t brlapi_keyCode_tβbrl_era name, meet thebrlapi_era name#define brl_type_t brlapi_packetType_tβ same deal, new surname#define BRLCOMMANDS NULLβ lowkey iconic, it's justNULLnow#define BRL_KEYCODE_MAX BRLAPI_KEY_MAXβ the max, but make itBRLAPI_#define brlapi_initializeConnection brlapi_openConnectionβ you don't initialize anymore, you open β¨#define brlapi_getTty brlapi_enterTtyModeβ get? no bestie, you enter#define brlapi_getTtyPath brlapi_enterTtyModeWithPathβ and if you brought a path, say so#define brlapi_leaveTty brlapi_leaveTtyModeβ leaving is a mode, apparently#define brlapi_unignoreKeyRange brlapi_acceptKeyRangeβ "unignore" was always a jump scare, now it's "accept" π₯°#define brlapi_unignoreKeySet brlapi_acceptKeySetβ same healing arc, but for a whole set#define brlapi_getRaw brlapi_enterRawModeβ again: enter, not get#define brlapi_leaveRaw brlapi_leaveRawModeβ symmetrical queen#define brlapi_suspend brlapi_suspendDriverβ now with Driver attached so you know what's napping#define brlapi_resume brlapi_resumeDriverβ and what's waking back up#define BRLERR_SUCCESS BRLAPI_ERROR_SUCCESSβ yes the error constant for success, we don't make the rules#define BRLERR_NOMEM BRLAPI_ERROR_NOMEMβ out of memory, but spelled the new way#define BRLERR_TTYBUSY BRLAPI_ERROR_TTYBUSYβ tty is busy, it's booked#define BRLERR_DEVICEBUSY BRLAPI_ERROR_DEVICEBUSYβ device is busy too, everyone's busy#define BRLERR_UNKNOWN_INSTRUCTION BRLAPI_ERROR_UNKNOWN_INSTRUCTIONβ didn't understand the instruction, sorry#define BRLERR_ILLEGAL_INSTRUCTION BRLAPI_ERROR_ILLEGAL_INSTRUCTIONβ that instruction is illegal, we don't do that here π«#define BRLERR_INVALID_PARAMETER BRLAPI_ERROR_INVALID_PARAMETERβ bad parameter bestie#define BRLERR_INVALID_PACKET BRLAPI_ERROR_INVALID_PACKETβ bad packet, not it#define BRLERR_CONNREFUSED BRLAPI_ERROR_CONNREFUSEDβ the connection said no π#define BRLERR_OPNOTSUPP BRLAPI_ERROR_OPNOTSUPPβ operation not supported, we tried#define BRLERR_GAIERR BRLAPI_ERROR_GAIERRβ getaddrinfo said something and it wasn't nice#define BRLERR_LIBCERR BRLAPI_ERROR_LIBCERRβ libc has entered the chat#define BRLERR_UNKNOWNTTY BRLAPI_ERROR_UNKNOWNTTYβ who is this tty? never met her#define BRLERR_PROTOCOL_VERSION BRLAPI_ERROR_PROTOCOL_VERSIONβ protocol version mismatch, awkward#define BRLERR_EOF BRLAPI_ERROR_EOFβ end of file, that's all folks#define BRLERR_EMPTYKEY BRLAPI_ERROR_EMPTYKEYβ the key was empty, tragic#define BRLERR_DRIVERERROR BRLAPI_ERROR_DRIVERERRORβ the driver is having a day π
πΈ Detailed Description πΈ
okay so story time. with version 0.5.0, BrlAPI is now provided through including <brlapi.h> and it got a big renaming pass. the old names are still available through macros, but they are deprecated since they will get dropped in the next release. this documentation is for you to know the new names. π
and here's the little trick: for checking that you have completely switched to new names, just define BRLAPI_NO_DEPRECATED β that will disable the compatibility macros. do that and if your code still compiles, you ate. π
π warning: these macros are deprecated. they will get dropped in the next release. do not start new code with them, do not cling. it's giving temporary.
π§ Macro Definition Documentation π§
here's the same list again, exactly how the doc generator laid it out, because we keep every crumb. same mappings, alphabetical-ish order, no notes needed β the new name is right there on the line. π¦
#define BRL_KEYCODE_MAX BRLAPI_KEY_MAX
#define brl_keycode_t brlapi_keyCode_t
#define brl_type_t brlapi_packetType_t
#define brlapi_getRaw brlapi_enterRawMode
#define brlapi_getTty brlapi_enterTtyMode
#define brlapi_getTtyPath brlapi_enterTtyModeWithPath
#define brlapi_initializeConnection brlapi_openConnection
#define brlapi_leaveRaw brlapi_leaveRawMode
#define brlapi_leaveTty brlapi_leaveTtyMode
#define brlapi_resume brlapi_resumeDriver
#define brlapi_settings_t brlapi_connectionSettings_t
#define brlapi_suspend brlapi_suspendDriver
#define brlapi_unignoreKeyRange brlapi_acceptKeyRange
#define brlapi_unignoreKeySet brlapi_acceptKeySet
#define BRLAPI_WRITESTRUCT_INITIALIZER BRLAPI_WRITEARGUMENTS_INITIALIZER
#define BRLCOMMANDS NULL
#define BRLERR_CONNREFUSED BRLAPI_ERROR_CONNREFUSED
#define BRLERR_DEVICEBUSY BRLAPI_ERROR_DEVICEBUSY
#define BRLERR_DRIVERERROR BRLAPI_ERROR_DRIVERERROR
#define BRLERR_EMPTYKEY BRLAPI_ERROR_EMPTYKEY
#define BRLERR_EOF BRLAPI_ERROR_EOF
#define BRLERR_GAIERR BRLAPI_ERROR_GAIERR
#define BRLERR_ILLEGAL_INSTRUCTION BRLAPI_ERROR_ILLEGAL_INSTRUCTION
#define BRLERR_INVALID_PACKET BRLAPI_ERROR_INVALID_PACKET
#define BRLERR_INVALID_PARAMETER BRLAPI_ERROR_INVALID_PARAMETER
#define BRLERR_LIBCERR BRLAPI_ERROR_LIBCERR
#define BRLERR_NOMEM BRLAPI_ERROR_NOMEM
#define BRLERR_OPNOTSUPP BRLAPI_ERROR_OPNOTSUPP
#define BRLERR_PROTOCOL_VERSION BRLAPI_ERROR_PROTOCOL_VERSION
#define BRLERR_SUCCESS BRLAPI_ERROR_SUCCESS
#define BRLERR_TTYBUSY BRLAPI_ERROR_TTYBUSY
#define BRLERR_UNKNOWN_INSTRUCTION BRLAPI_ERROR_UNKNOWN_INSTRUCTION
#define BRLERR_UNKNOWNTTY BRLAPI_ERROR_UNKNOWNTTY
π Author π
Generated automatically by Doxygen for BrlAPI from the source code. (not me, not you, not a human β the robot did it. respect.) π€π
and that's the page bestie, BrlAPI Version 0.8, the brlapi_deprecated(3) one, straight out of the Library Functions Manual. mwah. π
β¨π«Ά
π¦ where this page comes from
- centos-stream 10: brlapi-devel 0.8.5-16.el10 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- fedora 43: brlapi-devel 0.8.7-4.fc43 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- fedora 43: brlapi-devel 0.8.7-4.fc43 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- fedora 44: brlapi-devel 0.8.7-8.fc44 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- fedora 44: brlapi-devel 0.8.7-8.fc44 Β· LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later
- opensuse-leap 16.0: brlapi-devel 6.8-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: brlapi-devel 6.8-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: brlapi-devel 6.8-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: brlapi-devel 6.8-160000.2.2 Β· LGPL-2.1-or-later
- ubuntu resolute: libbrlapi-dev 6.7-1ubuntu6
- ubuntu stonking: libbrlapi-dev 6.9.1+repack-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms