diff options
author | Omar Tarabai <tarabai@devegypt.com> | 2014-05-05 17:49:52 +0000 |
---|---|---|
committer | Omar Tarabai <tarabai@devegypt.com> | 2014-05-05 17:49:52 +0000 |
commit | 2905ca535539de209dbde292e876e2995bb0c160 (patch) | |
tree | 1494346b5e0ee3ecc6b9d8dc42fad30e7efbe9ad /src/include/gnunet_peerstore_service.h | |
parent | ed35aa248e65f947ea436528c3861644dca381da (diff) | |
download | gnunet-2905ca535539de209dbde292e876e2995bb0c160.tar.gz gnunet-2905ca535539de209dbde292e876e2995bb0c160.zip |
towards PEERSTORE api
Diffstat (limited to 'src/include/gnunet_peerstore_service.h')
-rw-r--r-- | src/include/gnunet_peerstore_service.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/include/gnunet_peerstore_service.h b/src/include/gnunet_peerstore_service.h index e8a05100b..91baa3c0f 100644 --- a/src/include/gnunet_peerstore_service.h +++ b/src/include/gnunet_peerstore_service.h | |||
@@ -37,6 +37,32 @@ extern "C" | |||
37 | #endif | 37 | #endif |
38 | #endif | 38 | #endif |
39 | 39 | ||
40 | /** | ||
41 | * Handle to the peerstore service. | ||
42 | */ | ||
43 | struct GNUNET_PEERSTORE_Handle; | ||
44 | |||
45 | /** | ||
46 | * Context for add requests | ||
47 | */ | ||
48 | struct GNUNET_PEERSTORE_AddContext; | ||
49 | |||
50 | /** | ||
51 | * Continuation called with a status result. | ||
52 | * | ||
53 | * @param cls closure | ||
54 | * @param emsg error message, NULL on success | ||
55 | */ | ||
56 | typedef void (*GNUNET_PEERSTORE_Continuation)(void *cls, | ||
57 | const char *emsg); | ||
58 | |||
59 | /** | ||
60 | * Continuation called after an Add is completed | ||
61 | * | ||
62 | * @param cls closure | ||
63 | * @param success #GNUNET_YES / #GNUNET_NO | ||
64 | */ | ||
65 | typedef void (*GNUNET_PEERSTORE_AddContinuation)(void *cls, int success); | ||
40 | 66 | ||
41 | #if 0 /* keep Emacsens' auto-indent happy */ | 67 | #if 0 /* keep Emacsens' auto-indent happy */ |
42 | { | 68 | { |