adding number of preferences to allow iterating over preferences
[oweals/gnunet.git] / src / include / gnunet_scalarproduct_service.h
index c96c280c4a850e160d0554520a3684c497312320..02920abd30d2a0f6f6775e9a9043ddf2cde584d0 100644 (file)
@@ -1,6 +1,6 @@
 /*
       This file is part of GNUnet.
-      (C) 2013, 2014 Christian Grothoff (and other contributing authors)
+      Copyright (C) 2013, 2014 Christian Grothoff (and other contributing authors)
 
       GNUnet is free software; you can redistribute it and/or modify
       it under the terms of the GNU General Public License as published
@@ -46,25 +46,31 @@ extern "C" {
  */
 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
 };
 
 
@@ -87,7 +93,7 @@ struct GNUNET_SCALARPRODUCT_Element
   struct GNUNET_HashCode key;
 
   /**
-   * Value to multiply in scalar product.
+   * Value to multiply in scalar product, in NBO.
    */
   int64_t value GNUNET_PACKED;
 };