refactor extensions: config -> manifest

This commit is contained in:
Özgür Kesim 2022-10-05 16:07:22 +02:00
parent 2524dfc8d3
commit fc83650115
Signed by: oec
GPG Key ID: 3D76A56D79EDD9D7
4 changed files with 11 additions and 9 deletions

View File

@ -4339,9 +4339,9 @@ do_extensions_sign (char *const *args)
"extensions_sig",
&sig));
GNUNET_log(GNUNET_ERROR_TYPE_INFO,
"DEBUG sending extensions object: '%s'\n",
json_dumps(obj, JSON_INDENT(2)));
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"DEBUG sending extensions object: '%s'\n",
json_dumps (obj, JSON_INDENT (2)));
output_operation (OP_EXTENSIONS,
obj);

View File

@ -1918,8 +1918,8 @@ create_krd (struct TEH_KeyStateHandle *ksh,
has_extensions = true;
manifest = extension->manifest(extension);
GNUNET_assert(manifest);
manifest = extension->manifest (extension);
GNUNET_assert (manifest);
r = json_object_set_new (
extensions,

View File

@ -15241,8 +15241,8 @@ postgres_set_extension_manifest (void *cls,
*/
enum GNUNET_DB_QueryStatus
postgres_get_extension_manifest (void *cls,
const char *extension_name,
char **manifest)
const char *extension_name,
char **manifest)
{
struct PostgresClosure *pg = cls;
struct GNUNET_PQ_QueryParam params[] = {

View File

@ -309,7 +309,9 @@ TALER_extensions_load_manifests (
int critical;
const char *version;
json_t *config;
struct TALER_Extension *extension = (struct TALER_Extension *)TALER_extensions_get_by_name (name);
struct TALER_Extension *extension = (struct
TALER_Extension *)
TALER_extensions_get_by_name (name);
if (NULL == extension)
{
@ -332,7 +334,7 @@ TALER_extensions_load_manifests (
/* This _should_ work now */
if (GNUNET_OK !=
extension->load_config ( extension, config))
extension->load_config (extension, config))
return GNUNET_SYSERR;
extension->enabled = true;