json_object_set_new (sections_obj, section, sec_obj);
}
+
static void
add_section_contents (void *cls,
const char *section,
json_object_set_new (section_obj, option, json_string (value));
}
+
/**
* Handle rest request
*
json_decref (result);
}
+
struct GNUNET_CONFIGURATION_Handle *
set_value (struct GNUNET_CONFIGURATION_Handle *config,
const char *section,
return config; // for error handling (0 -> success, 1 -> error)
}
+
/**
* Handle REST POST request
*
cleanup_handle (handle);
}
+
/**
* Handle rest request
*
return NULL;
}
+
/* end of plugin_rest_config.c */