libalpm_handle(3) | Library Functions Manual | libalpm_handle(3) |
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
Typedef Documentation
typedef struct _alpm_handle_t alpm_handle_t
The libalpm context handle. This struct represents an instance of libalpm.
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. This must be called before any other functions are called.
Parameters
dbpath the absolute path to the libalpm database
err an optional variable to hold any error return codes
Returns
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.
Parameters
Returns
Author
Generated automatically by Doxygen for libalpm from the source code.
libalpm |