Added possibility to register custom proposal keywords
Keyword lookup and registration are handled via the new lib->proposal object.
This commit is contained in:
@@ -73,6 +73,7 @@ void library_deinit()
|
||||
this->public.creds->destroy(this->public.creds);
|
||||
this->public.encoding->destroy(this->public.encoding);
|
||||
this->public.crypto->destroy(this->public.crypto);
|
||||
this->public.proposal->destroy(this->public.proposal);
|
||||
this->public.fetcher->destroy(this->public.fetcher);
|
||||
this->public.db->destroy(this->public.db);
|
||||
this->public.printf_hook->destroy(this->public.printf_hook);
|
||||
@@ -182,6 +183,7 @@ bool library_init(char *settings)
|
||||
this->objects = hashtable_create((hashtable_hash_t)hash,
|
||||
(hashtable_equals_t)equals, 4);
|
||||
this->public.settings = settings_create(settings);
|
||||
this->public.proposal = proposal_keywords_create();
|
||||
this->public.crypto = crypto_factory_create();
|
||||
this->public.creds = credential_factory_create();
|
||||
this->public.credmgr = credential_manager_create();
|
||||
|
||||
Reference in New Issue
Block a user