diff -r 057933050c42 -r 29d5002bd17f librazor/importer.c --- a/librazor/importer.c Fri Jun 20 15:10:34 2008 -0400 +++ b/librazor/importer.c Fri Jun 20 19:04:47 2008 -0400 @@ -54,6 +54,19 @@ } void +razor_importer_add_details(struct razor_importer *importer, + const char *summary, + const char *description, + const char *url, + const char *license) +{ + importer->package->summary = hashtable_tokenize(&importer->details_table, summary); + importer->package->description = hashtable_tokenize(&importer->details_table, description); + importer->package->url = hashtable_tokenize(&importer->details_table, url); + importer->package->license = hashtable_tokenize(&importer->details_table, license); +} + +void razor_importer_add_property(struct razor_importer *importer, const char *name, uint32_t flags, @@ -99,6 +112,10 @@ importer = zalloc(sizeof *importer); importer->set = razor_set_create(); hashtable_init(&importer->table, &importer->set->string_pool); + hashtable_init(&importer->details_table, + &importer->set->details_string_pool); + hashtable_init(&importer->file_table, + &importer->set->file_string_pool); return importer; }