diff options
Diffstat (limited to 'src/include/taler_exchangedb_plugin.h')
| -rw-r--r-- | src/include/taler_exchangedb_plugin.h | 29 | 
1 files changed, 28 insertions, 1 deletions
| diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index ee691084..4aa80b67 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -4025,8 +4025,35 @@ struct TALER_EXCHANGEDB_Plugin    (*delete_shard_locks)(void *cls);    /** -   * TODO-oec: add function for adding extension config +   * Function called to save the configuration of an extension +   * (age-restriction, peer2peer, ...) +   * +   * @param cls the @e cls of this struct with the plugin-specific state +   * @param extension_name the name of the extension +   * @param config JSON object of the configuration as string +   * @param config_sig signature of the configuration by the offline master key +   * @return transaction status code     */ +  enum GNUNET_DB_QueryStatus +  (*set_extension_config)(void *cls, +                          const char *extension_name, +                          const char *config, +                          const struct TALER_MasterSignatureP *config_sig); + +  /** +   * Function called to retrieve the configuration of an extension +   * (age-restriction, peer2peer, ...) +   * +   * @param cls the @e cls of this struct with the plugin-specific state +   * @param extension_name the name of the extension +   * @param[out] config JSON object of the configuration as string +   * @param[out] config_sig signature of the configuration by the master key +   * @return transaction status code +   */ +  enum GNUNET_DB_QueryStatus +  (*get_extension_config)(void *cls, +                          const char *extension_name, +                          char **config);  }; | 
