netatalk
4.5.0
Free and Open Source Apple Filing Protocol (AFP) Server
Toggle main menu visibility
Loading...
Searching...
No Matches
sl_xapian.h
Go to the documentation of this file.
1
/*
2
* C wrapper boundary for the Spotlight Xapian backend.
3
*
4
* The implementation is C++ because libxapian exposes a C++ API. All
5
* functions here catch C++ exceptions before returning to C callers.
6
*/
7
8
#ifndef SL_XAPIAN_H
9
#define SL_XAPIAN_H
10
11
#include <stddef.h>
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
17
int
sl_xapian_reconcile
(
const
char
*db_path,
18
const
char
*volume_path,
19
const
char
*volume_uuid,
20
char
*errbuf,
21
size_t
errlen);
22
int
sl_xapian_index_ready
(
const
char
*db_path,
23
const
char
*volume_path,
24
const
char
*volume_uuid,
25
char
*errbuf,
26
size_t
errlen);
27
int
sl_xapian_query
(
const
char
*db_path,
28
const
char
*scope,
29
const
char
*qstring,
30
size_t
offset,
31
size_t
limit,
32
char
***paths,
33
size_t
*
count
,
34
int
*more,
35
char
*errbuf,
36
size_t
errlen);
37
int
sl_xapian_upsert_path
(
const
char
*db_path,
38
const
char
*
path
,
39
char
*errbuf,
40
size_t
errlen);
41
int
sl_xapian_delete_path
(
const
char
*db_path,
42
const
char
*
path
,
43
char
*errbuf,
44
size_t
errlen);
45
int
sl_xapian_delete_prefix
(
const
char
*db_path,
46
const
char
*
path
,
47
char
*errbuf,
48
size_t
errlen);
49
int
sl_xapian_reindex_subtree
(
const
char
*db_path,
50
const
char
*volume_path,
51
const
char
*
path
,
52
const
char
*oldpath,
53
char
*errbuf,
54
size_t
errlen);
55
int
sl_xapian_mark_dirty
(
const
char
*db_path,
56
char
*errbuf,
57
size_t
errlen);
58
void
sl_xapian_free_paths
(
char
**paths,
size_t
count
);
59
60
#ifdef __cplusplus
61
}
62
#endif
63
64
#endif
/* SL_XAPIAN_H */
count
int count
Definition
server_ipc.c:89
sl_xapian_query
int sl_xapian_query(const char *db_path, const char *scope, const char *qstring, size_t offset, size_t limit, char ***paths, size_t *count, int *more, char *errbuf, size_t errlen)
sl_xapian_index_ready
int sl_xapian_index_ready(const char *db_path, const char *volume_path, const char *volume_uuid, char *errbuf, size_t errlen)
sl_xapian_reconcile
int sl_xapian_reconcile(const char *db_path, const char *volume_path, const char *volume_uuid, char *errbuf, size_t errlen)
sl_xapian_reindex_subtree
int sl_xapian_reindex_subtree(const char *db_path, const char *volume_path, const char *path, const char *oldpath, char *errbuf, size_t errlen)
sl_xapian_mark_dirty
int sl_xapian_mark_dirty(const char *db_path, char *errbuf, size_t errlen)
sl_xapian_delete_path
int sl_xapian_delete_path(const char *db_path, const char *path, char *errbuf, size_t errlen)
sl_xapian_upsert_path
int sl_xapian_upsert_path(const char *db_path, const char *path, char *errbuf, size_t errlen)
sl_xapian_free_paths
void sl_xapian_free_paths(char **paths, size_t count)
sl_xapian_delete_prefix
int sl_xapian_delete_prefix(const char *db_path, const char *path, char *errbuf, size_t errlen)
path
Definition
include/atalk/directory.h:123
etc
spotlight
xapian
sl_xapian.h
Generated by
1.17.0