libalpm
Arch Linux Package Manager Library
Functions
Transaction Functions

Functions to manipulate libalpm transactions. More...

Functions

int alpm_trans_init (alpm_handle_t *handle, alpm_transflag_t flags)
 Initialize the transaction.
int alpm_trans_prepare (alpm_handle_t *handle, alpm_list_t **data)
 Prepare a transaction.
int alpm_trans_commit (alpm_handle_t *handle, alpm_list_t **data)
 Commit a transaction.
int alpm_trans_interrupt (alpm_handle_t *handle)
 Interrupt a transaction.
int alpm_trans_release (alpm_handle_t *handle)
 Release a transaction.

Detailed Description

Functions to manipulate libalpm transactions.


Function Documentation

int alpm_trans_commit ( alpm_handle_t handle,
alpm_list_t **  data 
)
int alpm_trans_init ( alpm_handle_t handle,
alpm_transflag_t  flags 
)

Initialize the transaction.

Definition at line 49 of file trans.c.

References _alpm_handle_lock(), ALPM_ERR_HANDLE_LOCK, ALPM_ERR_MEMORY, ALPM_ERR_TRANS_NOT_NULL, ALPM_TRANS_FLAG_NOLOCK, ASSERT, CALLOC, CHECK_HANDLE, __alpm_trans_t::flags, RET_ERR, __alpm_trans_t::state, STATE_INITIALIZED, and __alpm_handle_t::trans.

Referenced by trans_init().

Here is the call graph for this function:

Here is the caller graph for this function:

int alpm_trans_prepare ( alpm_handle_t handle,
alpm_list_t **  data 
)
int alpm_trans_release ( alpm_handle_t handle)

Release a transaction.

Definition at line 200 of file trans.c.

References _, _alpm_handle_unlock(), _alpm_log(), _alpm_trans_free(), ALPM_ERR_TRANS_NULL, ALPM_LOG_WARNING, alpm_logaction(), ALPM_TRANS_FLAG_NOLOCK, ASSERT, CHECK_HANDLE, __alpm_trans_t::flags, __alpm_handle_t::lockfile, RET_ERR, __alpm_trans_t::state, STATE_IDLE, and __alpm_handle_t::trans.

Referenced by trans_release().

Here is the call graph for this function:

Here is the caller graph for this function: