libalpm
Arch Linux Package Manager Library
Data Structures | Typedefs | Enumerations | Functions
trans.h File Reference
#include "alpm.h"
Include dependency graph for trans.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  __alpm_trans_t

Typedefs

typedef enum _alpm_transstate_t alpm_transstate_t

Enumerations

enum  _alpm_transstate_t {
  STATE_IDLE = 0, STATE_INITIALIZED, STATE_PREPARED, STATE_DOWNLOADING,
  STATE_COMMITING, STATE_COMMITED, STATE_INTERRUPTED
}

Functions

void _alpm_trans_free (alpm_trans_t *trans)
int _alpm_trans_init (alpm_trans_t *trans, alpm_transflag_t flags)
int _alpm_runscriptlet (alpm_handle_t *handle, const char *filepath, const char *script, const char *ver, const char *oldver, int is_archive)

Typedef Documentation


Enumeration Type Documentation

Enumerator:
STATE_IDLE 
STATE_INITIALIZED 
STATE_PREPARED 
STATE_DOWNLOADING 
STATE_COMMITING 
STATE_COMMITED 
STATE_INTERRUPTED 

Definition at line 28 of file trans.h.


Function Documentation

int _alpm_runscriptlet ( alpm_handle_t handle,
const char *  filepath,
const char *  script,
const char *  ver,
const char *  oldver,
int  is_archive 
)

Definition at line 276 of file trans.c.

References _, _alpm_access(), _alpm_copyfile(), _alpm_log(), _alpm_makepath_mode(), _alpm_run_chroot(), _alpm_unpack_single(), ALPM_ERR_MEMORY, ALPM_LOG_DEBUG, ALPM_LOG_ERROR, ALPM_LOG_WARNING, MALLOC, RET_ERR, and __alpm_handle_t::root.

Referenced by _alpm_remove_single_package().

Here is the call graph for this function:

Here is the caller graph for this function:

void _alpm_trans_free ( alpm_trans_t trans)

Definition at line 231 of file trans.c.

References _alpm_pkg_free(), _alpm_pkg_free_trans(), __alpm_trans_t::add, alpm_list_free(), alpm_list_free_inner(), FREE, FREELIST, __alpm_trans_t::remove, __alpm_trans_t::skip_remove, and __alpm_trans_t::unresolvable.

Referenced by _alpm_handle_free(), and alpm_trans_release().

Here is the call graph for this function:

Here is the caller graph for this function:

int _alpm_trans_init ( alpm_trans_t trans,
alpm_transflag_t  flags 
)