00001 00023 #ifndef _LIBPACKMAN_TRANSERROR_H_ 00024 #define _LIBPACKMAN_TRANSERROR_H_ 00025 00026 #ifdef __cplusplus 00027 extern "C" { 00028 #endif 00029 00033 typedef enum 00034 { 00035 PM_TRANSERR_EXTRACT, 00036 PM_TRANSERR_DB_ADD, 00037 PM_TRANSERR_DB_REMOVE, 00038 PM_TRANSERR_MISSING_DEPS, 00039 PM_TRANSERR_FILE_CONFLICT, 00040 PM_TRANSERR_DEP_CONFLICT 00042 } PmTransErrorType; 00043 00050 typedef struct 00051 { 00052 PmTransErrorType type; 00053 PmPackage *failedPackage; 00055 PmDependency *failedDeps; 00056 unsigned int failedDepCount; 00058 } PmTransactionError; 00059 00069 PmTransactionError *pmNewTransError(PmTransErrorType type); 00070 00078 void pmDestroyTransError(PmTransactionError *transError); 00079 00080 #ifdef __cplusplus 00081 }; 00082 #endif 00083 00084 #endif /* _LIBPACKMAN_TRANSERROR_H_ */