Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge pull request #2 from mquinson/master
[simgrid.git] / include / xbt / hash.h
index 651aaba..d66ec43 100644 (file)
@@ -1,9 +1,7 @@
-/* $Id: str.h,v 1.5 2007/05/02 10:08:55 mquinson Exp $ */
-
 /* hash.h - Various hashing functions.                                      */
 
-/* Copyright (c) 2007, Martin Quinson.                                      */
-/* All rights reserved.                                                     */
+/* Copyright (c) 2008-2011, 2013-2014. The SimGrid Team.
+ * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -12,7 +10,9 @@
 #define XBT_HASH_H
 #include "xbt/str.h"
 
-/* Chord needs a SHA1 algorithm. Let's drop it in there */
+SG_BEGIN_DECL()
+
+/* The classical SHA1 algorithm */
 typedef struct s_xbt_sha_ s_xbt_sha_t, *xbt_sha_t;
 
 XBT_PUBLIC(xbt_sha_t) xbt_sha_new(void);
@@ -27,5 +27,6 @@ XBT_PUBLIC(char *) xbt_sha_read(xbt_sha_t sha);
 
 XBT_PUBLIC(void) xbt_sha(const char *data, char *hash);
 
+SG_END_DECL()
 
-#endif /* XBT_HASH_H */
+#endif                          /* XBT_HASH_H */