Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

script.h

Go to the documentation of this file.
00001 
00023 #ifndef _LIBPACKMAN_SCRIPT_H_
00024 #define _LIBPACKMAN_SCRIPT_H_
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029 
00033 typedef enum
00034 {
00035     PM_SCRIPT_PRE,       
00036     PM_SCRIPT_POST,      
00037     PM_SCRIPT_TRIGGER    
00039 } PmScriptType;
00040 
00044 typedef enum
00045 {
00046     PM_SCRIPTEVT_INSTALL,   
00047     PM_SCRIPTEVT_UNINSTALL  
00049 } PmScriptEvent;
00050 
00054 typedef enum
00055 {
00056     PM_SCRIPTERR_SUCCESS,    
00057     PM_SCRIPTERR_NOT_FOUND,  
00058     PM_SCRIPTERR_INTERPERR   
00060 } PmScriptError;
00061 
00062 #include <libpackman/package.h>
00063 
00080 PmScriptError pmExecuteScript(PmPackage *package, PmScriptType type,
00081                               PmScriptEvent event, const char *trigger);
00082 
00083 #ifdef __cplusplus
00084 };
00085 #endif
00086 
00087 #endif /* _LIBPACKMAN_SCRIPT_H_ */

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