/*
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
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., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
+ Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
*/
/**
- * @file include/gnunet_scalarproduct_service.h
- * @brief API to the scalarproduct service
* @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
*/
enum GNUNET_SCALARPRODUCT_ResponseStatus
{
+
+ /**
+ * Operation is still active (never returned, used internally).
+ */
+ GNUNET_SCALARPRODUCT_STATUS_ACTIVE = 0,
+
/**
* The computation was successful.
*/
- GNUNET_SCALARPRODUCT_Status_Success = 0,
+ GNUNET_SCALARPRODUCT_STATUS_SUCCESS,
/**
* We encountered some error.
*/
- GNUNET_SCALARPRODUCT_Status_Failure,
+ GNUNET_SCALARPRODUCT_STATUS_FAILURE,
/**
* We got an invalid response.
*/
- GNUNET_SCALARPRODUCT_Status_InvalidResponse,
+ GNUNET_SCALARPRODUCT_STATUS_INVALID_RESPONSE,
/**
* We got disconnected from the SCALARPRODUCT service.
*/
- GNUNET_SCALARPRODUCT_Status_ServiceDisconnected
+ GNUNET_SCALARPRODUCT_STATUS_DISCONNECTED
};
struct GNUNET_HashCode key;
/**
- * Value to multiply in scalar product.
+ * Value to multiply in scalar product, in NBO.
*/
int64_t value GNUNET_PACKED;
};
void
GNUNET_SCALARPRODUCT_cancel (struct GNUNET_SCALARPRODUCT_ComputationHandle *h);
+
#if 0 /* keep Emacsens' auto-indent happy */
{
#endif
#endif
#endif
+
+/** @} */ /* end of group */