2016-09-08 16:56:33 +00:00
|
|
|
/**
|
2016-09-11 20:20:15 +00:00
|
|
|
* Author......: See docs/credits.txt
|
2016-09-08 16:56:33 +00:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _DICTSTAT_H
|
|
|
|
#define _DICTSTAT_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
|
2016-09-09 08:22:21 +00:00
|
|
|
#include <errno.h>
|
|
|
|
#include <search.h>
|
|
|
|
|
2016-09-08 16:56:33 +00:00
|
|
|
#define MAX_DICTSTAT 10000
|
|
|
|
|
|
|
|
int sort_by_dictstat (const void *s1, const void *s2);
|
|
|
|
|
2016-09-24 11:01:17 +00:00
|
|
|
void dictstat_init (dictstat_ctx_t *dictstat_ctx, const user_options_t *user_options, const folder_config_t *folder_config);
|
2016-09-09 08:22:21 +00:00
|
|
|
void dictstat_destroy (dictstat_ctx_t *dictstat_ctx);
|
2016-10-02 23:27:55 +00:00
|
|
|
void dictstat_read (dictstat_ctx_t *dictstat_ctx);
|
2016-09-09 08:22:21 +00:00
|
|
|
int dictstat_write (dictstat_ctx_t *dictstat_ctx);
|
|
|
|
u64 dictstat_find (dictstat_ctx_t *dictstat_ctx, dictstat_t *d);
|
|
|
|
void dictstat_append (dictstat_ctx_t *dictstat_ctx, dictstat_t *d);
|
|
|
|
|
2016-09-08 16:56:33 +00:00
|
|
|
#endif // _DICTSTAT_H
|