This file is indexed.

/usr/include/fwupd-1/libfwupd/fwupd-result.h is in libfwupd-dev 0.7.4-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
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
 *
 * Copyright (C) 2015-2016 Richard Hughes <richard@hughsie.com>
 *
 * 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, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
 */

#ifndef __FWUPD_RESULT_H
#define __FWUPD_RESULT_H

#include <glib-object.h>

#include "fwupd-enums.h"

G_BEGIN_DECLS

#define FWUPD_TYPE_RESULT (fwupd_result_get_type ())
G_DECLARE_DERIVABLE_TYPE (FwupdResult, fwupd_result, FWUPD, RESULT, GObject)

struct _FwupdResultClass
{
	GObjectClass			 parent_class;
	/*< private >*/
	void (*_fwupd_reserved1)	(void);
	void (*_fwupd_reserved2)	(void);
	void (*_fwupd_reserved3)	(void);
	void (*_fwupd_reserved4)	(void);
	void (*_fwupd_reserved5)	(void);
	void (*_fwupd_reserved6)	(void);
	void (*_fwupd_reserved7)	(void);
};

FwupdResult	*fwupd_result_new			(void);
FwupdResult	*fwupd_result_new_from_data		(GVariant	*data);

/* matches */
void		 fwupd_result_add_guid			(FwupdResult	*result,
							 const gchar	*guid);
gboolean	 fwupd_result_has_guid			(FwupdResult	*result,
							 const gchar	*guid);
GPtrArray	*fwupd_result_get_guids			(FwupdResult	*result);
const gchar	*fwupd_result_get_guid_default		(FwupdResult	*result);

const gchar	*fwupd_result_get_unique_id		(FwupdResult	*result);
void		 fwupd_result_set_unique_id		(FwupdResult	*result,
							 const gchar	*unique_id);

/* device-specific */
const gchar	*fwupd_result_get_device_id		(FwupdResult	*result);
void		 fwupd_result_set_device_id		(FwupdResult	*result,
							 const gchar	*device_id);
const gchar	*fwupd_result_get_device_name		(FwupdResult	*result);
void		 fwupd_result_set_device_name		(FwupdResult	*result,
							 const gchar	*device_name);
const gchar	*fwupd_result_get_device_description	(FwupdResult	*result);
void		 fwupd_result_set_device_description	(FwupdResult	*result,
							 const gchar	*device_description);
const gchar	*fwupd_result_get_device_version	(FwupdResult	*result);
void		 fwupd_result_set_device_version	(FwupdResult	*result,
							 const gchar	*device_version);
const gchar	*fwupd_result_get_device_version_lowest	(FwupdResult	*result);
void		 fwupd_result_set_device_version_lowest	(FwupdResult	*result,
							 const gchar	*device_version_lowest);
guint32		 fwupd_result_get_device_flashes_left	(FwupdResult	*result);
void		 fwupd_result_set_device_flashes_left	(FwupdResult	*result,
							 guint32	flashes_left);
guint64		 fwupd_result_get_device_flags		(FwupdResult	*result);
void		 fwupd_result_set_device_flags		(FwupdResult	*result,
							 guint64	 device_flags);
void		 fwupd_result_add_device_flag		(FwupdResult	*result,
							 FwupdDeviceFlags flag);
void		 fwupd_result_remove_device_flag	(FwupdResult	*result,
							 FwupdDeviceFlags flag);
gboolean	 fwupd_result_has_device_flag		(FwupdResult	*result,
							 FwupdDeviceFlags flag);
guint64		 fwupd_result_get_device_created	(FwupdResult	*result);
void		 fwupd_result_set_device_created	(FwupdResult	*result,
							 guint64	 device_created);
guint64		 fwupd_result_get_device_modified	(FwupdResult	*result);
void		 fwupd_result_set_device_modified	(FwupdResult	*result,
							 guint64	 device_modified);
const gchar	*fwupd_result_get_device_checksum	(FwupdResult	*result);
void		 fwupd_result_set_device_checksum	(FwupdResult	*result,
							 const gchar	*device_checksum);
GChecksumType	 fwupd_result_get_device_checksum_kind	(FwupdResult	*result);
void		 fwupd_result_set_device_checksum_kind	(FwupdResult	*result,
							 GChecksumType	 checkum_kind);
const gchar	*fwupd_result_get_device_provider	(FwupdResult	*result);
void		 fwupd_result_set_device_provider	(FwupdResult	*result,
							 const gchar	*device_provider);
const gchar	*fwupd_result_get_device_vendor		(FwupdResult	*result);
void		 fwupd_result_set_device_vendor		(FwupdResult	*result,
							 const gchar	*device_vendor);

/* update-specific */
guint64		 fwupd_result_get_update_size		(FwupdResult	*result);
void		 fwupd_result_set_update_size		(FwupdResult	*result,
							 guint64	 update_size);
const gchar	*fwupd_result_get_update_version	(FwupdResult	*result);
void		 fwupd_result_set_update_version	(FwupdResult	*result,
							 const gchar	*update_version);
const gchar	*fwupd_result_get_update_filename	(FwupdResult	*result);
void		 fwupd_result_set_update_filename	(FwupdResult	*result,
							 const gchar	*update_filename);
FwupdUpdateState fwupd_result_get_update_state		(FwupdResult	*result);
void		 fwupd_result_set_update_state		(FwupdResult	*result,
							 FwupdUpdateState update_state);
const gchar	*fwupd_result_get_update_checksum	(FwupdResult	*result);
void		 fwupd_result_set_update_checksum	(FwupdResult	*result,
							 const gchar	*update_checksum);
GChecksumType	 fwupd_result_get_update_checksum_kind	(FwupdResult	*result);
void		 fwupd_result_set_update_checksum_kind	(FwupdResult	*result,
							 GChecksumType	 checkum_kind);
const gchar	*fwupd_result_get_update_uri		(FwupdResult	*result);
void		 fwupd_result_set_update_uri		(FwupdResult	*result,
							 const gchar	*update_uri);
const gchar	*fwupd_result_get_update_homepage	(FwupdResult	*result);
void		 fwupd_result_set_update_homepage	(FwupdResult	*result,
							 const gchar	*update_homepage);
const gchar	*fwupd_result_get_update_id		(FwupdResult	*result);
void		 fwupd_result_set_update_id		(FwupdResult	*result,
							 const gchar	*update_id);
const gchar	*fwupd_result_get_update_description	(FwupdResult	*result);
void		 fwupd_result_set_update_description	(FwupdResult	*result,
							 const gchar	*update_description);
const gchar	*fwupd_result_get_update_vendor		(FwupdResult	*result);
void		 fwupd_result_set_update_vendor		(FwupdResult	*result,
							 const gchar	*update_vendor);
const gchar	*fwupd_result_get_update_summary	(FwupdResult	*result);
void		 fwupd_result_set_update_summary	(FwupdResult	*result,
							 const gchar	*update_summary);
const gchar	*fwupd_result_get_update_error		(FwupdResult	*result);
void		 fwupd_result_set_update_error		(FwupdResult	*result,
							 const gchar	*update_error);
FwupdTrustFlags	 fwupd_result_get_update_trust_flags	(FwupdResult	*result);
void		 fwupd_result_set_update_trust_flags	(FwupdResult	*result,
							 FwupdTrustFlags trust_flags);
const gchar	*fwupd_result_get_update_license	(FwupdResult	*result);
void		 fwupd_result_set_update_license	(FwupdResult	*result,
							 const gchar	*update_license);
const gchar	*fwupd_result_get_update_name		(FwupdResult	*result);
void		 fwupd_result_set_update_name		(FwupdResult	*result,
							 const gchar	*update_name);

/* helpers */
GVariant	*fwupd_result_to_data			(FwupdResult	*result,
							 const gchar	*type_string);
gchar		*fwupd_result_to_string			(FwupdResult	*result);

/* deprecated */
G_DEPRECATED_FOR(fwupd_result_get_guids)
const gchar	*fwupd_result_get_guid			(FwupdResult	*result);
G_DEPRECATED_FOR(fwupd_result_add_guid)
void		 fwupd_result_set_guid			(FwupdResult	*result,
							 const gchar	*guid);

G_END_DECLS

#endif /* __FWUPD_RESULT_H */