]> rtime.felk.cvut.cz Git - frescor/frsh-include.git/commitdiff
Added the hash table for contracts
authormgh <mgh@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Thu, 2 Aug 2007 12:01:32 +0000 (12:01 +0000)
committermgh <mgh@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Thu, 2 Aug 2007 12:01:32 +0000 (12:01 +0000)
Still need to implement the hash table management in group negotiations

git-svn-id: http://www.frescor.org/private/svn/frescor/frsh/trunk/include@636 35b4ef3e-fd22-0410-ab77-dab3279adceb

frsh_error.h
frsh_hash_table.h

index 436905499572a30027a90a1ad29339c8fb9d5121..cb3ab06f1d2f4428c323be6c666d1aec300629f0 100644 (file)
 #define FRSH_WRN_MODULE_NOT_SUPPORTED            0x0200401E
 #define FRSH_ERR_NOT_INITIALIZED                 0x0200401F
 #define FRSH_ERR_TOO_MANY_SHARED_OBJS            0x02004020
-#define FRSH_ERR_CONTRACT_ID_ALREADY_EXISTS      0x02004021
+#define FRSH_ERR_CONTRACT_LABEL_ALREADY_EXISTS   0x02004021
 #define FRSH_ERR_BUDGET_EXPIRED                  0x02004022
 #define FRSH_ERR_SHARED_OBJECT_NOT_PROTECTED     0x02004023
 #define FRSH_ERR_NOT_IMPLEMENTED                 0x02004024
 #define FRSH_ERR_CONTRACT_TYPE_NOT_COMPATIBLE    0x02004025
 #define FRSH_ERR_CAPACITY_NOT_DECREASING         0x02004026
+#define FRSH_ERR_CONTRACT_LABEL_UNKNOWN          0x02004027
 
-#define FRSH_ERR_LAST_VALUE                      0x02004027
+#define FRSH_ERR_LAST_VALUE                      0x02004028
 
 #define ERROR(nn,ss) do {if(nn>FRSH_ERR_BASE_VALUE) my_frsh_strerror(nn, ss); else perror(ss); exit (nn);} while (0)
 
index 7ffb88ac06df63a8d8fdb6f95dae4c7b12a8337f..1551d3c535ea1122ec8d0366243282f2a0cfc19e 100644 (file)
@@ -153,13 +153,12 @@ int frsh_hash_table_get (frsh_hash_table_t *table,
 bool frsh_hash_table_contains_key (frsh_hash_table_t *table, const char * key);
 
 /**
- * Remove an entry from the table
+ * Remove an entry from the table given a key
  * Returns 0 if successful, or -1 if the key is not contained in the table
  */
 int frsh_hash_table_remove (frsh_hash_table_t *table, const char * key);
 
 
-
 #endif // FRSH_HASH_TABLE