createrepo_c library  0.9.1
C library for metadata manipulation
updateinfo.h
1 /* createrepo_c - Library of routines for manipulation with repodata
2  * Copyright (C) 2014 Tomas Mlcoch
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17  * USA.
18  */
19 
20 #ifndef __C_CREATEREPOLIB_UPDATEINFO_H__
21 #define __C_CREATEREPOLIB_UPDATEINFO_H__
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #include <glib.h>
28 #include "checksum.h"
29 
38 typedef struct {
39  gchar *name;
40  gchar *version;
41  gchar *release;
42  gchar *epoch;
43  gchar *arch;
44  gchar *src;
45  gchar *filename;
46  gchar *sum;
47  cr_ChecksumType sum_type;
48  gboolean reboot_suggested;
49 
50  GStringChunk *chunk;
52 
53 typedef struct {
54  gchar *shortname;
55  gchar *name;
56  GSList *packages;
57  GStringChunk *chunk;
59 
60 typedef struct {
61  gchar *href;
62  gchar *id;
63  gchar *type;
64  gchar *title;
65  GStringChunk *chunk;
67 
68 typedef struct {
69  gchar *from;
70  gchar *status;
71  gchar *type;
72  gchar *version;
73  gchar *id;
74  gchar *title;
75  gchar *issued_date;
76  gchar *updated_date;
77  gchar *rights;
78  gchar *release;
79  gchar *pushcount;
80  gchar *severity;
81  gchar *summary;
82  gchar *description;
83  gchar *solution;
85  GSList *references;
86  GSList *collections;
88  GStringChunk *chunk;
90 
91 typedef struct {
92  GSList *updates;
94 
95 /*
96  * cr_UpdateCollectionPackage
97  */
98 
100 cr_updatecollectionpackage_new(void);
101 
103 cr_updatecollectionpackage_copy(const cr_UpdateCollectionPackage *orig);
104 
105 void
106 cr_updatecollectionpackage_free(cr_UpdateCollectionPackage *pkg);
107 
108 /*
109  * cr_UpdateCollection
110  */
111 
113 cr_updatecollection_new(void);
114 
116 cr_updatecollection_copy(const cr_UpdateCollection *orig);
117 
118 void
119 cr_updatecollection_free(cr_UpdateCollection *collection);
120 
121 void
122 cr_updatecollection_append_package(cr_UpdateCollection *collection,
124 
125 /*
126  * cr_UpdateReference
127  */
128 
130 cr_updatereference_new(void);
131 
133 cr_updatereference_copy(const cr_UpdateReference *orig);
134 
135 void
136 cr_updatereference_free(cr_UpdateReference *ref);
137 
138 /*
139  * cr_UpdateRecord
140  */
141 
143 cr_updaterecord_new(void);
144 
146 cr_updaterecord_copy(const cr_UpdateRecord *orig);
147 
148 void
149 cr_updaterecord_free(cr_UpdateRecord *record);
150 
151 void
152 cr_updaterecord_append_reference(cr_UpdateRecord *record,
153  cr_UpdateReference *ref);
154 
155 void
156 cr_updaterecord_append_collection(cr_UpdateRecord *record,
157  cr_UpdateCollection *collection);
158 
159 /*
160  * cr_Updateinfo
161  */
162 
164 cr_updateinfo_new(void);
165 
166 void
167 cr_updateinfo_free(cr_UpdateInfo *uinfo);
168 
169 void
170 cr_updateinfo_apped_record(cr_UpdateInfo *uinfo, cr_UpdateRecord *record);
171 
174 #ifdef __cplusplus
175 }
176 #endif
177 
178 #endif /* __C_CREATEREPOLIB_UPDATEINFO_H__ */
gchar * from
Definition: updateinfo.h:69
cr_ChecksumType
Definition: checksum.h:43
gchar * pushcount
Definition: updateinfo.h:79
gchar * issued_date
Definition: updateinfo.h:75
GStringChunk * chunk
Definition: updateinfo.h:88
gchar * description
Definition: updateinfo.h:82
gchar * updated_date
Definition: updateinfo.h:76
GSList * references
Definition: updateinfo.h:85
GSList * collections
Definition: updateinfo.h:86
gchar * type
Definition: updateinfo.h:71
gchar * solution
Definition: updateinfo.h:83
gchar * status
Definition: updateinfo.h:70
gchar * version
Definition: updateinfo.h:72
gchar * release
Definition: updateinfo.h:78
gchar * severity
Definition: updateinfo.h:80
gchar * title
Definition: updateinfo.h:74
gchar * summary
Definition: updateinfo.h:81
gchar * rights
Definition: updateinfo.h:77
GSList * updates
Definition: updateinfo.h:92