This file is indexed.

/usr/include/gom-1.0/gom/gom-repository.h is in libgom-1.0-dev 0.3.1-1.

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
/* gom-repository.h
 *
 * Copyright (C) 2011 Christian Hergert <chris@dronelabs.com>
 *
 * This file is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This file 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef GOM_REPOSITORY_H
#define GOM_REPOSITORY_H

#include <gio/gio.h>

#include "gom-adapter.h"
#include "gom-filter.h"
#include "gom-resource-group.h"

G_BEGIN_DECLS

#define GOM_TYPE_REPOSITORY            (gom_repository_get_type())
#define GOM_REPOSITORY(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GOM_TYPE_REPOSITORY, GomRepository))
#define GOM_REPOSITORY_CONST(obj)      (G_TYPE_CHECK_INSTANCE_CAST ((obj), GOM_TYPE_REPOSITORY, GomRepository const))
#define GOM_REPOSITORY_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass),  GOM_TYPE_REPOSITORY, GomRepositoryClass))
#define GOM_IS_REPOSITORY(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GOM_TYPE_REPOSITORY))
#define GOM_IS_REPOSITORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),  GOM_TYPE_REPOSITORY))
#define GOM_REPOSITORY_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj),  GOM_TYPE_REPOSITORY, GomRepositoryClass))

typedef struct _GomRepository        GomRepository;
typedef struct _GomRepositoryClass   GomRepositoryClass;
typedef struct _GomRepositoryPrivate GomRepositoryPrivate;

typedef gboolean (*GomRepositoryMigrator) (GomRepository  *repository,
                                           GomAdapter     *adapter,
                                           guint           version,
                                           gpointer        user_data,
                                           GError        **error);


struct _GomRepository
{
   GObject parent;

   /*< private >*/
   GomRepositoryPrivate *priv;
};

struct _GomRepositoryClass
{
   GObjectClass parent_class;
};

GomAdapter       *gom_repository_get_adapter     (GomRepository          *repository);
GType             gom_repository_get_type        (void) G_GNUC_CONST;
GomRepository    *gom_repository_new             (GomAdapter             *adapter);
gboolean          gom_repository_migrate_sync    (GomRepository          *repository,
                                                  guint                   version,
                                                  GomRepositoryMigrator   migrator,
                                                  gpointer                migrator_data,
                                                  GError                **error);
void              gom_repository_migrate_async   (GomRepository          *repository,
                                                  guint                   version,
                                                  GomRepositoryMigrator   migrator,
                                                  gpointer                migrator_data,
                                                  GAsyncReadyCallback     callback,
                                                  gpointer                user_data);
gboolean          gom_repository_migrate_finish  (GomRepository          *repository,
                                                  GAsyncResult           *result,
                                                  GError                **error);

gboolean          gom_repository_automatic_migrate_sync   (GomRepository         *repository,
                                                           guint                  version,
                                                           GList                 *object_types,
                                                           GError               **error);
void              gom_repository_automatic_migrate_async  (GomRepository         *repository,
                                                           guint                  version,
                                                           GList                 *object_types,
                                                           GAsyncReadyCallback    callback,
                                                           gpointer               user_data);
gboolean          gom_repository_automatic_migrate_finish (GomRepository         *repository,
                                                           GAsyncResult          *result,
                                                           GError               **error);

GomResource      *gom_repository_find_one_sync   (GomRepository          *repository,
                                                  GType                   resource_type,
                                                  GomFilter              *filter,
                                                  GError                **error);
void              gom_repository_find_one_async  (GomRepository          *repository,
                                                  GType                   resource_type,
                                                  GomFilter              *filter,
                                                  GAsyncReadyCallback     callback,
                                                  gpointer                user_data);
GomResource      *gom_repository_find_one_finish (GomRepository          *repository,
                                                  GAsyncResult           *result,
                                                  GError                **error);
GomResourceGroup *gom_repository_find_sync       (GomRepository          *repository,
                                                  GType                   resource_type,
                                                  GomFilter              *filter,
                                                  GError                **error);
void              gom_repository_find_async      (GomRepository          *repository,
                                                  GType                   resource_type,
                                                  GomFilter              *filter,
                                                  GAsyncReadyCallback     callback,
                                                  gpointer                user_data);
GomResourceGroup *gom_repository_find_finish     (GomRepository          *repository,
                                                  GAsyncResult           *result,
                                                  GError                **error);

G_END_DECLS

#endif /* GOM_REPOSITORY_H */