1 #ifdef SNORT_RELOAD 2 3 #ifndef __appdata_adjuster__ 4 #define __appdata_adjuster__ 5 6 #include "sf_types.h" 7 #include "sfPolicy.h" 8 9 typedef struct _appdata_adjuster APPDATA_ADJUSTER; 10 11 typedef size_t (*PreprocMemUsedFunc)(); 12 13 APPDATA_ADJUSTER * ada_init( PreprocMemUsedFunc totalPreprocMemInUse, uint32_t protocol, size_t preproc_memcap ); 14 15 void ada_delete( APPDATA_ADJUSTER *a ); 16 17 void ada_add( APPDATA_ADJUSTER *a, void *appData, void *scb ); 18 19 void ada_appdata_freed( APPDATA_ADJUSTER *a, void *appData ); 20 21 bool ada_reload_adjust_func( bool idle, tSfPolicyId raPolicyId, void *userData ); 22 23 struct _SnortConfig; 24 int ada_reload_adjust_register( APPDATA_ADJUSTER *a, tSfPolicyId policy_id, struct _SnortConfig *snortConfig, const char *raName, size_t new_cap ); 25 26 void ada_set_new_cap( APPDATA_ADJUSTER *a, size_t new_cap ); 27 28 int ada_reload_disable( APPDATA_ADJUSTER **aPointer, struct _SnortConfig *snortConfig, const char *raName, tSfPolicyId policy_id); 29 30 #endif 31 32 #endif 33