[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] branch master updated: force include of taler_util.h, n
From: |
gnunet |
Subject: |
[taler-exchange] branch master updated: force include of taler_util.h, not of taler_crypto_lib.h or taler_amount_lib.h |
Date: |
Mon, 05 Dec 2022 14:03:46 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new 9e4ac84b force include of taler_util.h, not of taler_crypto_lib.h or
taler_amount_lib.h
9e4ac84b is described below
commit 9e4ac84b6eed7cc622d041c396bc460ce7e1bf07
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Dec 5 14:03:43 2022 +0100
force include of taler_util.h, not of taler_crypto_lib.h or
taler_amount_lib.h
---
contrib/sigp/h.header | 5 ++---
src/exchange/taler-exchange-httpd.h | 2 +-
src/include/taler_amount_lib.h | 4 ++++
src/include/taler_auditordb_plugin.h | 1 +
src/include/taler_crypto_lib.h | 4 ++++
src/include/taler_extensions.h | 2 +-
src/include/taler_extensions_policy.h | 2 +-
src/include/taler_util.h | 4 ++++
src/kyclogic/taler-exchange-kyc-tester.c | 2 +-
src/lib/exchange_api_handle.h | 2 +-
src/lib/exchange_api_management_get_keys.c | 2 +-
src/sq/sq_result_helper.c | 2 +-
12 files changed, 22 insertions(+), 10 deletions(-)
diff --git a/contrib/sigp/h.header b/contrib/sigp/h.header
index a0e3c6ae..6ed22a63 100644
--- a/contrib/sigp/h.header
+++ b/contrib/sigp/h.header
@@ -27,6 +27,5 @@
#ifndef TALER_SIGNATURES_H
#define TALER_SIGNATURES_H
-#include <gnunet/gnunet_util_lib.h>
-#include "taler_amount_lib.h"
-#include "taler_crypto_lib.h"
+
+
diff --git a/src/exchange/taler-exchange-httpd.h
b/src/exchange/taler-exchange-httpd.h
index 4d3fb490..67b8e75d 100644
--- a/src/exchange/taler-exchange-httpd.h
+++ b/src/exchange/taler-exchange-httpd.h
@@ -25,7 +25,7 @@
#include <microhttpd.h>
#include "taler_json_lib.h"
-#include "taler_crypto_lib.h"
+#include "taler_util.h"
#include "taler_kyclogic_plugin.h"
#include "taler_extensions.h"
#include <gnunet/gnunet_mhd_compat.h>
diff --git a/src/include/taler_amount_lib.h b/src/include/taler_amount_lib.h
index a529cfb8..04aa0004 100644
--- a/src/include/taler_amount_lib.h
+++ b/src/include/taler_amount_lib.h
@@ -18,6 +18,10 @@
* @brief amount-representation utility functions
* @author Sree Harsha Totakura <sreeharsha@totakura.in>
*/
+#if ! defined (__TALER_UTIL_LIB_H_INSIDE__)
+#error "Only <taler_util.h> can be included directly."
+#endif
+
#ifndef TALER_AMOUNT_LIB_H
#define TALER_AMOUNT_LIB_H
diff --git a/src/include/taler_auditordb_plugin.h
b/src/include/taler_auditordb_plugin.h
index cf27668b..99b5e7f3 100644
--- a/src/include/taler_auditordb_plugin.h
+++ b/src/include/taler_auditordb_plugin.h
@@ -25,6 +25,7 @@
#include <jansson.h>
#include <gnunet/gnunet_util_lib.h>
#include <gnunet/gnunet_db_lib.h>
+#include "taler_util.h"
#include "taler_auditordb_lib.h"
#include "taler_signatures.h"
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h
index 631883f4..4fdda39e 100644
--- a/src/include/taler_crypto_lib.h
+++ b/src/include/taler_crypto_lib.h
@@ -19,6 +19,10 @@
* @author Sree Harsha Totakura <sreeharsha@totakura.in>
* @author Christian Grothoff <christian@grothoff.org>
*/
+#if ! defined (__TALER_UTIL_LIB_H_INSIDE__)
+#error "Only <taler_util.h> can be included directly."
+#endif
+
#ifndef TALER_CRYPTO_LIB_H
#define TALER_CRYPTO_LIB_H
diff --git a/src/include/taler_extensions.h b/src/include/taler_extensions.h
index a37a7461..fedc17d9 100644
--- a/src/include/taler_extensions.h
+++ b/src/include/taler_extensions.h
@@ -22,7 +22,7 @@
#define TALER_EXTENSIONS_H
#include <gnunet/gnunet_util_lib.h>
-#include "taler_crypto_lib.h"
+#include "taler_util.h"
#include "taler_json_lib.h"
#include "taler_mhd_lib.h"
#include "taler_extensions_policy.h"
diff --git a/src/include/taler_extensions_policy.h
b/src/include/taler_extensions_policy.h
index 1072e214..ecb4e262 100644
--- a/src/include/taler_extensions_policy.h
+++ b/src/include/taler_extensions_policy.h
@@ -22,7 +22,7 @@
#define TALER_EXTENSIONS_POLICY_H
#include <gnunet/gnunet_util_lib.h>
-#include "taler_crypto_lib.h"
+#include "taler_util.h"
#include "taler_json_lib.h"
#include "taler_mhd_lib.h"
diff --git a/src/include/taler_util.h b/src/include/taler_util.h
index 1580f3dc..5776d62c 100644
--- a/src/include/taler_util.h
+++ b/src/include/taler_util.h
@@ -21,6 +21,8 @@
#ifndef TALER_UTIL_H
#define TALER_UTIL_H
+#define __TALER_UTIL_LIB_H_INSIDE__
+
#include <gnunet/gnunet_util_lib.h>
#include <microhttpd.h>
#include "taler_amount_lib.h"
@@ -551,4 +553,6 @@ enum GNUNET_GenericReturnValue
TALER_JSON_parse_age_groups (const json_t *root,
struct TALER_AgeMask *mask);
+#undef __TALER_UTIL_LIB_H_INSIDE__
+
#endif
diff --git a/src/kyclogic/taler-exchange-kyc-tester.c
b/src/kyclogic/taler-exchange-kyc-tester.c
index 2aed8d96..1b609499 100644
--- a/src/kyclogic/taler-exchange-kyc-tester.c
+++ b/src/kyclogic/taler-exchange-kyc-tester.c
@@ -28,7 +28,7 @@
#include "taler_mhd_lib.h"
#include "taler_json_lib.h"
#include "taler_templating_lib.h"
-#include "taler_crypto_lib.h"
+#include "taler_util.h"
#include "taler_kyclogic_lib.h"
#include "taler_kyclogic_plugin.h"
#include <gnunet/gnunet_mhd_compat.h>
diff --git a/src/lib/exchange_api_handle.h b/src/lib/exchange_api_handle.h
index 7ef88489..3b1d875f 100644
--- a/src/lib/exchange_api_handle.h
+++ b/src/lib/exchange_api_handle.h
@@ -25,7 +25,7 @@
#include <gnunet/gnunet_curl_lib.h>
#include "taler_auditor_service.h"
#include "taler_exchange_service.h"
-#include "taler_crypto_lib.h"
+#include "taler_util.h"
#include "taler_curl_lib.h"
/**
diff --git a/src/lib/exchange_api_management_get_keys.c
b/src/lib/exchange_api_management_get_keys.c
index 8a279d1e..80c47144 100644
--- a/src/lib/exchange_api_management_get_keys.c
+++ b/src/lib/exchange_api_management_get_keys.c
@@ -26,7 +26,7 @@
#include "exchange_api_curl_defaults.h"
#include "taler_signatures.h"
#include "taler_curl_lib.h"
-#include "taler_crypto_lib.h"
+#include "taler_util.h"
#include "taler_json_lib.h"
/**
diff --git a/src/sq/sq_result_helper.c b/src/sq/sq_result_helper.c
index bacb7743..9d80837b 100644
--- a/src/sq/sq_result_helper.c
+++ b/src/sq/sq_result_helper.c
@@ -23,7 +23,7 @@
#include <gnunet/gnunet_util_lib.h>
#include <gnunet/gnunet_sq_lib.h>
#include "taler_sq_lib.h"
-#include "taler_amount_lib.h"
+#include "taler_util.h"
/**
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: force include of taler_util.h, not of taler_crypto_lib.h or taler_amount_lib.h,
gnunet <=