diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-16 16:03:20 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-16 16:03:20 +0000 |
commit | 16a6919a9f98ee9fa1fee9dd262906c321004a19 (patch) | |
tree | e09d4fe5191dc329b3e1b667f2914f8313bcba59 /src/include/gnunet_datacache_lib.h | |
parent | 4d7904c62bb867c44e90b8e9f7cdbb4b283abc44 (diff) | |
download | gnunet-16a6919a9f98ee9fa1fee9dd262906c321004a19.tar.gz gnunet-16a6919a9f98ee9fa1fee9dd262906c321004a19.zip |
even nicer indentation, thanks to LRN's indent patch
Diffstat (limited to 'src/include/gnunet_datacache_lib.h')
-rw-r--r-- | src/include/gnunet_datacache_lib.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/include/gnunet_datacache_lib.h b/src/include/gnunet_datacache_lib.h index 46d22d5ec..84cb4d600 100644 --- a/src/include/gnunet_datacache_lib.h +++ b/src/include/gnunet_datacache_lib.h | |||
@@ -56,10 +56,9 @@ struct GNUNET_DATACACHE_Handle; | |||
56 | * @param section section in the configuration that contains our options | 56 | * @param section section in the configuration that contains our options |
57 | * @return handle to use to access the service | 57 | * @return handle to use to access the service |
58 | */ | 58 | */ |
59 | struct GNUNET_DATACACHE_Handle *GNUNET_DATACACHE_create (const struct | 59 | struct GNUNET_DATACACHE_Handle * |
60 | GNUNET_CONFIGURATION_Handle | 60 | GNUNET_DATACACHE_create (const struct GNUNET_CONFIGURATION_Handle *cfg, |
61 | *cfg, | 61 | const char *section); |
62 | const char *section); | ||
63 | 62 | ||
64 | 63 | ||
65 | /** | 64 | /** |
@@ -67,7 +66,8 @@ struct GNUNET_DATACACHE_Handle *GNUNET_DATACACHE_create (const struct | |||
67 | * | 66 | * |
68 | * @param h handle to the datastore | 67 | * @param h handle to the datastore |
69 | */ | 68 | */ |
70 | void GNUNET_DATACACHE_destroy (struct GNUNET_DATACACHE_Handle *h); | 69 | void |
70 | GNUNET_DATACACHE_destroy (struct GNUNET_DATACACHE_Handle *h); | ||
71 | 71 | ||
72 | 72 | ||
73 | /** | 73 | /** |
@@ -99,10 +99,11 @@ typedef int (*GNUNET_DATACACHE_Iterator) (void *cls, | |||
99 | * @param discard_time when to discard the value in any case | 99 | * @param discard_time when to discard the value in any case |
100 | * @return GNUNET_OK on success, GNUNET_SYSERR on error (full, etc.) | 100 | * @return GNUNET_OK on success, GNUNET_SYSERR on error (full, etc.) |
101 | */ | 101 | */ |
102 | int GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h, | 102 | int |
103 | const GNUNET_HashCode * key, size_t size, | 103 | GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h, |
104 | const char *data, enum GNUNET_BLOCK_Type type, | 104 | const GNUNET_HashCode * key, size_t size, |
105 | struct GNUNET_TIME_Absolute discard_time); | 105 | const char *data, enum GNUNET_BLOCK_Type type, |
106 | struct GNUNET_TIME_Absolute discard_time); | ||
106 | 107 | ||
107 | 108 | ||
108 | /** | 109 | /** |
@@ -116,11 +117,10 @@ int GNUNET_DATACACHE_put (struct GNUNET_DATACACHE_Handle *h, | |||
116 | * @param iter_cls closure for iter | 117 | * @param iter_cls closure for iter |
117 | * @return the number of results found | 118 | * @return the number of results found |
118 | */ | 119 | */ |
119 | unsigned int GNUNET_DATACACHE_get (struct GNUNET_DATACACHE_Handle *h, | 120 | unsigned int |
120 | const GNUNET_HashCode * key, | 121 | GNUNET_DATACACHE_get (struct GNUNET_DATACACHE_Handle *h, |
121 | enum GNUNET_BLOCK_Type type, | 122 | const GNUNET_HashCode * key, enum GNUNET_BLOCK_Type type, |
122 | GNUNET_DATACACHE_Iterator iter, | 123 | GNUNET_DATACACHE_Iterator iter, void *iter_cls); |
123 | void *iter_cls); | ||
124 | 124 | ||
125 | 125 | ||
126 | #if 0 /* keep Emacsens' auto-indent happy */ | 126 | #if 0 /* keep Emacsens' auto-indent happy */ |