#include <errno.h>#include <inttypes.h>#include <stdbool.h>#include <stdint.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <strings.h>#include <sys/stat.h>#include <unistd.h>#include <talloc.h>#include <atalk/cnid.h>#include <atalk/errchk.h>#include <atalk/globals.h>#include <atalk/logger.h>#include <atalk/spotlight.h>#include <atalk/unix.h>#include <atalk/util.h>#include <atalk/volume.h>#include "etc/spotlight/spotlight_private.h"#include "etc/spotlight/xapian/sl_xapian.h"Data Structures | |
| struct | sl_xapian_seeded |
| struct | sl_xapian_query |
Macros | |
| #define | SL_XAPIAN_PAGE_SIZE 20 |
| #define | SL_XAPIAN_DEFAULT_LIMIT 10000 |
| #define | SL_XAPIAN_DB_ID_MAX 128 |
Functions | |
| static int | sl_xapian_mkdir_state (const char *path, mode_t mode, char *errbuf, size_t errlen) |
| static int | sl_xapian_ensure_state_root (char *errbuf, size_t errlen) |
| static int | cnid_comp_fn (const void *p1, const void *p2) |
| static bool | sl_xapian_path_in_scope (const char *path, const char *scope) |
| static bool | sl_xapian_seeded (const struct vol *vol) |
| static int | sl_xapian_mark_seeded (const struct vol *vol) |
| static void | sl_xapian_unmark_seeded (const struct vol *vol) |
| static bool | sl_xapian_db_id_char_safe (unsigned char c) |
| static uint64_t | sl_xapian_fnv1a_update (uint64_t hash, const char *s) |
| static bool | sl_xapian_db_id_safe (const char *id) |
| static uint64_t | sl_xapian_db_id_hash (const struct vol *vol, const char *id) |
| static char * | sl_xapian_db_path (TALLOC_CTX *mem_ctx, const struct vol *vol) |
| static const char * | sl_xapian_volume_uuid (const struct vol *vol) |
| static int | sl_xapian_ensure_seeded (slq_t *slq, const char *db_path) |
| static int | sl_xapian_fill_results (slq_t *slq) |
| static int | sl_xapian_init (AFPObj *obj) |
| static void | sl_xapian_close (AFPObj *obj) |
| static int | sl_xapian_open_query (slq_t *slq) |
| static int | sl_xapian_fetch_results (slq_t *slq) |
| static void | sl_xapian_close_query (slq_t *slq) |
| static int | sl_xapian_index_event (const AFPObj *obj, const struct vol *vol, sl_index_event_t event, const char *path, const char *oldpath) |
Variables | |
| static struct sl_xapian_seeded * | seeded_volumes |
| const sl_backend_ops | sl_xapian_ops |
| #define SL_XAPIAN_DB_ID_MAX 128 |
| #define SL_XAPIAN_DEFAULT_LIMIT 10000 |
| #define SL_XAPIAN_PAGE_SIZE 20 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| const sl_backend_ops sl_xapian_ops |