adding number of preferences to allow iterating over preferences
[oweals/gnunet.git] / src / include / gnunet_scalarproduct_service.h
index 9585fbe558c050fb07416501201202e3f65c04e4..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
 };