X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bdfe4f8674f98efbf2d67ad854ef83a1d5f855ed..c46aba70aa4ccf22cc19fac31d451c7158e922dd:/include/xbt/hash.h diff --git a/include/xbt/hash.h b/include/xbt/hash.h index dcefb7c44e..7bcea4f686 100644 --- a/include/xbt/hash.h +++ b/include/xbt/hash.h @@ -1,6 +1,6 @@ /* hash.h - Various hashing functions. */ -/* Copyright (c) 2008-2011. The SimGrid Team. +/* 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 @@ -8,9 +8,12 @@ #ifndef XBT_HASH_H #define XBT_HASH_H -#include "xbt/str.h" -/* Chord needs a SHA1 algorithm. Let's drop it in there */ +#include "xbt/misc.h" + +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); @@ -25,5 +28,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 */