MDEX_BASEDIR(3)
π MDEX_BASEDIR(3) π
okay bestie, welcome to the Librecast Programmer's Manual section 3, and today's main character is mdex_basedir π she's a little function with one job and she does it flawlessly, no cap.
β¨ NAME β¨
mdex_basedir β set the base directory for a multicast index ποΈβ¨
π LIBRARY π
Librecast library (liblibrecast, -llibrecast) π«Ά
πΈ SYNOPSIS πΈ
#include <librecast/mdex.h>
void mdex_basedir(mdex_t *mdex, char *basedir);
Compile and link with -llibrecast.
π DESCRIPTION π
so the way this works is: mdex_basedir sets the base directory for mdex to basedir. simple. iconic. she's not doing side quests.
and here's the slay part β that basedir gets stripped from the beginning of all the files added to the index with mdex_addfile(3). so like, you set the base, and every path after that gets its lil prefix trimmed off before it lands in the index. it's giving "clean up your paths" energy β¨π¦
π«§ RETURN VALUE π«§
mdex_basedir() returns no value. she gives nothing back, and honestly? valid. π
π ERRORS π
None. zero. nada. not a single error to report. she simply cannot fail, and we love that for her ππ
π SEE ALSO π
Librecast π β dated 2023-07-23 β that's the version and the vibe, mwah π go forth and set your base directory, bestie π«Άβ¨
π¦ where this page comes from
- debian trixie: liblibrecast-dev 0.9.1-1 Β· GPL-2.0-only OR GPL-3.0-only
- nixos 26.05: librecast 0.11.2
- nixpkgs unstable: librecast 0.11.2
- ubuntu noble: liblibrecast-dev 0.8.0-1.1build1 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu questing: liblibrecast-dev 0.9.1-1
- 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