1.1 --- a/librazor/importer.c Fri Jun 20 23:13:09 2008 -0400
1.2 +++ b/librazor/importer.c Mon Jun 23 14:43:08 2008 -0400
1.3 @@ -54,6 +54,19 @@
1.4 }
1.5
1.6 void
1.7 +razor_importer_add_details(struct razor_importer *importer,
1.8 + const char *summary,
1.9 + const char *description,
1.10 + const char *url,
1.11 + const char *license)
1.12 +{
1.13 + importer->package->summary = hashtable_tokenize(&importer->details_table, summary);
1.14 + importer->package->description = hashtable_tokenize(&importer->details_table, description);
1.15 + importer->package->url = hashtable_tokenize(&importer->details_table, url);
1.16 + importer->package->license = hashtable_tokenize(&importer->details_table, license);
1.17 +}
1.18 +
1.19 +void
1.20 razor_importer_add_property(struct razor_importer *importer,
1.21 const char *name,
1.22 uint32_t flags,
1.23 @@ -99,6 +112,10 @@
1.24 importer = zalloc(sizeof *importer);
1.25 importer->set = razor_set_create();
1.26 hashtable_init(&importer->table, &importer->set->string_pool);
1.27 + hashtable_init(&importer->details_table,
1.28 + &importer->set->details_string_pool);
1.29 + hashtable_init(&importer->file_table,
1.30 + &importer->set->file_string_pool);
1.31
1.32 return importer;
1.33 }