aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_indexing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-service-fs_indexing.h')
-rw-r--r--src/fs/gnunet-service-fs_indexing.h45
1 files changed, 19 insertions, 26 deletions
diff --git a/src/fs/gnunet-service-fs_indexing.h b/src/fs/gnunet-service-fs_indexing.h
index c6ef53351..a5c8f6593 100644
--- a/src/fs/gnunet-service-fs_indexing.h
+++ b/src/fs/gnunet-service-fs_indexing.h
@@ -54,17 +54,14 @@
54 * @param cont_cls closure for cont 54 * @param cont_cls closure for cont
55 * @return GNUNET_OK on success 55 * @return GNUNET_OK on success
56 */ 56 */
57int 57int GNUNET_FS_handle_on_demand_block (const GNUNET_HashCode * key,
58GNUNET_FS_handle_on_demand_block (const GNUNET_HashCode * key, 58 uint32_t size, const void *data,
59 uint32_t size, 59 enum GNUNET_BLOCK_Type type,
60 const void *data, 60 uint32_t priority, uint32_t anonymity,
61 enum GNUNET_BLOCK_Type type, 61 struct GNUNET_TIME_Absolute expiration,
62 uint32_t priority, 62 uint64_t uid,
63 uint32_t anonymity, 63 GNUNET_DATASTORE_DatumProcessor cont,
64 struct GNUNET_TIME_Absolute 64 void *cont_cls);
65 expiration, uint64_t uid,
66 GNUNET_DATASTORE_DatumProcessor cont,
67 void *cont_cls);
68 65
69/** 66/**
70 * Handle INDEX_START-message. 67 * Handle INDEX_START-message.
@@ -73,10 +70,9 @@ GNUNET_FS_handle_on_demand_block (const GNUNET_HashCode * key,
73 * @param client identification of the client 70 * @param client identification of the client
74 * @param message the actual message 71 * @param message the actual message
75 */ 72 */
76void 73void GNUNET_FS_handle_index_start (void *cls,
77GNUNET_FS_handle_index_start (void *cls, 74 struct GNUNET_SERVER_Client *client,
78 struct GNUNET_SERVER_Client *client, 75 const struct GNUNET_MessageHeader *message);
79 const struct GNUNET_MessageHeader *message);
80 76
81 77
82/** 78/**
@@ -86,10 +82,10 @@ GNUNET_FS_handle_index_start (void *cls,
86 * @param client identification of the client 82 * @param client identification of the client
87 * @param message the actual message 83 * @param message the actual message
88 */ 84 */
89void 85void GNUNET_FS_handle_index_list_get (void *cls,
90GNUNET_FS_handle_index_list_get (void *cls, 86 struct GNUNET_SERVER_Client *client,
91 struct GNUNET_SERVER_Client *client, 87 const struct GNUNET_MessageHeader
92 const struct GNUNET_MessageHeader *message); 88 *message);
93 89
94 90
95/** 91/**
@@ -99,10 +95,8 @@ GNUNET_FS_handle_index_list_get (void *cls,
99 * @param client identification of the client 95 * @param client identification of the client
100 * @param message the actual message 96 * @param message the actual message
101 */ 97 */
102void 98void GNUNET_FS_handle_unindex (void *cls, struct GNUNET_SERVER_Client *client,
103GNUNET_FS_handle_unindex (void *cls, 99 const struct GNUNET_MessageHeader *message);
104 struct GNUNET_SERVER_Client *client,
105 const struct GNUNET_MessageHeader *message);
106 100
107 101
108/** 102/**
@@ -112,9 +106,8 @@ GNUNET_FS_handle_unindex (void *cls,
112 * @param d datastore to use 106 * @param d datastore to use
113 * @return GNUNET_OK on success 107 * @return GNUNET_OK on success
114 */ 108 */
115int 109int GNUNET_FS_indexing_init (const struct GNUNET_CONFIGURATION_Handle *c,
116GNUNET_FS_indexing_init (const struct GNUNET_CONFIGURATION_Handle *c, 110 struct GNUNET_DATASTORE_Handle *d);
117 struct GNUNET_DATASTORE_Handle *d);
118 111
119 112
120/** 113/**