projects
/
platform
/
upstream
/
libsolv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
55c534f
)
add sat_chksum_isfinished() check
author
Michael Schroeder
<mls@suse.de>
Wed, 23 Mar 2011 14:53:18 +0000
(15:53 +0100)
committer
Michael Schroeder
<mls@suse.de>
Wed, 23 Mar 2011 14:53:18 +0000
(15:53 +0100)
src/chksum.c
patch
|
blob
|
history
src/chksum.h
patch
|
blob
|
history
diff --git
a/src/chksum.c
b/src/chksum.c
index
7f28d16
..
a070a86
100644
(file)
--- a/
src/chksum.c
+++ b/
src/chksum.c
@@
-127,6
+127,13
@@
sat_chksum_get_type(void *handle)
return h->type;
}
return h->type;
}
+int
+sat_chksum_isfinished(void *handle)
+{
+ struct ctxhandle *h = handle;
+ return h->done != 0;
+}
+
const char *
sat_chksum_type2str(Id type)
{
const char *
sat_chksum_type2str(Id type)
{
diff --git
a/src/chksum.h
b/src/chksum.h
index
06fa64c
..
948a01a
100644
(file)
--- a/
src/chksum.h
+++ b/
src/chksum.h
@@
-4,6
+4,7
@@
void *sat_chksum_create(Id type);
void *sat_chksum_create_from_bin(Id type, const unsigned char *buf);
void sat_chksum_add(void *handle, const void *data, int len);
Id sat_chksum_get_type(void *handle);
void *sat_chksum_create_from_bin(Id type, const unsigned char *buf);
void sat_chksum_add(void *handle, const void *data, int len);
Id sat_chksum_get_type(void *handle);
+int sat_chksum_isfinished(void *handle);
const unsigned char *sat_chksum_get(void *handle, int *lenp);
void *sat_chksum_free(void *handle, unsigned char *cp);
const char *sat_chksum_type2str(Id type);
const unsigned char *sat_chksum_get(void *handle, int *lenp);
void *sat_chksum_free(void *handle, unsigned char *cp);
const char *sat_chksum_type2str(Id type);