diff options
Diffstat (limited to 'src/lib/include/gnunet_crypto_dbus_lib_pop.h')
-rw-r--r-- | src/lib/include/gnunet_crypto_dbus_lib_pop.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/lib/include/gnunet_crypto_dbus_lib_pop.h b/src/lib/include/gnunet_crypto_dbus_lib_pop.h new file mode 100644 index 0000000..7fe086a --- /dev/null +++ b/src/lib/include/gnunet_crypto_dbus_lib_pop.h | |||
@@ -0,0 +1,33 @@ | |||
1 | #ifndef GNUNET_CRYPTO_DBUS_LIB_POP_H | ||
2 | #define GNUNET_CRYPTO_DBUS_LIB_POP_H | ||
3 | |||
4 | #include <gnunet/platform.h> | ||
5 | #include <gnunet/gnunet_common.h> | ||
6 | #include <gnunet/gnunet_crypto_lib.h> | ||
7 | |||
8 | /** | ||
9 | * Pop a GNUNET_CRYPT_EcdsaPublicKey off of a DBusMessage, moving the iterator. | ||
10 | * `arg_name` is used for reporting useful diagnostics if the value in the | ||
11 | * message is missing or the wrong type. | ||
12 | */ | ||
13 | DBusMessage * | ||
14 | GNUNET_CRYPTO_DBUS_pop_ecdsa_public_key ( | ||
15 | DBusMessage *message, | ||
16 | DBusMessageIter *iter, | ||
17 | const char *arg_name, | ||
18 | struct GNUNET_CRYPTO_EcdsaPublicKey *value); | ||
19 | |||
20 | /** | ||
21 | * Pop a GNUNET_CRYPTO_EddsaPublicKey off a DBusMessage, moving the iterator. | ||
22 | * `arg_name` is used for reporting useful diagnostics if the value in the | ||
23 | * message is missing or the wrong type. | ||
24 | */ | ||
25 | DBusMessage * | ||
26 | GNUNET_CRYPTO_DBUS_pop_eddsa_public_key ( | ||
27 | DBusMessage *message, | ||
28 | DBusMessageIter *iter, | ||
29 | const char *arg_name, | ||
30 | struct GNUNET_CRYPTO_EddsaPublicKey *value); | ||
31 | |||
32 | #endif | ||
33 | |||