Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

types.h

Go to the documentation of this file.
00001 
00023 #ifndef _LIBPACKMAN_TYPES_H_
00024 #define _LIBPACKMAN_TYPES_H_
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029 
00033 typedef enum
00034 {
00035     PM_SUCCESS,        
00036     PM_FAILED,         
00037     PM_DB_ERROR,       
00038     PM_PACKAGE_ERROR,  
00039     PM_BATCH_ERROR,    
00040     PM_NOT_SUPPORTED,  
00041     PM_READ_ONLY,      
00042     PM_DEP_ERROR,      
00043     PM_EXISTS          
00045 } PmStatus;
00046 
00050 typedef enum
00051 {
00055     PM_MODE_READ_WRITE,
00056     
00060     PM_MODE_READ_ONLY,
00061     
00062     /*
00063      * Enables test mode, where reading is allowed, but writing,
00064      * file extraction, and database modification is disabled.
00065      */
00066     PM_MODE_TEST,
00067 
00068     /*
00069      * An error has occurred. Most likely, the specified package or
00070      * database is NULL.
00071      */
00072     PM_MODE_ERROR
00073 
00074 } PmAccessMode;
00075 
00079 typedef enum
00080 {
00081     PM_REL_LESS_THAN = 0,    
00082     PM_REL_LESS_EQUAL,       
00083     PM_REL_EQUAL,            
00084     PM_REL_GREATER_EQUAL,    
00085     PM_REL_GREATER_THAN      
00087 } PmRelationship;
00088 
00089 #ifdef __cplusplus
00090 }
00091 #endif
00092 
00093 #endif /* _LIBPACKMAN_TYPES_H_ */
00094 

Generated on Tue Jul 2 03:15:23 2002 for libpackman by doxygen1.2.15-20020430