projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix more 'make dist' issues
[oweals/gnunet.git]
/
src
/
include
/
gnunet_scalarproduct_service.h
diff --git
a/src/include/gnunet_scalarproduct_service.h
b/src/include/gnunet_scalarproduct_service.h
index c96c280c4a850e160d0554520a3684c497312320..21e00ca10666676eba9c482695e10b1213c0fca1 100644
(file)
--- a/
src/include/gnunet_scalarproduct_service.h
+++ b/
src/include/gnunet_scalarproduct_service.h
@@
-1,6
+1,6
@@
/*
This file is part of GNUnet.
/*
This file is part of GNUnet.
- (C) 2013, 2014 Christian Grothoff (and other contributing authors)
+ Copyright (C) 2013, 2014 GNUnet e.V.
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
@@
-14,15
+14,20
@@
You should have received a copy of the GNU General Public License
along with GNUnet; see the file COPYING. If not, write to the
You should have received a copy of the GNU General Public License
along with GNUnet; see the file COPYING. If not, write to the
- Free Software Foundation, Inc., 5
9 Temple Place - Suite 330
,
- Boston, MA 0211
1-1307
, USA.
+ Free Software Foundation, Inc., 5
1 Franklin Street, Fifth Floor
,
+ Boston, MA 0211
0-1301
, USA.
*/
/**
*/
/**
- * @file include/gnunet_scalarproduct_service.h
- * @brief API to the scalarproduct service
* @author Christian M. Fuchs
* @author Gaurav Kukreja
* @author Christian M. Fuchs
* @author Gaurav Kukreja
+ *
+ * @file
+ * API to the scalarproduct service
+ *
+ * @defgroup scalarproduct Scalar Product service
+ *
+ * @{
*/
#ifndef GNUNET_SCALARPRODUCT_SERVICE_H
#define GNUNET_SCALARPRODUCT_SERVICE_H
*/
#ifndef GNUNET_SCALARPRODUCT_SERVICE_H
#define GNUNET_SCALARPRODUCT_SERVICE_H
@@
-46,25
+51,36
@@
extern "C" {
*/
enum GNUNET_SCALARPRODUCT_ResponseStatus
{
*/
enum GNUNET_SCALARPRODUCT_ResponseStatus
{
+
+ /**
+ * Operation is still active (never returned, used internally).
+ */
+ GNUNET_SCALARPRODUCT_STATUS_INIT = 0,
+
+ /**
+ * Operation is still active (never returned, used internally).
+ */
+ GNUNET_SCALARPRODUCT_STATUS_ACTIVE = 1,
+
/**
* The computation was successful.
*/
/**
* The computation was successful.
*/
- GNUNET_SCALARPRODUCT_S
tatus_Success = 0
,
+ GNUNET_SCALARPRODUCT_S
TATUS_SUCCESS
,
/**
* We encountered some error.
*/
/**
* We encountered some error.
*/
- GNUNET_SCALARPRODUCT_S
tatus_Failure
,
+ GNUNET_SCALARPRODUCT_S
TATUS_FAILURE
,
/**
* We got an invalid response.
*/
/**
* We got an invalid response.
*/
- GNUNET_SCALARPRODUCT_S
tatus_InvalidResponse
,
+ GNUNET_SCALARPRODUCT_S
TATUS_INVALID_RESPONSE
,
/**
* We got disconnected from the SCALARPRODUCT service.
*/
/**
* We got disconnected from the SCALARPRODUCT service.
*/
- GNUNET_SCALARPRODUCT_S
tatus_ServiceDisconnected
+ GNUNET_SCALARPRODUCT_S
TATUS_DISCONNECTED
};
};
@@
-87,7
+103,7
@@
struct GNUNET_SCALARPRODUCT_Element
struct GNUNET_HashCode key;
/**
struct GNUNET_HashCode key;
/**
- * Value to multiply in scalar product.
+ * Value to multiply in scalar product
, in NBO
.
*/
int64_t value GNUNET_PACKED;
};
*/
int64_t value GNUNET_PACKED;
};
@@
-177,6
+193,7
@@
GNUNET_SCALARPRODUCT_accept_computation (const struct GNUNET_CONFIGURATION_Handl
void
GNUNET_SCALARPRODUCT_cancel (struct GNUNET_SCALARPRODUCT_ComputationHandle *h);
void
GNUNET_SCALARPRODUCT_cancel (struct GNUNET_SCALARPRODUCT_ComputationHandle *h);
+
#if 0 /* keep Emacsens' auto-indent happy */
{
#endif
#if 0 /* keep Emacsens' auto-indent happy */
{
#endif
@@
-185,3
+202,5
@@
GNUNET_SCALARPRODUCT_cancel (struct GNUNET_SCALARPRODUCT_ComputationHandle *h);
#endif
#endif
#endif
#endif
+
+/** @} */ /* end of group */