jose_cfg(3)
π jose_cfg(3) β JosΓ© Configuration π
okay bestie, welcome to jose_cfg(3), the JosΓ© Configuration page from the Library Functions Manual. this is where JosΓ© keeps all its lil configuration settings, and honestly? it's giving "small API, big main character energy" β¨
πΈ NAME πΈ
jose_cfg β JosΓ© Configuration. that's it, that's the name, short and iconic π
π SYNOPSIS π
β¨ Typedefs β¨
typedef jose_cfg_t jose_cfg_auto_tβ defines ajose_cfg_twhich callsjose_cfg_decref()at end of scope. it's the auto-cleanup bestie, she handles herself π«Ά
β¨ Functions β¨
jose_cfg_t * jose_cfg (void)β creates a new configuration instance. baby's first config π±jose_cfg_t * jose_cfg_incref (jose_cfg_t *cfg)β increases the reference count of a configuration instance. more friends, more refs π₯void jose_cfg_decref (jose_cfg_t *cfg)β decreases the reference count of a configuration instance. bye babe πvoid jose_cfg_set_err_func (jose_cfg_t *cfg, jose_cfg_err_t *err, void *misc)β sets the error handler function for this configuration instance. β¨void * jose_cfg_get_err_misc (jose_cfg_t *cfg)β gets the miscellaneous data associated with the current error handler. πvoid jose_cfg_err (jose_cfg_t *cfg, uint64_t err, const char *fmt,...)β submit an error. π¨
π¦ Detailed Description π¦
JosΓ© Configuration. yes bestie, that's the whole detailed description. it's short but it ate π
π Typedef Documentation π
typedef jose_cfg_t jose_cfg_auto_t
Defines a jose_cfg_t which calls jose_cfg_decref() at end of scope. for example:
void foo() {
jose_cfg_auto_t *cfg = jose_cfg();
// jose_cfg_decref() implicitly called
}
like??? she cleans up after herself automatically. no manual decref, no leaks, no stress. that's the vibe, iykyk πβ¨
π Function Documentation π
jose_cfg_t* jose_cfg (void)
Creates a new configuration instance. brand new, fresh out the box, ready to be configured π
Returns:
- A newly-allocated configuration instance. (yes queen, go allocate πΈ)
jose_cfg_t* jose_cfg_incref (jose_cfg_t * cfg)
Increases the reference count of a configuration instance. and the way that this function always succeeds? no failure path, no error checking needed, she just works π
Parameters:
- cfg β The configuration context.
Returns:
- The value of
cfg(for convenience). so you can chain it, cute right π«Ά
void jose_cfg_decref (jose_cfg_t * cfg)
Decreases the reference count of a configuration instance. and when the reference count reaches zero, the configuration instance is freed. that's the moment she graduates, periodt ππ
Parameters:
- cfg β The configuration context.
void jose_cfg_set_err_func (jose_cfg_t * cfg, jose_cfg_err_t * err, void * misc)
Sets the error handler function for this configuration instance. the value of misc will be passed to the error handler function. so like, whatever lil snack of data you wanna hand over, she'll carry it for you π
You may pass NULL to err to return to the default error handler. no cap, that's the reset button π
Parameters:
- cfg β The configuration context.
- err β The error handler function you wish to enable.
- misc β The miscellaneous data you wish to pass to the error handler.
void* jose_cfg_get_err_misc (jose_cfg_t * cfg)
Gets the miscellaneous data associated with the current error handler. it's giving "where did i put that thing" and then finding it immediately πβ¨
Parameters:
- cfg β The configuration context.
Returns:
- The miscellaneous data associated with the error handler.
void jose_cfg_err (jose_cfg_t * cfg, uint64_t err, const char * fmt, ...)
Submit an error. the error handler will be called with the error provided. like, you're literally handing the drama over to the handler and she deals with it π
Parameters:
- cfg β The configuration context (optional). π note the optional bestie, she doesn't always need to be there
- err β The number corresponding to this error type.
- fmt β A
printf()-style format string. - ... β The
printf()-style arguments.
π Author π
Generated automatically by Doxygen for JosΓ© from the source code. so like, a robot wrote this and honestly? she ate π€π
ok that's the whole page bestie, every function, every parameter, every return value, all of it, untouched. no facts were harmed in the making of this vibe check π«Ά
and that's a wrap on jose_cfg(3) β brought to you by JosΓ©, dated Tue May 30 2017. iconic date, iconic library, slay π β¨π
π¦ where this page comes from
- alpine 3.24: jose-doc 14-r0 Β· Apache-2.0
- arch rolling: jose 15-2 Β· Apache-2.0
- centos-stream 10: libjose-devel 14-102.el10 Β· Apache-2.0
- centos-stream 9: libjose-devel 14-1.el9 Β· ASL 2.0
- centos-stream 9: libjose-devel 14-1.el9 Β· ASL 2.0
- debian bookworm: libjose-dev 11-2+deb12u1 Β· Apache-2.0
- debian trixie: libjose-dev 14-2 Β· Apache-2.0
- fedora 43: libjose-devel 14-5.fc43 Β· Apache-2.0
- fedora 43: libjose-devel 14-5.fc43 Β· Apache-2.0
- fedora 44: libjose-devel 14-6.fc44 Β· Apache-2.0
- fedora 44: libjose-devel 14-6.fc44 Β· Apache-2.0
- nixpkgs unstable: jose 14
- opensuse-leap 16.0: libjose0 13-bp160.1.14 Β· Apache-2.0
- opensuse-leap 16.0: libjose0 13-bp160.1.14 Β· Apache-2.0
- opensuse-leap 16.0: libjose0 13-bp160.1.14 Β· Apache-2.0
- opensuse-leap 16.0: libjose0 13-bp160.1.14 Β· Apache-2.0
- ubuntu jammy: libjose-dev 11-2 Β· Apache-2.0
- ubuntu noble: libjose-dev 13-1 Β· Apache-2.0
- ubuntu resolute: libjose-dev 14-2build1 Β· Apache-2.0
- ubuntu stonking: libjose-dev 14-2build2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms