projects
/
libcontrac.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add time functions, simplify API
[libcontrac.git]
/
src
/
dtk_list.c
diff --git
a/src/dtk_list.c
b/src/dtk_list.c
index
9ef41f7
..
daa03d0
100644
(file)
--- a/
src/dtk_list.c
+++ b/
src/dtk_list.c
@@
-98,4
+98,9
@@
Dtk const * dtk_list_get_dtk(DtkListItem const * data) {
return data->dtk;
}
+void dtk_list_add_diagnosis(DtkList * data, unsigned char const * dtk_bytes, uint32_t day_number) {
+ Dtk * dtk = dtk_new();
+ dtk_assign(dtk, dtk_bytes, day_number);
+ dtk_list_append(data, dtk);
+}