cr_updatecollectionpackage_new(void)
{
cr_UpdateCollectionPackage *pkg = g_malloc0(sizeof(*pkg));
+ pkg->chunk = g_string_chunk_new(0);
return pkg;
}
cr_updatecollection_new(void)
{
cr_UpdateCollection *collection = g_malloc0(sizeof(*collection));
+ collection->chunk = g_string_chunk_new(0);
return collection;
}
cr_updatereference_new(void)
{
cr_UpdateReference *ref = g_malloc0(sizeof(*ref));
+ ref->chunk = g_string_chunk_new(0);
return ref;
}
cr_updaterecord_new(void)
{
cr_UpdateRecord *rec = g_malloc0(sizeof(*rec));
+ rec->chunk = g_string_chunk_new(0);
return rec;
}
cr_UpdateCollection *collection)
{
if (!record || !collection) return;
- record->collections = g_slist_append(record->collections, record);
+ record->collections = g_slist_append(record->collections, collection);
}
} cr_UpdateCollection;
typedef struct {
- gchar *id; /*!< id (e.g. 1035288, NULL for errata, ...) */
gchar *href; /*!< URL (e.g. to related bugzilla, errata, ...) */
+ gchar *id; /*!< id (e.g. 1035288, NULL for errata, ...) */
gchar *type; /*!< reference type ("self" for errata, "bugzilla", ...) */
gchar *title; /*!< Name of errata, name of bug, etc. */
GStringChunk *chunk;
typedef struct {
gchar *from; /*!< Source of the update (e.g. security@redhat.com) */
- gchar *type; /*!< Update type ("enhancement", "bugfix", ...) */
- gchar *title; /*!< Update name */
gchar *status; /*!< Update status ("final", ...) */
+ gchar *type; /*!< Update type ("enhancement", "bugfix", ...) */
gchar *version; /*!< Update version (probably always an integer number) */
gchar *id; /*!< Update id (short update name, e.g. RHEA-2013:1777) */
+ gchar *title; /*!< Update name */
gchar *issued_date; /*!< Date string (e.g. "2013-12-02 00:00:00") */
gchar *updated_date;/*!< Date string */
gchar *rights; /*!< Copyright */
gchar *summary; /*!< Short summary */
gchar *description; /*!< Update description */
gchar *solution; /*!< Solution */
- gboolean *reboot_suggested;/*!< Reboot suggested */
GSList *references; /*!< List of cr_UpdateReference */
GSList *collections;/*!< List of cr_UpdateCollection */