shisa_init_with_paths(3)
π shisa_init_with_paths β the "spin up a Shisa handle from a file" girlie π
okay bestie, so this one is a function from the shishi library, and it's literally the entry point that hands you a shiny Shisa handle while also letting you pick which config file it reads. yes ma'am. let's get into it. π
β¨ NAME β¨
shisa_init_with_paths β an API function, and she's the one who sets up your Shisa library handle with a config file path of your choosing π¦
πΈ SYNOPSIS πΈ
#include <shisa.h>
int shisa_init_with_paths(Shisa ** dbh, const char * file);
π ARGUMENTS π
Shisa ** dbhβ a returned pointer to a freshly created Shisa library handle. like, you pass in the address of your pointer and she fills it in for you. iconic behaviour honestly.const char * fileβ the filename of the system configuration, orNULL. you can absolutely just passNULLand let her do her thing, iykyk.
π DESCRIPTION π
So she creates a Shisa library handle β she's using shisa() under the hood β except she reads the system configuration file at the location you give her in file. π«Ά
Not feeling the whole "specify a path" vibe? Pass NULL for file and she'll go to the default location instead. The path to that default system configuration file is decided at compile time, and it's literally this:
$sysconfdir/shisa.conf
now here's the part where you need to pay attention, bestie, because it's giving important: π¨
The handle is allocated regardless of return value. The only exception is SHISA_INIT_ERROR, which means there was a problem allocating the handle. Any other error conditions come up while reading a file.
so yeah β she doesn't leave you hanging with a NULL handle just because something went sideways reading the file. the handle's there. the errors are separate. periodt. πβ¨
β RETURN VALUE β
Returns SHISA_OK, or an error code. And specifically, the value SHISA_INIT_ERROR means a failure to create the handle. that's the one you really don't want to see. π
π REPORTING BUGS π
Found a bug? spill the tea to <bug-shishi@gnu.org> π
- GNU Shishi home page:
http://www.gnu.org/software/shishi/ - General help using GNU software:
http://www.gnu.org/gethelp/
π COPYRIGHT π
Copyright Β© 2002-2022 Simon Josefsson.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty, provided the copyright notice and this notice are preserved. slay, and also legally binding. π
π§ SEE ALSO π§
The full documentation for shishi is maintained as a Texinfo manual. If the info and shishi programs are properly installed at your site, this command
info shishi
should give you access to the complete manual. go read her, she's thorough. πβ¨
and that's the whole page, bestie!! this was shisa_init_with_paths(3) from shishi 1.0.3 β the manual name lives up at the top and the version is right here in the sign-off, because we do things properly in this group chat. πππ¦ mwah, go forth and init your handles. π
π¦ where this page comes from
- debian bookworm: libshisa-dev 1.0.3-1+b1 Β· GPL-3.0-or-later
- debian trixie: libshisa-dev 1.0.3-5+b1 Β· GPL-3.0-or-later
- nixos 26.05: shishi 1.0.3
- nixpkgs unstable: shishi 1.0.3
- ubuntu noble: libshisa-dev 1.0.3-2.1build2 Β· GPL-3.0-or-later
- ubuntu questing: libshisa-dev 1.0.3-5
- ubuntu resolute: libshisa-dev 1.0.3-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: libshisa-dev 1.0.3-7 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms