This file is indexed.

/usr/include/strigi/analyzerplugin.h is in libstreamanalyzer-dev 0.7.7-1.1ubuntu3.

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
/* This file is part of Strigi Desktop Search
 *
 * Copyright (C) 2006 Jos van den Oever <jos@vandenoever.info>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public License
 * along with this library; see the file COPYING.LIB.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1301, USA.
 */

#ifndef STRIGI_ANALYZERPLUGIN_H
#define STRIGI_ANALYZERPLUGIN_H
#include <strigi/strigiconfig.h>

#include <list>

namespace Strigi {
class StreamEndAnalyzerFactory;
class StreamThroughAnalyzerFactory;
class StreamSaxAnalyzerFactory;
class StreamLineAnalyzerFactory;
class StreamEventAnalyzerFactory;

/**
 * @brief Provides a list of analyzer factories present within a plugin.
 *
 * Each loadable plugin has one AnalyzerFactoryFactory. This factory
 * can pass the available factories to the application that loads the plugin.
 */
class AnalyzerFactoryFactory {
public:
    /** Destructor */
    virtual ~AnalyzerFactoryFactory() {}

    /**
     * @brief Return instances of the StreamEndAnalyzerFactories available
     * in this plugin.
     *
     * The default implementation returns an empty list. A particular plugin
     * should subclass the AnalyzerFactoryFactory and overload this function
     * if it implements any StreamEndAnalyzers.
     */
    virtual std::list<StreamEndAnalyzerFactory*>
            streamEndAnalyzerFactories() const {
        std::list<StreamEndAnalyzerFactory*> af;
        return af;
    }
    /**
     * @brief Return instances of the StreamThroughAnalyzerFactories available
     * in this plugin.
     *
     *  The default implementation returns an empty list. A particular plugin
     *  should subclass the AnalyzerFactoryFactory and overload this function
     *  if it implements any StreamThroughAnalyzers.
     */
    virtual std::list<StreamThroughAnalyzerFactory*>
            streamThroughAnalyzerFactories() const {
        std::list<StreamThroughAnalyzerFactory*> af;
        return af;
    }
    /**
     * @brief Return instances of the StreamSaxAnalyzerFactories available
     * in this plugin.
     *
     * The default implementation returns an empty list. A particular plugin
     * should subclass the AnalyzerFactoryFactory and overload this function
     * if it implements any StreamSaxAnalyzers.
     */
    virtual std::list<StreamSaxAnalyzerFactory*>
            streamSaxAnalyzerFactories() const {
        std::list<StreamSaxAnalyzerFactory*> af;
        return af;
    }
    /**
     * @brief Return instances of the StreamLineAnalyzerFactories available
     * in this plugin.
     *
     * The default implementation returns an empty list. A particular plugin
     * should subclass the AnalyzerFactoryFactory and overload this function
     * if it implements any StreamLineAnalyzers.
     */
    virtual std::list<StreamLineAnalyzerFactory*>
            streamLineAnalyzerFactories() const {
        std::list<StreamLineAnalyzerFactory*> af;
        return af;
    }
    /**
     * @brief Return instances of the StreamEventAnalyzerFactories available
     * in this plugin.
     *
     * The default implementation returns an empty list. A particular plugin
     * should subclass the AnalyzerFactoryFactory and overload this function
     * if it implements any StreamEventAnalyzers.
     */
    virtual std::list<StreamEventAnalyzerFactory*>
            streamEventAnalyzerFactories() const {
        std::list<StreamEventAnalyzerFactory*> af;
        return af;
    }
};
}

/** @deprecated use STRIGI_EXPORT instead */
#define STRIGI_PLUGIN_API STRIGI_EXPORT

/**
 * @brief Export a Strigi::AnalyzerFactoryFactory in a plugin
 *
 * @param CLASS the name of the subclass of Strigi::AnalyzerFactoryFactory
 * that provides the analyzer factories available in this plugin.
 */
#define STRIGI_ANALYZER_FACTORY(CLASS) extern "C" { STRIGI_EXPORT \
    const Strigi::AnalyzerFactoryFactory* strigiAnalyzerFactory() { \
        return new CLASS(); \
    } \
    STRIGI_EXPORT \
    void deleteStrigiAnalyzerFactory(const Strigi::AnalyzerFactoryFactory* f) { \
        delete f; \
    } \
}
#endif