summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2015-10-27 21:58:14 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2015-10-27 21:58:14 +0100
commit2fbdccc8dc18157e2df7486e4ecedee343c81d8d (patch)
treeba68748eb06f2f8b44afc96a96454d84101e5c59 /src/include
parentb3c7ea82a6a1ade4a310a6958c232207560d4c1a (diff)
downloadmerchant-2fbdccc8dc18157e2df7486e4ecedee343c81d8d.tar.gz
merchant-2fbdccc8dc18157e2df7486e4ecedee343c81d8d.tar.bz2
merchant-2fbdccc8dc18157e2df7486e4ecedee343c81d8d.zip
Adding context event loop, plus some code cleaning
Diffstat (limited to 'src/include')
-rw-r--r--src/include/merchant.h49
1 files changed, 6 insertions, 43 deletions
diff --git a/src/include/merchant.h b/src/include/merchant.h
index dcd4388e..e207b4e3 100644
--- a/src/include/merchant.h
+++ b/src/include/merchant.h
@@ -25,6 +25,7 @@
#include <gnunet/gnunet_common.h>
#include <gnunet/gnunet_crypto_lib.h>
+#include <taler/taler_mint_service.h>
/**
* Macro to round microseconds to seconds in GNUNET_TIME_* structs.
@@ -42,7 +43,8 @@
/**
* A mint
*/
-struct MERCHANT_MintInfo {
+struct MERCHANT_Mint
+{
/**
* Hostname
*/
@@ -58,50 +60,11 @@ struct MERCHANT_MintInfo {
*/
uint16_t port;
- /* According to the mint's location, some of the following
- fields may be omitted. In case of numbers, they will be set
- to zero, otherwise SET TO nuLL */
-
- /**
- * The Country where the mint operates from
- */
- char *country;
-
- /**
- * The city where the mint operates from
- */
- char *city;
-
- /**
- * The State (within a Country) where the mint
- * operates from
- */
- char *state;
-
/**
- * The region where the mint operates from
+ * A connection to this mint
*/
- char *region;
+ struct TALER_MINT_Handle *conn;
- /**
- * The province where the mint operates from
- */
- char *province;
-
- /**
- * The ZIP code where the mint operates from
- */
- uint16_t zip_code;
-
- /**
- * The street's name where the mint operates from
- */
- char *street;
-
- /**
- * The street number where the mint operates from
- */
- uint16_t street_no;
};
@@ -116,7 +79,7 @@ struct MERCHANT_MintInfo {
*/
int
TALER_MERCHANT_parse_mints (const struct GNUNET_CONFIGURATION_Handle *cfg,
- struct MERCHANT_MintInfo **mints);
+ struct MERCHANT_Mint **mints);
GNUNET_NETWORK_STRUCT_BEGIN