we want the pkgId to be unique.
Key is pkgId and value is NULL. */
cr_ParsingState state;
+ gint64 pkgKey; /*!< basically order of the package */
} cr_CbData;
static int
return CR_CB_RET_OK;
}
+ ++cb_data->pkgKey;
+ pkg->pkgKey = cb_data->pkgKey;
+
return CR_CB_RET_OK;
}
cb_data.pkglist_ht = pkglist_ht;
cb_data.ignored_pkgIds = g_hash_table_new_full(g_str_hash, g_str_equal,
g_free, NULL);
+ cb_data.pkgKey = G_GINT64_CONSTANT(0);
cr_xml_parse_primary(primary_xml_path,
primary_newpkgcb,