|
Classes |
| struct | PluginInfo |
| union | _ansdata |
| struct | _answer |
| struct | _actcat |
| struct | reg_functype |
| struct | _fdbfs |
| struct | _file_id |
| struct | _crawl |
| struct | DirState |
| struct | _crawlframe |
| struct | _dspdata |
Defines |
| #define | ERR(act, fmt,) fdbfs_ferr(f, act, fmt, __VA_ARGS__) |
| #define | SERR(act, fmt) fdbfs_ferr(f, act, fmt) |
| #define | CERR(act, fmt,) fdbfs_cferr(f, act, fmt, __VA_ARGS__) |
| #define | SCERR(act, fmt) fdbfs_cferr(f, act, fmt) |
| #define | _unused __attribute__((__unused__)) |
| #define | MAJOR_API_VERSION 2 |
| #define | MINOR_API_VERSION 0 |
| #define | FAKEDBFSVER "2.0.0" |
| #define | VERNAME "Doctor Wu" |
| #define | FAKEDBFSMAJOR 2 |
| #define | FAKEDBFSMINOR 0 |
| #define | FAKEDBFSMICRO 0 |
| #define | RCSID(str) static const char _cvsid[] __unused = str; |
| #define | DELIMCHAR "|" |
| #define | FDBFSDIR ".fdbfs" |
| #define | FDBFSPLUGENV "FDBFSPLUGPATH" |
| #define | FIELDS_FLAG_MMAPED 0x1 |
| #define | FIELDS_FLAG_LASTDEF 0x2 |
| #define | DEBUGFUNC_STDERR ((void(*)(char*, enum ErrorAction))0) |
| #define | AFFPROTO |
| #define | ASKFUNC_STD ((answer_t*(*)AFFPROTO)0) |
| #define | CRAWL_ERROR 0x0 |
| #define | CRAWL_FILE 0x1 |
| #define | CRAWL_DIR 0x2 |
| #define | CRAWL_FINISHED 0x3 |
| #define | CRAWL_DIE_ON_ERROR 0x1 |
| #define | allocz(x) calloc(1, x) |
Functions |
| void | fdbfs_set_aff (fdbfs_t *f, answer_t *(*aff) AFFPROTO) |
| | Set askfieldfunction.
|
| fdbfs_t * | fdbfs_new (const char *dbfile, char **error, void(*debugf)(char *, enum ErrorAction), int useplugins) |
| | Create a new instance of fakedbfs.
|
| int | fdbfs_destroy (fdbfs_t *f) |
| | Destroy a fdbfs instance.
|
| int | fdbfs_read_specs_from_db (fdbfs_t *f) |
| | Read dbspecs from DB.
|
| char * | fdbfs_normalise (const char *s) |
| | Normalise string.
|
| size_t | fdbfs_number_size (unsigned int n) |
| | Compute number of base10 digits for given unsigned integer.
|
| size_t | fdbfs_signed_size (int n) |
| | Compute number of base10 digits for given signed integer.
|
| char * | fdbfs_strdupq (const char *s) |
| | Duplicate string within quotes.
|
| char * | fdbfs_fstrdup (const char *str) |
| | Same thing as libc strdup().
|
| int | fdbfs_create_catalogue (fdbfs_t *f, const char *name, const char *alias, const char *cname) |
| | Create catalogue.
|
| int | fdbfs_cat_type_exists (fdbfs_t *f, const char *ct) |
| | Check if CFD exists.
|
| actcat_t * | fdbfs_find_catalogue (fdbfs_t *f, const char *name) |
| | Finds catalogue.
|
| crawl_t * | fdbfs_crawler_new (fdbfs_t *f, int mlevels, int mlbd) |
| void | fdbfs_crawler_destroy (crawl_t *cr) |
| int | fdbfs_crawl_dir (crawl_t *cr, const char *dir) |
Variables |
| answer_t *fdbfs_askfunc_std | AFFPROTO |