This file is indexed.

/usr/include/Limba/li-pkg-info.h is in liblimba-dev 0.5.6-2.

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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
 *
 * Copyright (C) 2014-2016 Matthias Klumpp <matthias@tenstral.net>
 *
 * Licensed under the GNU Lesser General Public License Version 2.1
 *
 * This library 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 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 Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this library.  If not, see <http://www.gnu.org/licenses/>.
 */

#if !defined (__LIMBA_H) && !defined (LI_COMPILATION)
#error "Only <limba.h> can be included directly."
#endif

#ifndef __LI_PKG_INFO_H
#define __LI_PKG_INFO_H

#include <glib-object.h>
#include <gio/gio.h>

G_BEGIN_DECLS

#define LI_TYPE_PKG_INFO (li_pkg_info_get_type ())
G_DECLARE_DERIVABLE_TYPE (LiPkgInfo, li_pkg_info, LI, PKG_INFO, GObject)

struct _LiPkgInfoClass
{
	GObjectClass	parent_class;
	/*< private >*/
	void (*_as_reserved1)	(void);
	void (*_as_reserved2)	(void);
	void (*_as_reserved3)	(void);
	void (*_as_reserved4)	(void);
	void (*_as_reserved5)	(void);
	void (*_as_reserved6)	(void);
	void (*_as_reserved7)	(void);
	void (*_as_reserved8)	(void);
};

/**
 * LiVersionFlags:
 * @LI_VERSION_UNKNOWN:	The relation is unknown
 * @LI_VERSION_EQUAL:	Versions should be equal
 * @LI_VERSION_LOWER:	The other version must be lower
 * @LI_VERSION_HIGHER:	The other version must be higher
 *
 * Flags defining version requirements on other #LiPkgInfo instances.
 **/
typedef enum  {
	LI_VERSION_UNKNOWN = 0,
	LI_VERSION_EQUAL = 1 << 0,
	LI_VERSION_LOWER = 1 << 1,
	LI_VERSION_HIGHER = 1 << 2
} LiVersionFlags;

/**
 * LiPackageFlags:
 * @LI_PACKAGE_FLAG_NONE:		No package flag is set
 * @LI_PACKAGE_FLAG_APPLICATION:	This package needs a runtime
 * @LI_PACKAGE_FLAG_AUTOMATIC:		This package has been installed automatically
 * @LI_PACKAGE_FLAG_FADED:		Remove this package automatically, if it is no longer in use
 * @LI_PACKAGE_FLAG_AVAILABLE:		Package is available in a repository
 * @LI_PACKAGE_FLAG_INSTALLED:		Package is installed
 *
 * Flags defining version requirements on other #LiPkgInfo instances.
 **/
typedef enum  {
	LI_PACKAGE_FLAG_NONE = 0,
	LI_PACKAGE_FLAG_APPLICATION = 1 << 0,
	LI_PACKAGE_FLAG_AUTOMATIC = 1 << 1,
	LI_PACKAGE_FLAG_FADED = 1 << 2,
	LI_PACKAGE_FLAG_AVAILABLE = 1 << 3,
	LI_PACKAGE_FLAG_INSTALLED = 1 << 4,
} LiPackageFlags;

/**
 * LiPackageKind:
 * @LI_PACKAGE_KIND_UNKNOWN:		Unknown package type
 * @LI_PACKAGE_KIND_COMMON:		Standard Limba package
 * @LI_PACKAGE_KIND_DEVEL:		Development package (SDK)
 *
 * Type of the Limba package
 **/
typedef enum  {
	LI_PACKAGE_KIND_UNKNOWN,
	LI_PACKAGE_KIND_COMMON,
	LI_PACKAGE_KIND_DEVEL,
} LiPackageKind;

const gchar	*li_package_kind_to_string (LiPackageKind kind);
LiPackageKind	li_package_kind_from_string (const gchar *kind_str);


LiPkgInfo	*li_pkg_info_new	(void);

void		li_pkg_info_load_file (LiPkgInfo *pki,
					GFile *file,
					GError **error);
void 		li_pkg_info_load_data (LiPkgInfo *pki,
					const gchar *data);
gboolean	li_pkg_info_save_to_file (LiPkgInfo *pki,
					const gchar *filename);
gboolean	li_pkg_info_save_changes (LiPkgInfo *pki);

const gchar	*li_pkg_info_get_version (LiPkgInfo *pki);
void		li_pkg_info_set_version (LiPkgInfo *pki,
					const gchar *version);

const gchar	*li_pkg_info_get_name (LiPkgInfo *pki);
void		li_pkg_info_set_name (LiPkgInfo *pki,
					const gchar *name);

const gchar	*li_pkg_info_get_appname (LiPkgInfo *pki);
void		li_pkg_info_set_appname (LiPkgInfo *pki,
					const gchar *app_name);

const gchar	*li_pkg_info_get_runtime_dependency (LiPkgInfo *pki);
void		li_pkg_info_set_runtime_dependency (LiPkgInfo *pki,
					const gchar *uuid);

const gchar	*li_pkg_info_get_dependencies (LiPkgInfo *pki);
void		li_pkg_info_set_dependencies (LiPkgInfo *pki,
					const gchar *deps_string);

const gchar	*li_pkg_info_get_sdk_dependencies (LiPkgInfo *pki);
void		li_pkg_info_set_sdk_dependencies (LiPkgInfo *pki,
					const gchar *deps_string);

const gchar	*li_pkg_info_get_build_dependencies (LiPkgInfo *pki);
void		li_pkg_info_set_build_dependencies (LiPkgInfo *pki,
					const gchar *deps_string);

const gchar	*li_pkg_info_get_id (LiPkgInfo *pki);
void		li_pkg_info_set_id (LiPkgInfo *pki,
					const gchar *id);

const gchar	*li_pkg_info_get_checksum_sha256 (LiPkgInfo *pki);
void		li_pkg_info_set_checksum_sha256 (LiPkgInfo *pki,
					const gchar *hash);

LiPackageKind	li_pkg_info_get_kind (LiPkgInfo *pki);
void		li_pkg_info_set_kind (LiPkgInfo *pki,
					LiPackageKind kind);

const gchar	*li_pkg_info_get_component_kind (LiPkgInfo *pki);
void		li_pkg_info_set_component_kind (LiPkgInfo *pki,
					const gchar *kind);

void		li_pkg_info_set_flags (LiPkgInfo *pki,
					LiPackageFlags flags);
void		li_pkg_info_add_flag (LiPkgInfo *pki,
					LiPackageFlags flag);
gboolean	li_pkg_info_has_flag (LiPkgInfo *pki,
					LiPackageFlags flag);
LiPackageFlags	li_pkg_info_get_flags (LiPkgInfo *pki);

void		li_pkg_info_set_version_relation (LiPkgInfo *pki,
					LiVersionFlags vrel);
LiVersionFlags	li_pkg_info_get_version_relation (LiPkgInfo *pki);

const gchar	*li_pkg_info_get_architecture (LiPkgInfo *pki);
void		li_pkg_info_set_architecture (LiPkgInfo *pki,
					const gchar *arch);
gboolean	li_pkg_info_matches_current_arch (LiPkgInfo *pki);

const gchar	*li_pkg_info_get_repo_location (LiPkgInfo *pki);
void		li_pkg_info_set_repo_location (LiPkgInfo *pki,
					const gchar *location);

gchar		*li_pkg_info_get_name_relation_string (LiPkgInfo *pki);

gboolean	li_pkg_info_satisfies_requirement (LiPkgInfo *pki,
						LiPkgInfo *req);

const gchar	*li_pkg_info_get_abi_break_versions (LiPkgInfo *pki);
void		li_pkg_info_set_abi_break_versions (LiPkgInfo *pki,
					const gchar *versions);

G_END_DECLS

#endif /* __LI_PKG_INFO_H */