|
a/src/rcldb/rcldb_p.h |
|
b/src/rcldb/rcldb_p.h |
|
... |
|
... |
3 |
|
3 |
|
4 |
#include "xapian.h"
|
4 |
#include "xapian.h"
|
5 |
|
5 |
|
6 |
namespace Rcl {
|
6 |
namespace Rcl {
|
7 |
/* @(#$Id: rcldb_p.h,v 1.6 2008-09-30 12:38:29 dockes Exp $ (C) 2007 J.F.Dockes */
|
7 |
/* @(#$Id: rcldb_p.h,v 1.6 2008-09-30 12:38:29 dockes Exp $ (C) 2007 J.F.Dockes */
|
|
|
8 |
|
|
|
9 |
// Omega compatible values. We leave a hole for future omega values. Not sure
|
|
|
10 |
// it makes any sense to keep any level of omega compat given that the index
|
|
|
11 |
// is incompatible anyway.
|
|
|
12 |
enum value_slot {
|
|
|
13 |
VALUE_LASTMOD = 0, // 4 byte big endian value - seconds since 1970.
|
|
|
14 |
VALUE_MD5 = 1, // 16 byte MD5 checksum of original document.
|
|
|
15 |
VALUE_SIG = 10 // Doc sig as chosen by app (ex: mtime+size
|
|
|
16 |
};
|
8 |
|
17 |
|
9 |
// Generic Xapian exception catching code. We do this quite often,
|
18 |
// Generic Xapian exception catching code. We do this quite often,
|
10 |
// and I have no idea how to do this except for a macro
|
19 |
// and I have no idea how to do this except for a macro
|
11 |
#define XCATCHERROR(MSG) \
|
20 |
#define XCATCHERROR(MSG) \
|
12 |
catch (const Xapian::Error &e) { \
|
21 |
catch (const Xapian::Error &e) { \
|