This file is indexed.

/usr/include/soprano/global.h is in libsoprano-dev 2.9.4+dfsg1-0ubuntu4.

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
/*
 * This file is part of Soprano Project
 *
 * Copyright (C) 2006 Daniele Galdi <daniele.galdi@gmail.com>
 * Copyright (C) 2007 Sebastian Trueg <trueg@kde.org>
 *
 * 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 SOPRANO_H
#define SOPRANO_H

#include <QtCore/QStringList>

#include "soprano_export.h"
#include "sopranotypes.h"
#include "backend.h" // for QList<BackendSetting>

namespace Soprano {

    class Backend;
    class BackendSetting;
    class Model;

    /**
     * Find a backend plugin by its name.
     *
     * \return the backend specified by \a name or null if could not
     * be found.
     *
     * \sa PluginManager::discoverBackendByName()
     *
     * \relatesalso PluginManager
     */
    SOPRANO_EXPORT const Backend* discoverBackendByName( const QString& name );

    /**
     * Find a backend plugin by its features.
     *
     * \param features The features that are requested.
     * \param userFeatures If features contain Soprano::BackendFeatureUser this paramter states the additionally requested user features.
     *
     * \return a backend that supports the features defined in \a features.
     *
     * \sa PluginManager::discoverBackendByFeatures()
     *
     * \relatesalso PluginManager
     */
    SOPRANO_EXPORT const Backend* discoverBackendByFeatures( BackendFeatures features, const QStringList& userFeatures = QStringList() );

    /**
     * Set the Backend to globally use in createModel.
     *
     * By default and if available backend "redland" is used.
     *
     * \relatesalso PluginManager
     */
    SOPRANO_EXPORT void setUsedBackend( const Backend* );

    /**
     * Retrieve the Backend to globally use in createModel.
     *
     * Can be set via setUsedBackend.
     *
     * \relatesalso PluginManager
     */
    SOPRANO_EXPORT const Backend* usedBackend();

    /**
     * Creates a new RDF storage using the backend set via setUsedBackend.
     * The caller takes ownership and has to care about deletion.
     *
     * \param settings The settings that should be used to create the Model. Backend implementations
     *  should never ignore settings but rather return 0 if an option is not supported. Backends can,
     * however, define their own default settings.
     *
     * \sa Model, Backend::createModel, BackendSetting
     *
     * \relatesalso Backend
     */
    SOPRANO_EXPORT Model* createModel( const BackendSettings& settings = BackendSettings() );
}

#endif // SOPRANO_H