transaction.h File Reference

#include "pooltypes.h"
#include "queue.h"
#include "bitmap.h"

Go to the source code of this file.

Classes

struct  _Transaction

Defines

#define SOLVER_TRANSACTION_IGNORE   0x00
#define SOLVER_TRANSACTION_ERASE   0x10
#define SOLVER_TRANSACTION_REINSTALLED   0x11
#define SOLVER_TRANSACTION_DOWNGRADED   0x12
#define SOLVER_TRANSACTION_CHANGED   0x13
#define SOLVER_TRANSACTION_UPGRADED   0x14
#define SOLVER_TRANSACTION_OBSOLETED   0x15
#define SOLVER_TRANSACTION_INSTALL   0x20
#define SOLVER_TRANSACTION_REINSTALL   0x21
#define SOLVER_TRANSACTION_DOWNGRADE   0x22
#define SOLVER_TRANSACTION_CHANGE   0x23
#define SOLVER_TRANSACTION_UPGRADE   0x24
#define SOLVER_TRANSACTION_OBSOLETES   0x25
#define SOLVER_TRANSACTION_MULTIINSTALL   0x30
#define SOLVER_TRANSACTION_MULTIREINSTALL   0x31
#define SOLVER_TRANSACTION_MAXTYPE   0x3f
#define SOLVER_TRANSACTION_SHOW_ACTIVE   (1 << 0)
#define SOLVER_TRANSACTION_SHOW_ALL   (1 << 1)
#define SOLVER_TRANSACTION_SHOW_OBSOLETES   (1 << 2)
#define SOLVER_TRANSACTION_SHOW_MULTIINSTALL   (1 << 3)
#define SOLVER_TRANSACTION_CHANGE_IS_REINSTALL   (1 << 4)
#define SOLVER_TRANSACTION_MERGE_VENDORCHANGES   (1 << 5)
#define SOLVER_TRANSACTION_MERGE_ARCHCHANGES   (1 << 6)
#define SOLVER_TRANSACTION_RPM_ONLY   (1 << 7)
#define SOLVER_TRANSACTION_ARCHCHANGE   0x100
#define SOLVER_TRANSACTION_VENDORCHANGE   0x101
#define SOLVER_TRANSACTION_KEEP_ORDERDATA   (1 << 0)

Typedefs

typedef struct _Transaction Transaction

Functions

void transaction_init (Transaction *trans, struct _Pool *pool)
void transaction_init_clone (Transaction *trans, Transaction *srctrans)
void transaction_free (Transaction *trans)
void transaction_free_orderdata (Transaction *trans)
void transaction_calculate (Transaction *trans, Queue *decisionq, Map *noobsmap)
Id transaction_obs_pkg (Transaction *trans, Id p)
void transaction_all_obs_pkgs (Transaction *trans, Id p, Queue *pkgs)
Id transaction_type (Transaction *trans, Id p, int mode)
void transaction_classify (Transaction *trans, int mode, Queue *classes)
void transaction_classify_pkgs (Transaction *trans, int mode, Id type, Id from, Id to, Queue *pkgs)
int transaction_installedresult (Transaction *trans, Queue *installedq)
int transaction_calc_installsizechange (Transaction *trans)
void transaction_calc_duchanges (Transaction *trans, struct _DUChanges *mps, int nmps)
void transaction_order (Transaction *trans, int flags)
int transaction_order_add_choices (Transaction *trans, Id chosen, Queue *choices)
void transaction_add_obsoleted (Transaction *trans)
void transaction_check_order (Transaction *trans)

Define Documentation

#define SOLVER_TRANSACTION_IGNORE   0x00

Definition at line 44 of file transaction.h.

Referenced by solver_printtransaction(), transaction_base_type(), and transaction_type().

#define SOLVER_TRANSACTION_ERASE   0x10
#define SOLVER_TRANSACTION_REINSTALLED   0x11

Definition at line 47 of file transaction.h.

Referenced by solver_printtransaction(), transaction_base_type(), and transaction_type().

#define SOLVER_TRANSACTION_DOWNGRADED   0x12

Definition at line 48 of file transaction.h.

Referenced by solver_printtransaction(), and transaction_base_type().

#define SOLVER_TRANSACTION_CHANGED   0x13

Definition at line 49 of file transaction.h.

Referenced by solver_printtransaction(), transaction_base_type(), and transaction_type().

#define SOLVER_TRANSACTION_UPGRADED   0x14

Definition at line 50 of file transaction.h.

Referenced by solver_printtransaction(), and transaction_base_type().

#define SOLVER_TRANSACTION_OBSOLETED   0x15

Definition at line 51 of file transaction.h.

Referenced by transaction_base_type(), and transaction_type().

#define SOLVER_TRANSACTION_INSTALL   0x20
#define SOLVER_TRANSACTION_REINSTALL   0x21

Definition at line 54 of file transaction.h.

Referenced by solver_printdecisions(), transaction_base_type(), and transaction_type().

#define SOLVER_TRANSACTION_DOWNGRADE   0x22

Definition at line 55 of file transaction.h.

Referenced by solver_printdecisions(), and transaction_base_type().

#define SOLVER_TRANSACTION_CHANGE   0x23

Definition at line 56 of file transaction.h.

Referenced by solver_printdecisions(), transaction_base_type(), and transaction_type().

#define SOLVER_TRANSACTION_UPGRADE   0x24

Definition at line 57 of file transaction.h.

Referenced by solver_printdecisions(), and transaction_base_type().

#define SOLVER_TRANSACTION_OBSOLETES   0x25

Definition at line 58 of file transaction.h.

Referenced by solver_printdecisions(), transaction_base_type(), and transaction_type().

#define SOLVER_TRANSACTION_MULTIINSTALL   0x30

Definition at line 60 of file transaction.h.

Referenced by solver_printdecisions(), transaction_base_type(), and transaction_type().

#define SOLVER_TRANSACTION_MULTIREINSTALL   0x31

Definition at line 61 of file transaction.h.

Referenced by solver_printdecisions(), transaction_base_type(), and transaction_type().

#define SOLVER_TRANSACTION_MAXTYPE   0x3f

Definition at line 63 of file transaction.h.

Referenced by transaction_classify(), and transaction_classify_pkgs().

#define SOLVER_TRANSACTION_SHOW_ACTIVE   (1 << 0)

Definition at line 66 of file transaction.h.

Referenced by solver_printdecisions(), and transaction_type().

#define SOLVER_TRANSACTION_SHOW_ALL   (1 << 1)

Definition at line 67 of file transaction.h.

Referenced by solver_printdecisions(), and transaction_type().

#define SOLVER_TRANSACTION_SHOW_OBSOLETES   (1 << 2)

Definition at line 68 of file transaction.h.

Referenced by solver_printdecisions(), and transaction_type().

#define SOLVER_TRANSACTION_SHOW_MULTIINSTALL   (1 << 3)

Definition at line 69 of file transaction.h.

Referenced by solver_printdecisions(), and transaction_type().

#define SOLVER_TRANSACTION_CHANGE_IS_REINSTALL   (1 << 4)

Definition at line 70 of file transaction.h.

Referenced by transaction_type().

#define SOLVER_TRANSACTION_MERGE_VENDORCHANGES   (1 << 5)

Definition at line 71 of file transaction.h.

Referenced by transaction_classify().

#define SOLVER_TRANSACTION_MERGE_ARCHCHANGES   (1 << 6)

Definition at line 72 of file transaction.h.

Referenced by transaction_classify().

#define SOLVER_TRANSACTION_RPM_ONLY   (1 << 7)

Definition at line 74 of file transaction.h.

Referenced by transaction_type().

#define SOLVER_TRANSACTION_ARCHCHANGE   0x100
#define SOLVER_TRANSACTION_VENDORCHANGE   0x101
#define SOLVER_TRANSACTION_KEEP_ORDERDATA   (1 << 0)

Definition at line 81 of file transaction.h.

Referenced by transaction_order().


Typedef Documentation

typedef struct _Transaction Transaction

Function Documentation

void transaction_init ( Transaction trans,
struct _Pool pool 
)

Definition at line 792 of file transaction.c.

References _Transaction::pool.

Referenced by solver_create().

void transaction_init_clone ( Transaction trans,
Transaction srctrans 
)
void transaction_free ( Transaction trans  ) 
void transaction_free_orderdata ( Transaction trans  ) 
void transaction_calculate ( Transaction trans,
Queue decisionq,
Map noobsmap 
)
Id transaction_obs_pkg ( Transaction trans,
Id  p 
)
void transaction_all_obs_pkgs ( Transaction trans,
Id  p,
Queue pkgs 
)
Id transaction_type ( Transaction trans,
Id  p,
int  mode 
)
void transaction_classify ( Transaction trans,
int  mode,
Queue classes 
)
void transaction_classify_pkgs ( Transaction trans,
int  mode,
Id  type,
Id  from,
Id  to,
Queue pkgs 
)
int transaction_installedresult ( Transaction trans,
Queue installedq 
)
int transaction_calc_installsizechange ( Transaction trans  ) 
void transaction_calc_duchanges ( Transaction trans,
struct _DUChanges mps,
int  nmps 
)
void transaction_order ( Transaction trans,
int  flags 
)
int transaction_order_add_choices ( Transaction trans,
Id  chosen,
Queue choices 
)
void transaction_add_obsoleted ( Transaction trans  ) 
void transaction_check_order ( Transaction trans  ) 
Generated on Mon Dec 12 11:44:13 2011 for satsolver by  doxygen 1.6.3