/usr/include/xapian-1.3/xapian.h is in libxapian-1.3-dev 1.3.4-0ubuntu6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | /** @file xapian.h
* @brief Public interfaces for the Xapian library.
*/
// Copyright (C) 2003,2004,2005,2007,2008,2009,2010,2012,2013,2015 Olly Betts
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#ifndef XAPIAN_INCLUDED_XAPIAN_H
#define XAPIAN_INCLUDED_XAPIAN_H
#ifdef slots
# ifdef Q_OBJECT
// Qt headers '#define slots' by default, which clashes with us using it as a
// class member name. Including <xapian.h> first is a simple workaround, or
// you can use 'no_keywords' to stop Qt polluting the global macro namespace,
// as described here:
//
// http://qt-project.org/doc/qt-5.0/signalsandslots.html#using-qt-with-3rd-party-signals-and-slots
# error "Include <xapian.h> before Qt headers, or put 'CONFIG += no_keywords' in your .pro file and use Q_SLOTS instead of slots, etc"
# endif
# ifdef WT_API
// Argh, copycat polluters!
# error "Include <xapian.h> before Wt headers, or define WT_NO_SLOT_MACROS to stop Wt from defining the macros 'slots' and 'SLOT()'"
# endif
#endif
// Define so that deprecation warnings are given to API users, but not
// while building the library.
#define XAPIAN_IN_XAPIAN_H
// Set defines for library version and check C++ ABI versions match.
#include <xapian/version.h>
// Types
#include <xapian/types.h>
// Function attributes
#include <xapian/attributes.h>
// Constants
#include <xapian/constants.h>
// Exceptions
#include <xapian/error.h>
#include <xapian/errorhandler.h>
// Access to databases, documents, etc.
#include <xapian/database.h>
#include <xapian/dbfactory.h>
#include <xapian/document.h>
#include <xapian/positioniterator.h>
#include <xapian/postingiterator.h>
#include <xapian/termiterator.h>
#include <xapian/valueiterator.h>
// Indexing
#include <xapian/termgenerator.h>
// Searching
#include <xapian/enquire.h>
#include <xapian/expanddecider.h>
#include <xapian/keymaker.h>
#include <xapian/matchspy.h>
#include <xapian/postingsource.h>
#include <xapian/query.h>
#include <xapian/queryparser.h>
#include <xapian/valuesetmatchdecider.h>
#include <xapian/weight.h>
// Stemming
#include <xapian/stem.h>
// Snippets
#include <xapian/snipper.h>
// Subclass registry
#include <xapian/registry.h>
// Unicode support
#include <xapian/unicode.h>
// Geospatial
#include <xapian/geospatial.h>
// Database compaction and merging
#include <xapian/compactor.h>
// ELF visibility annotations for GCC.
#include <xapian/visibility.h>
// Mechanism for accessing a struct of constant information
#include <xapian/constinfo.h>
/// The Xapian namespace contains public interfaces for the Xapian library.
namespace Xapian {
// Functions returning library version:
/** Report the version string of the library which the program is linked with.
*
* This may be different to the version compiled against (given by
* XAPIAN_VERSION) if shared libraries are being used.
*/
inline const char * version_string() {
return Internal::get_constinfo_()->str;
}
/** Report the major version of the library which the program is linked with.
*
* This may be different to the version compiled against (given by
* XAPIAN_MAJOR_VERSION) if shared libraries are being used.
*/
inline int major_version() {
return Internal::get_constinfo_()->major;
}
/** Report the minor version of the library which the program is linked with.
*
* This may be different to the version compiled against (given by
* XAPIAN_MINOR_VERSION) if shared libraries are being used.
*/
inline int minor_version() {
return Internal::get_constinfo_()->minor;
}
/** Report the revision of the library which the program is linked with.
*
* This may be different to the version compiled against (given by
* XAPIAN_REVISION) if shared libraries are being used.
*/
inline int revision() {
return Internal::get_constinfo_()->revision;
}
}
#undef XAPIAN_IN_XAPIAN_H
#endif /* XAPIAN_INCLUDED_XAPIAN_H */
|