From 382da0ada99a2874052f0e6ccb2c25e012d47fc9 Mon Sep 17 00:00:00 2001 From: gramanas Date: Sat, 13 Nov 2021 21:05:38 +0200 Subject: Update Makefile and add list ingredients draft --- types.h | 51 --------------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 types.h (limited to 'types.h') diff --git a/types.h b/types.h deleted file mode 100644 index ea8fa47..0000000 --- a/types.h +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef __TYPES_H -#define __TYPES_H - -typedef struct item_t { - char *name; - char *qty; -} item; - -enum step_type { - PREP = 0, - COOK, - SERVE, -}; - -typedef struct step_t { - char *inst; - char *duration; - char *result; - enum step_type type; -} step; - -typedef struct recipe_t { - char * filename; - char * path; - char * title; - int n; - item **i; - int in; - step **s; - int sn; - struct recipe_t **r; - int rn; -} recipe; - -recipe * new_recipe(); -void new_subrecipe(recipe * r, recipe * src); -void new_item(recipe * r); -void new_step(recipe * r); - -void free_recipe(recipe * r); -void free_item(item * i); -void free_step(step * s); - -void show(recipe * r); -void tojson(recipe * r); -void tohtml(recipe * r); -void torcp(recipe * r); - -void copy_items(recipe * dst, recipe * src); - -#endif /* __TYPES_H */ -- cgit v1.2.3