diff options
author | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-09-02 21:09:53 +0000 |
---|---|---|
committer | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-09-02 21:09:53 +0000 |
commit | de62048ab84c178fbf57682b6f9310904ff38964 (patch) | |
tree | 5cc573f309e15d42a8fced9146d0cb6348d0d687 /src/include/gnunet_scalarproduct_service.h | |
parent | 9f064f70f7aff38119ebf1b4345118cb61302f2d (diff) | |
download | gnunet-de62048ab84c178fbf57682b6f9310904ff38964.tar.gz gnunet-de62048ab84c178fbf57682b6f9310904ff38964.zip |
rewrote API minus cancel function
Diffstat (limited to 'src/include/gnunet_scalarproduct_service.h')
-rw-r--r-- | src/include/gnunet_scalarproduct_service.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/include/gnunet_scalarproduct_service.h b/src/include/gnunet_scalarproduct_service.h index 3aac679c4..4ad9f6c62 100644 --- a/src/include/gnunet_scalarproduct_service.h +++ b/src/include/gnunet_scalarproduct_service.h | |||
@@ -45,7 +45,6 @@ enum GNUNET_SCALARPRODUCT_ResponseStatus | |||
45 | { | 45 | { |
46 | GNUNET_SCALARPRODUCT_Status_Success = 0, | 46 | GNUNET_SCALARPRODUCT_Status_Success = 0, |
47 | GNUNET_SCALARPRODUCT_Status_Failure, | 47 | GNUNET_SCALARPRODUCT_Status_Failure, |
48 | GNUNET_SCALARPRODUCT_Status_Timeout, | ||
49 | GNUNET_SCALARPRODUCT_Status_InvalidResponse, | 48 | GNUNET_SCALARPRODUCT_Status_InvalidResponse, |
50 | GNUNET_SCALARPRODUCT_Status_ServiceDisconnected | 49 | GNUNET_SCALARPRODUCT_Status_ServiceDisconnected |
51 | }; | 50 | }; |
@@ -89,8 +88,8 @@ typedef void (*GNUNET_SCALARPRODUCT_DatumProcessor) (void *cls, | |||
89 | * @param cont Callback function | 88 | * @param cont Callback function |
90 | * @param cont_cls Closure for the callback function | 89 | * @param cont_cls Closure for the callback function |
91 | */ | 90 | */ |
92 | struct GNUNET_SCALARPRODUCT_Handle * | 91 | struct GNUNET_SCALARPRODUCT_ComputationHandle * |
93 | GNUNET_SCALARPRODUCT_request (const struct GNUNET_CONFIGURATION_Handle *h, | 92 | GNUNET_SCALARPRODUCT_request (const struct GNUNET_CONFIGURATION_Handle *cfg, |
94 | const struct GNUNET_HashCode * key, | 93 | const struct GNUNET_HashCode * key, |
95 | const struct GNUNET_PeerIdentity *peer, | 94 | const struct GNUNET_PeerIdentity *peer, |
96 | const int32_t * elements, | 95 | const int32_t * elements, |
@@ -103,15 +102,15 @@ GNUNET_SCALARPRODUCT_request (const struct GNUNET_CONFIGURATION_Handle *h, | |||
103 | /** | 102 | /** |
104 | * Used by Bob's client to cooperate with Alice, | 103 | * Used by Bob's client to cooperate with Alice, |
105 | * | 104 | * |
106 | * @param h handle to the master context | 105 | * @param h handle to our configuration |
107 | * @param key Session key - unique to the requesting client | 106 | * @param key Session key - unique to the requesting client |
108 | * @param elements Array of elements of the vector | 107 | * @param elements Array of elements of the vector |
109 | * @param element_count Number of elements in the vector | 108 | * @param element_count Number of elements in the vector |
110 | * @param cont Callback function | 109 | * @param cont Callback function |
111 | * @param cont_cls Closure for the callback function | 110 | * @param cont_cls Closure for the callback function |
112 | */ | 111 | */ |
113 | struct GNUNET_SCALARPRODUCT_Handle * | 112 | struct GNUNET_SCALARPRODUCT_ComputationHandle * |
114 | GNUNET_SCALARPRODUCT_response (const struct GNUNET_CONFIGURATION_Handle *h, | 113 | GNUNET_SCALARPRODUCT_response (const struct GNUNET_CONFIGURATION_Handle *cfg, |
115 | const struct GNUNET_HashCode * key, | 114 | const struct GNUNET_HashCode * key, |
116 | const int32_t * elements, | 115 | const int32_t * elements, |
117 | uint32_t element_count, | 116 | uint32_t element_count, |