A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix commit f48cc395ebecc84d865ab551a672d2a2358624e5
[simgrid.git]
/
include
/
xbt
/
hash.h
diff --git
a/include/xbt/hash.h
b/include/xbt/hash.h
index
43b483c
..
6cbc514
100644
(file)
--- a/
include/xbt/hash.h
+++ b/
include/xbt/hash.h
@@
-1,9
+1,7
@@
-/* $Id: str.h,v 1.5 2007/05/02 10:08:55 mquinson Exp $ */
-
/* hash.h - Various hashing functions. */
/* hash.h - Various hashing functions. */
-/* Copyright (c) 200
7, Martin Quinson. */
-
/
* All rights reserved. */
+/* Copyright (c) 200
8, 2009, 2010. 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. */
/* 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. */
@@
-15,16
+13,17
@@
/* Chord needs a SHA1 algorithm. Let's drop it in there */
typedef struct s_xbt_sha_ s_xbt_sha_t, *xbt_sha_t;
/* Chord needs a SHA1 algorithm. Let's drop it in there */
typedef struct s_xbt_sha_ s_xbt_sha_t, *xbt_sha_t;
-XBT_PUBLIC(xbt_sha_t) xbt_sha_new (void);
-XBT_PUBLIC(void) xbt_sha_free (xbt_sha_t sha);
+XBT_PUBLIC(xbt_sha_t) xbt_sha_new(void);
+XBT_PUBLIC(void) xbt_sha_free(xbt_sha_t sha);
+
+XBT_PUBLIC(void) xbt_sha_feed(xbt_sha_t sha, const unsigned char *data,
+ size_t len);
+XBT_PUBLIC(void) xbt_sha_reset(xbt_sha_t sha);
-XBT_PUBLIC(void)
xbt_sha_feed (xbt_sha_t sha, const unsigned char *data, size_t len
);
-XBT_PUBLIC(
void) xbt_sha_reset
(xbt_sha_t sha);
+XBT_PUBLIC(void)
xbt_sha_print(xbt_sha_t sha, char *hash
);
+XBT_PUBLIC(
char *) xbt_sha_read
(xbt_sha_t sha);
-XBT_PUBLIC(void) xbt_sha_print (xbt_sha_t sha, char *hash);
-XBT_PUBLIC(char *) xbt_sha_read(xbt_sha_t sha);
-
-XBT_PUBLIC(void) xbt_sha (const char *data, char *hash);
+XBT_PUBLIC(void) xbt_sha(const char *data, char *hash);
-#endif /* XBT_HASH_H */
+#endif
/* XBT_HASH_H */