aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_scalarproduct_service.h
diff options
context:
space:
mode:
authorChristian Fuchs <christian.fuchs@cfuchs.net>2013-09-02 14:46:52 +0000
committerChristian Fuchs <christian.fuchs@cfuchs.net>2013-09-02 14:46:52 +0000
commit9f064f70f7aff38119ebf1b4345118cb61302f2d (patch)
tree376024ba781c11965bb5911b217657dd60c2dd3e /src/include/gnunet_scalarproduct_service.h
parent6ea7ba4bfcd11cbfc0b828f12d881f983d277bc7 (diff)
downloadgnunet-9f064f70f7aff38119ebf1b4345118cb61302f2d.tar.gz
gnunet-9f064f70f7aff38119ebf1b4345118cb61302f2d.zip
removed much of the excell logics in the scalar product API
finished the the alice/bob API initiation functions in the SP API merged structes in SP API reorganized SP bookkeeping of computations
Diffstat (limited to 'src/include/gnunet_scalarproduct_service.h')
-rw-r--r--src/include/gnunet_scalarproduct_service.h62
1 files changed, 1 insertions, 61 deletions
diff --git a/src/include/gnunet_scalarproduct_service.h b/src/include/gnunet_scalarproduct_service.h
index cdf2cc437..3aac679c4 100644
--- a/src/include/gnunet_scalarproduct_service.h
+++ b/src/include/gnunet_scalarproduct_service.h
@@ -50,67 +50,7 @@ enum GNUNET_SCALARPRODUCT_ResponseStatus
50 GNUNET_SCALARPRODUCT_Status_ServiceDisconnected 50 GNUNET_SCALARPRODUCT_Status_ServiceDisconnected
51}; 51};
52 52
53struct GNUNET_SCALARPRODUCT_Handle 53struct GNUNET_SCALARPRODUCT_Handle;
54{
55 /**
56 * Our configuration.
57 */
58 const struct GNUNET_CONFIGURATION_Handle *cfg;
59
60 /**
61 * Current connection to the scalarproduct service.
62 */
63 struct GNUNET_CLIENT_Connection *client;
64
65 /**
66 * Handle for statistics.
67 */
68 struct GNUNET_STATISTICS_Handle *stats;
69
70 /**
71 * Current transmit handle.
72 */
73 struct GNUNET_CLIENT_TransmitHandle *th;
74
75 /**
76 * Handle to the master context.
77 */
78 struct GNUNET_SCALARPRODUCT_Handle *h;
79
80 /**
81 * The shared session key identifying this computation
82 */
83 struct GNUNET_HashCode * key;
84
85 /**
86 * The message to be transmitted
87 */
88 void * msg;
89
90 union
91 {
92 /**
93 * Function to call after transmission of the request.
94 */
95 GNUNET_SCALARPRODUCT_ContinuationWithStatus cont_status;
96
97 /**
98 * Function to call after transmission of the request.
99 */
100 GNUNET_SCALARPRODUCT_DatumProcessor cont_datum;
101 };
102
103 /**
104 * Closure for 'cont'.
105 */
106 void *cont_cls;
107
108 /**
109 * Response Processor for response from the service. This function calls the
110 * continuation function provided by the client.
111 */
112 GNUNET_SCALARPRODUCT_ResponseMessageHandler response_proc;
113};
114 54
115typedef void (*GNUNET_SCALARPRODUCT_ResponseMessageHandler) (void *cls, 55typedef void (*GNUNET_SCALARPRODUCT_ResponseMessageHandler) (void *cls,
116 const struct GNUNET_MessageHeader *msg, 56 const struct GNUNET_MessageHeader *msg,