ecoli_init(3)

πŸ“¦
version 0.11.3 Β· 4 versions
, in epel 9

πŸŽ€ ecoli_init(3) β€” the Libecoli glow-up guide πŸŽ€

okay so bestie, you're looking at ecoli_init(3), straight out of the Libecoli manual. This is the initialization page β€” literally the "wake up babe, we're going in" of the library. Library initialization and cleanup functions, the whole arc. πŸ’…


✨ NAME ✨

ecoli_init β€” Initialization

  • Library initialization and cleanup functions. That's it, that's the whole vibe.

✨ SYNOPSIS ✨

🫢 Data Structures

  • struct ec_init

🫢 Macros

  • #define EC_INIT_REGISTER(t)

🫢 Typedefs

  • typedef int() ec_init_t(void)
  • typedef void() ec_exit_t(void)

🫢 Functions

  • void ec_init_register (struct ec_init *test)
  • int ec_init (void)
  • void ec_exit (void)

✨ Detailed Description ✨

Library initialization and cleanup functions. Yes queen, setup and teardown, the two halves of every good story. 🌸


✨ Macro Definition Documentation ✨

πŸ¦‹ #define EC_INIT_REGISTER(t)

Value, no cap, exactly this:

static void ec_init_init_##t(void);
static void __attribute__((constructor, used)) ec_init_init_##t(void)
{
    ec_init_register(&t);
}

Register initialization and exit callbacks. These callbacks are ordered by priority: for initialization, the lowest priority is called first. For exit, the callbacks are invoked in reverse order. (so it's giving stack, it's giving LIFO, we love a consistent queen ✨)

Priority policy, listen up:

  • 0 .. 99 : reserved for libecoli internal use, hands off πŸ™ˆ
  • 100 .. : available for user code (recommended) β€” this is your lane, bestie πŸ’–
🚨 Do not use priorities < 100 for application code. Internal libecoli components may depend on those priorities and using them can lead to uninitialized state, crashes, or undefined behavior. Not me begging you to respect the reserved range 😭 like fr fr do not.

Definition at line 29 of file init.h. πŸ“


✨ Typedef Documentation ✨

πŸ¦‹ typedef int() ec_init_t(void)

Type of init function. Return 0 on success, -1 on error. Slay or flop, binary as ever. πŸ’€

Definition at line 39 of file init.h. πŸ“

πŸ¦‹ typedef void() ec_exit_t(void)

Type of exit function. No return value, it just leaves, main character exit energy. πŸšͺ✨

Definition at line 44 of file init.h. πŸ“


✨ Function Documentation ✨

🌈 void ec_init_register (struct ec_init * test)

Register an initialization function.

Parameters

  • test β€” A pointer to an ec_init structure to be registered.

🌈 int ec_init (void)

Initialize the ecoli library.

Must be called before any other function from libecoli. Like, before anything. It's the pre-game, the getting-ready-with-me, the vibe check before the vibe. πŸ‘‘

Returns

  • 0 on success, -1 on error (errno is set).

🌈 void ec_exit (void)

Uninitialize the ecoli library. Cleanup era, we love to see it 🧚


✨ Author ✨

Generated automatically by Doxygen for Libecoli from the source code. Yeah, a robot wrote it, and honestly? It ate. πŸ€–πŸ’…


okay pookie that's the whole page 🫢 this was Version 0.11.3, dated Thu Apr 9 2026 β€” go forth, call ec_init() first, respect the reserved priorities, and periodt. β­πŸ’œ

πŸ“¦ where this page comes from