From 53ab9ae05a579a19c626e8be0c1e2cf9244bf863 Mon Sep 17 00:00:00 2001 From: gramanas Date: Fri, 28 Jan 2022 13:45:30 +0200 Subject: sha1 sum and others --- src/types.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/types.h') diff --git a/src/types.h b/src/types.h index 2c58537..867368b 100644 --- a/src/types.h +++ b/src/types.h @@ -30,6 +30,7 @@ typedef struct recipe_t { int sn; struct recipe_t **r; int rn; + char sha1[41]; } recipe; recipe * new_recipe(); @@ -42,6 +43,7 @@ void free_item(item * i); void free_step(step * s); void pprint_items(recipe * r); +void listing(recipe * r); void show(recipe * r); void tojson(recipe * r); void tohtml(recipe * r); @@ -49,6 +51,11 @@ void torcp(recipe * r); /* Operations */ +/** + * Copy metadata from `src` to `dst` + */ +void copy_subrecipes(recipe * dst, recipe * src); + /** * Copy metadata from `src` to `dst` */ -- cgit v1.2.3