diff options
Diffstat (limited to 'src/statfile.h')
-rw-r--r-- | src/statfile.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/statfile.h b/src/statfile.h index e76aa0897..edb58e5db 100644 --- a/src/statfile.h +++ b/src/statfile.h @@ -96,6 +96,10 @@ typedef struct statfile_pool_s { struct timeval invalidate_tv; } statfile_pool_t; +/* Forwarded declarations */ +struct classifier_config; +struct statfile; + /** * Create new statfile pool * @param max_size maximum size @@ -261,4 +265,15 @@ guint64 statfile_get_total_blocks (stat_file_t *file); */ void statfile_pool_plan_invalidate (statfile_pool_t *pool, time_t seconds, time_t jitter); +/** + * Get a statfile by symbol + * @param pool pool object + * @param ccf ccf classifier config + * @param symbol symbol to search + * @param st statfile to get + * @param try_create whether we need to create statfile if it is absent + */ +stat_file_t* get_statfile_by_symbol (statfile_pool_t *pool, struct classifier_config *ccf, + const gchar *symbol, struct statfile **st, gboolean try_create); + #endif |