| Top |
| #define | XAPIAN_GLIB_ENCODE_VERSION() |
| const char * | xapian_glib_version_string () |
| int | xapian_glib_major_version () |
| int | xapian_glib_minor_version () |
| int | xapian_glib_micro_version () |
| const char * | xapian_version_string () |
| int | xapian_major_version () |
| int | xapian_minor_version () |
| int | xapian_revision () |
| guchar * | xapian_sortable_serialise () |
| double | xapian_sortable_unserialise () |
| #define | XAPIAN_ERROR |
| enum | XapianError |
| #define | XAPIAN_GLIB_MAJOR_VERSION |
| #define | XAPIAN_GLIB_MINOR_VERSION |
| #define | XAPIAN_GLIB_MICRO_VERSION |
| #define | XAPIAN_GLIB_VERSION_S |
| #define | XAPIAN_GLIB_VERSION |
#define XAPIAN_GLIB_ENCODE_VERSION(major,minor,micro)
Generates an integer encoded representation of a Xapian-GLib version,
useful for compile-time comparisons with XAPIAN_GLIB_VERSION.
const char *
xapian_glib_version_string (void);
The version string of the Xapian GLib bindings, e.g. "1.2.3"
int
xapian_glib_major_version (void);
The major version of the Xapian GLib bindings, e.g. 1 in 1.2.3
int
xapian_glib_minor_version (void);
The minor version of the Xapian GLib bindings, e.g. 2 in 1.2.3
int
xapian_glib_micro_version (void);
The micro version of the Xapian GLib bindings, e.g. 3 in 1.2.3
const char *
xapian_version_string (void);
The version string of the underlying Xapian library, e.g. "1.2.17".
int
xapian_major_version (void);
The major version of the underlying Xapian library, e.g 1 in 1.2.17.
int
xapian_minor_version (void);
The minor version of the underlying Xapian library, e.g. 2 in 1.2.17.
int
xapian_revision (void);
The revision number of the underlying Xapian library, e.g. 17 in 1.2.17
guchar * xapian_sortable_serialise (double value,gsize *len);
Convert a floating point number to a string, preserving sort order. The returned string may contain embedded zero bytes, so its length is also returned.
This method converts a floating point number to a string, suitable for using as a value for numeric range restriction, or for use as a sort key.
value |
The numeric value to serialize |
|
len |
Used to return the length of the returned string. |
[out] |
Since: 1.4
double xapian_sortable_unserialise (const guchar *value,gsize len);
Convert a string encoded using sortable_serialise back to a floating point number. The encoded string may contain embedded zero bytes, so its length must also be passed.
This expects the input to be a string produced by
xapian_sortable_serialise(). If the input is not such a string, the value
returned is undefined (but no error will be thrown).
value |
The serialized value to be converted. |
[array length=len] |
len |
The length of the serialized value |
Since: 1.4
Error codes for the XAPIAN_ERROR error domain.
|
Assertion failure |
||
|
Invalid argument |
||
|
Invalid operation |
||
|
Operation not implemented |
||
|
Database error |
||
|
Database is corrupt |
||
|
Failed to create a database |
||
|
Failed to acquire the lock on a database |
||
|
Database modified after opening |
||
|
Unable to open the database |
||
|
Version mismatch when opening the database |
||
|
Document not found |
||
|
Feature not available with the current backend |
||
|
Internal state error |
||
|
Network error |
||
|
Network timeout error |
||
|
Error when parsing a query string |
||
|
Error when serialising or deserialising data |
||
|
Out of bounds access |
#define XAPIAN_GLIB_MAJOR_VERSION (1)
Evaluates to the major version of the Xapian-GLib version, e.g. 1 if the version is 1.2.3.
Use this macro for compile-time checks.
For run-time checks, use xapian_glib_major_version() instead.
#define XAPIAN_GLIB_MINOR_VERSION (6)
Evaluates to the minor version of the Xapian-GLib version, e.g. 2 if the version is 1.2.3.
Use this macro for compile-time checks.
For run-time checks, use xapian_glib_minor_version() instead.
#define XAPIAN_GLIB_MICRO_VERSION (1)
Evaluates to the micro version of the Xapian-GLib version, e.g. 3 if the version is 1.2.3.
Use this macro for compile-time checks.
For run-time checks, use xapian_glib_micro_version() instead.
#define XAPIAN_GLIB_VERSION_S "1.6.1"
Evaluates to a string with the version of Xapian-GLib, useful for concatenating or for printing.
#define XAPIAN_GLIB_VERSION
Evaluates to an encoded integer representation of the Xapian-GLib version, useful for compile-time version comparisons.
Use XAPIAN_GLIB_ENCODE_VERSION to generate an integer representation
that can be compared to the result of this macro, e.g.:
1 2 3 4 5 |
#if XAPIAN_GLIB_VERSION >= XAPIAN_GLIB_ENCODE_VERSION (1, 2, 3) // code that can be used with Xapian-GLib 1.2.3 or later #elif // code that can be used with earlier versions of Xapian-GLib #endif |