Interface Functions

Functions to initialize and release libalpm. More...

Functions

int alpm_initialize (void)
int alpm_release (void)

Detailed Description

Functions to initialize and release libalpm.


Function Documentation

int alpm_initialize ( void   ) 

Initializes the library. This must be called before any other functions are called.

Returns:
0 on success, -1 on error (pm_errno is set accordingly)

Definition at line 44 of file alpm.c.

References _alpm_handle_new(), ASSERT, handle, PM_ERR_HANDLE_NOT_NULL, PM_ERR_MEMORY, and RET_ERR.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int alpm_release ( void   ) 

Release the library. This should be the last alpm call you make.

Returns:
0 on success, -1 on error (pm_errno is set accordingly)

Definition at line 63 of file alpm.c.

References _alpm_handle_free(), alpm_db_unregister_all(), ALPM_LOG_FUNC, ASSERT, handle, PM_ERR_HANDLE_NULL, and RET_ERR.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Tue Jan 15 00:01:26 2008 for libalpm by  doxygen 1.5.4