aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_peerstore_service.h
diff options
context:
space:
mode:
authorOmar Tarabai <tarabai@devegypt.com>2014-05-05 17:49:52 +0000
committerOmar Tarabai <tarabai@devegypt.com>2014-05-05 17:49:52 +0000
commit2905ca535539de209dbde292e876e2995bb0c160 (patch)
tree1494346b5e0ee3ecc6b9d8dc42fad30e7efbe9ad /src/include/gnunet_peerstore_service.h
parented35aa248e65f947ea436528c3861644dca381da (diff)
downloadgnunet-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.h26
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 */
43struct GNUNET_PEERSTORE_Handle;
44
45/**
46 * Context for add requests
47 */
48struct 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 */
56typedef 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 */
65typedef 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{