diff options
author | Iván Ávalos <avalos@disroot.org> | 2023-05-08 21:19:23 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2023-05-08 21:19:23 -0600 |
commit | 90421ed05ded9e4460cb6fdca5c3e3b494737ece (patch) | |
tree | 0f40bf65d1983b8d5d1adba8af2b990a6e514386 /src/backenddb/pg_delete_instance_private_key.h | |
parent | 41719f3d9969eba8169deb4101b4c9213c20d3da (diff) |
Factor out delete_instance_private_key (shit job)
Diffstat (limited to 'src/backenddb/pg_delete_instance_private_key.h')
-rw-r--r-- | src/backenddb/pg_delete_instance_private_key.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/backenddb/pg_delete_instance_private_key.h b/src/backenddb/pg_delete_instance_private_key.h new file mode 100644 index 00000000..9a8b3be6 --- /dev/null +++ b/src/backenddb/pg_delete_instance_private_key.h @@ -0,0 +1,39 @@ +/* + This file is part of TALER + Copyright (C) 2022 Taler Systems SA + + TALER is free software; you can redistribute it and/or modify it under the + terms of the GNU General Public License as published by the Free Software + Foundation; either version 3, or (at your option) any later version. + + TALER is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with + TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> + */ +/** + * @file backenddb/pg_delete_instance_private_key.h + * @brief implementation of the delete_instance_private_key function for Postgres + * @author Christian Grothoff + */ +#ifndef PG_DELETE_INSTANCE_PRIVATE_KEY_H +#define PG_DELETE_INSTANCE_PRIVATE_KEY_H + +#include <taler/taler_util.h> +#include <taler/taler_json_lib.h> +#include "taler_merchantdb_plugin.h" + +/** + * Delete private key of an instance from our database. + * + * @param cls closure + * @param merchant_id identifier of the instance + * @return database result code + */ +enum GNUNET_DB_QueryStatus +TMH_PG_delete_instance_private_key (void *cls, + const char *merchant_id); + +#endif |