Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

listeners.h

Go to the documentation of this file.
00001 
00023 #ifndef _LIBPACKMAN_LISTENERS_H_
00024 #define _LIBPACKMAN_LISTENERS_H_
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029 
00033 typedef enum
00034 {
00035     PM_EVENT_PREPARE,      
00036     PM_EVENT_DEPGRAPH,     
00037     PM_EVENT_DEPCHECK,     
00038     PM_EVENT_INSTALL,      
00039     PM_EVENT_UNINSTALL,    
00040     PM_EVENT_CREATE_DB,    
00041     PM_EVENT_IMPORT_DB,    
00042     PM_EVENT_REBUILD_DB    
00044 } PmEventType;
00045 
00055 void pmRegisterEventListener(PmEventType type,
00056                              void (*callback)(PmEventType event_type,
00057                                               int amount, int total,
00058                                               void *data));
00059 
00069 void pmUnregisterEventListener(PmEventType type,
00070                                void (*callback)(PmEventType event_type,
00071                                                 int amount, int total,
00072                                                 void *data));
00073 
00085 void pmBroadcastEvent(PmEventType type, int amount, int total, void *data);
00086 
00087 #ifdef __cplusplus
00088 }
00089 #endif
00090 
00091 #endif /* _LIBPACKMAN_LISTENERS_H_ */

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