libalpm_handle(3)

πŸ“¦
version 7.1.0.r9.g54d9411 Β· 3 versions
, in arch rolling, epel 10, fedora 43, fedora 44

πŸ’– libalpm_handle(3) πŸ’–

okay bestie, so this is a page from the Library Functions Manual, and it's literally all about libalpm_handle β€” the Handle. πŸŽ€

And what is it giving? Functions to initialize and release libalpm. That's the whole vibe. Setup era and goodbye era. ✨


🌸 NAME 🌸

libalpm_handle β€” Handle

  • Functions to initialize and release libalpm

✨ SYNOPSIS ✨

πŸ¦‹ Typedefs

  • typedef struct _alpm_handle_t alpm_handle_t β€” The libalpm context handle. πŸ‘‘

πŸŽ€ Functions

  • alpm_handle_t * alpm_initialize (const char *root, const char *dbpath, alpm_errno_t *err) β€” Initializes the library.
  • int alpm_release (alpm_handle_t *handle) β€” Release the library.

πŸ’… Detailed Description πŸ’…

Functions to initialize and release libalpm. That's it, that's the job, and she does it flawlessly. periodt. 🌈


🫢 Typedef Documentation 🫢

typedef struct _alpm_handle_t alpm_handle_t

The libalpm context handle. This struct represents an instance of libalpm. Like, one handle = one whole libalpm situation. no cap. πŸ’œ


πŸ”₯ Function Documentation πŸ”₯

alpm_handle_t * alpm_initialize (const char * root, const char * dbpath, alpm_errno_t * err)

Initializes the library. 🧚 Creates handle, connects to database and creates lockfile.

Not me stressing this but: this must be called before any other functions are called. like, BEFORE. it's the first domino, bestie. 😭

Parameters

  • root β€” the root path for all filesystem operations
  • dbpath β€” the absolute path to the libalpm database
  • err β€” an optional variable to hold any error return codes

Returns

a context handle on success, NULL on error, err will be set if provided. slay. πŸ’–


int alpm_release (alpm_handle_t * handle)

Release the library. Disconnects from the database, removes handle and lockfile.

This should be the last alpm call you make. After this returns, handle should be considered invalid and cannot be reused in any way. πŸ’€ like she's GONE gone, do not text her back.

Parameters

  • handle β€” the context handle

Returns

0 on success, -1 on error.


⭐ Author ⭐

Generated automatically by Doxygen for libalpm from the source code.


ok that's the whole page bestie, mwah πŸ’‹

This was brought to you by libalpm β€” page libalpm_handle(3), Library Functions Manual. iykyk. πŸ‘‘βœ¨πŸŒΈ