27
27
28
28
#include <glib-object.h>
29
29
#include "as-component-box.h"
30
+ #include "as-macros-private.h"
30
31
31
32
G_BEGIN_DECLS
32
33
33
34
#define AS_TYPE_CACHE (as_cache_get_type ())
35
+ AS_INTERNAL_API
34
36
G_DECLARE_DERIVABLE_TYPE (AsCache , as_cache , AS , CACHE , GObject )
35
37
36
38
struct _AsCacheClass {
@@ -89,26 +91,37 @@ typedef enum {
89
91
} AsCacheError ;
90
92
91
93
#define AS_CACHE_ERROR as_cache_error_quark ()
94
+ AS_INTERNAL_API
92
95
GQuark as_cache_error_quark (void );
93
96
97
+ AS_INTERNAL_API
94
98
AsCache * as_cache_new (void );
95
99
100
+ AS_INTERNAL_API
96
101
const gchar * as_cache_get_locale (AsCache * cache );
102
+ AS_INTERNAL_API
97
103
void as_cache_set_locale (AsCache * cache , const gchar * locale );
98
104
105
+ AS_INTERNAL_API
99
106
void as_cache_set_locations (AsCache * cache ,
100
107
const gchar * system_cache_dir ,
101
108
const gchar * user_cache_dir );
102
109
110
+ AS_INTERNAL_API
103
111
gboolean as_cache_get_prefer_os_metainfo (AsCache * cache );
112
+ AS_INTERNAL_API
104
113
void as_cache_set_prefer_os_metainfo (AsCache * cache , gboolean prefer_os_metainfo );
105
114
115
+ AS_INTERNAL_API
106
116
void as_cache_set_resolve_addons (AsCache * cache , gboolean resolve_addons );
107
117
118
+ AS_INTERNAL_API
108
119
void as_cache_prune_data (AsCache * cache );
109
120
121
+ AS_INTERNAL_API
110
122
void as_cache_clear (AsCache * cache );
111
123
124
+ AS_INTERNAL_API
112
125
gboolean as_cache_set_contents_for_section (AsCache * cache ,
113
126
AsComponentScope scope ,
114
127
AsFormatStyle source_format_style ,
@@ -117,69 +130,87 @@ gboolean as_cache_set_contents_for_section (AsCache *cache,
117
130
const gchar * cache_key ,
118
131
gpointer refinefn_user_data ,
119
132
GError * * error );
133
+ AS_INTERNAL_API
120
134
gboolean as_cache_set_contents_for_path (AsCache * cache ,
121
135
GPtrArray * cpts ,
122
136
const gchar * filename ,
123
137
gpointer refinefn_user_data ,
124
138
GError * * error );
125
139
140
+ AS_INTERNAL_API
126
141
time_t as_cache_get_ctime (AsCache * cache ,
127
142
AsComponentScope scope ,
128
143
const gchar * cache_key ,
129
144
AsCacheScope * cache_scope );
130
145
146
+ AS_INTERNAL_API
131
147
void as_cache_load_section_for_key (AsCache * cache ,
132
148
AsComponentScope scope ,
133
149
AsFormatStyle source_format_style ,
134
150
gboolean is_os_data ,
135
151
const gchar * cache_key ,
136
152
gboolean * is_outdated ,
137
153
gpointer refinefn_user_data );
154
+ AS_INTERNAL_API
138
155
void as_cache_load_section_for_path (AsCache * cache ,
139
156
const gchar * filename ,
140
157
gboolean * is_outdated ,
141
158
gpointer refinefn_user_data );
142
159
160
+ AS_INTERNAL_API
143
161
void as_cache_mask_by_data_id (AsCache * cache , const gchar * cdid );
162
+ AS_INTERNAL_API
144
163
gboolean as_cache_add_masking_components (AsCache * cache , GPtrArray * cpts , GError * * error );
145
164
165
+ AS_INTERNAL_API
146
166
void as_cache_set_refine_func (AsCache * cache , AsCacheDataRefineFn func );
147
167
168
+ AS_INTERNAL_API
148
169
gboolean as_cache_is_empty (AsCache * cache );
170
+ AS_INTERNAL_API
149
171
guint as_cache_get_component_count (AsCache * cache );
150
172
173
+ AS_INTERNAL_API
151
174
AsComponentBox * as_cache_get_components_all (AsCache * cache , GError * * error );
152
175
176
+ AS_INTERNAL_API
153
177
AsComponentBox * as_cache_get_components_by_id (AsCache * cache , const gchar * id , GError * * error );
154
178
179
+ AS_INTERNAL_API
155
180
AsComponentBox * as_cache_get_components_by_extends (AsCache * cache ,
156
181
const gchar * extends_id ,
157
182
GError * * error );
158
183
184
+ AS_INTERNAL_API
159
185
AsComponentBox * as_cache_get_components_by_kind (AsCache * cache ,
160
186
AsComponentKind kind ,
161
187
GError * * error );
162
188
189
+ AS_INTERNAL_API
163
190
AsComponentBox * as_cache_get_components_by_provided_item (AsCache * cache ,
164
191
AsProvidedKind kind ,
165
192
const gchar * item ,
166
193
GError * * error );
167
194
195
+ AS_INTERNAL_API
168
196
AsComponentBox * as_cache_get_components_by_categories (AsCache * cache ,
169
197
gchar * * categories ,
170
198
GError * * error );
171
199
200
+ AS_INTERNAL_API
172
201
AsComponentBox * as_cache_get_components_by_launchable (AsCache * cache ,
173
202
AsLaunchableKind kind ,
174
203
const gchar * id ,
175
204
GError * * error );
176
205
206
+ AS_INTERNAL_API
177
207
AsComponentBox * as_cache_get_components_by_bundle_id (AsCache * cache ,
178
208
AsBundleKind kind ,
179
209
const gchar * id ,
180
210
gboolean match_prefix ,
181
211
GError * * error );
182
212
213
+ AS_INTERNAL_API
183
214
AsComponentBox * as_cache_search (AsCache * cache ,
184
215
const gchar * const * terms ,
185
216
gboolean sort ,
0 commit comments