LC_KEYRING_ADD(3)
β¨ lc_keyring_add π (that's the page title bestie, and we're in the Librecast Programmer's Manual, section 3)
okay so. hi. welcome to the manual page for lc_keyring_add and lc_keyring_del β yes BOTH of them, they're a package deal, they share a page like they share a keyring π
πΈ NAME πΈ
lc_keyring_add, lc_keyring_del β add and remove keys to/from a keyring β¨
π LIBRARY π
Librecast library, which is liblibrecast, and you link it with -llibrecast π«Ά
π¦ SYNOPSIS π¦
#include <librecast/key.h>
int lc_keyring_add(lc_keyring_t *keyring, uint8_t *key);
int lc_keyring_del(lc_keyring_t *keyring, uint8_t *key);
Compile and link with -llibrecast.
not me including the header AND the link flag, because the compiler will absolutely humble you if you forget either one π
π DESCRIPTION π
lc_keyring_add() adds key to keyring. simple as. it's giving "put the thing in the thing" and honestly? iconic.
lc_keyring_del() removes key from keyring. the reverse vibe. the un-add. the take-it-back-ery. π
keyring is a pointer to the keyring to manage. you're the manager now. main character energy fr fr π
key is a pointer to the key to add.
π RETURN VALUE π
these functions return 0 if the call succeeds, or -1 if an error occurred. yes bestie, classic zero-for-yay, minus-one-for-nay π
and in the event of an error, errno is set to indicate the error. so check it!! don't just stare at the -1 like it owes you money π
π¨ ERRORS π¨
lc_keyring_add can fail with the following errors:
ENOMEMβ not enough space to addkey. Keyring is full. it's packed. it's booked. it's at capacity. no more keys, the keyring said no π
lc_keyring_del can fail with the following errors:
ENOKEYβ the requested key could not be found. you can't delete what was never there, bestie π
π₯ SEE ALSO π₯
lc_keyring_init(3), lc_keyring_free(3), lc_keyring_has(3), lc_channel_filter_set(3), lc_channel_new(3), lc_keypair_new(3)
go read those too, the lore is deep and the pipeline is real π§
and that's the whole page!! this was LIBRECAST, dated 2025-04-02, and this is LC_KEYRING_ADD(3) signing off π mwah, go add a key, you got this β
π¦ where this page comes from
- nixos 26.05: librecast 0.11.2
- nixpkgs unstable: librecast 0.11.2
- ubuntu resolute: liblibrecast-dev 0.11.2-2 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu stonking: liblibrecast-dev 0.11.2-2build1 Β· GPL-2.0-only OR GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms