diff options
author | Dan McGee <dan@archlinux.org> | 2007-06-05 05:32:38 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-06-05 05:32:38 +0200 |
commit | 26e3db423abeb4cb5704f89dc0fc50a767f19b47 (patch) | |
tree | d6574466cb8846d162719a49dc38df8f59acbca4 /lib/libalpm/sha1.c | |
parent | 466b79bf8f9a9b3f37a1a754b40320df9f2f1b4e (diff) | |
parent | 64d36db5f45db15997c6a3987d6f4b0ce147df27 (diff) | |
download | pacman-26e3db423abeb4cb5704f89dc0fc50a767f19b47.tar.gz pacman-26e3db423abeb4cb5704f89dc0fc50a767f19b47.tar.xz |
Merge branch 'alpm.c_cleanup' into frontend_config
Conflicts:
lib/libalpm/alpm.c
Diffstat (limited to 'lib/libalpm/sha1.c')
-rw-r--r-- | lib/libalpm/sha1.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/libalpm/sha1.c b/lib/libalpm/sha1.c index 5f47ebb8..1adf067b 100644 --- a/lib/libalpm/sha1.c +++ b/lib/libalpm/sha1.c @@ -381,6 +381,19 @@ These notices must be retained in any copies of any part of this documentation and/or software. */ +/** Get the sha1 sum of file. + * @param name name of the file + * @return the checksum on success, NULL on error + * @addtogroup alpm_misc + */ +char SYMEXPORT *alpm_get_sha1sum(char *name) +{ + ALPM_LOG_FUNC; + + ASSERT(name != NULL, return(NULL)); + + return(_alpm_SHAFile(name)); +} char* _alpm_SHAFile(char *filename) { FILE *file; |