From 3adaa2c31586c3f76cb572f5d407cdb5f06fca93 Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 22 Feb 2020 10:45:05 +0100 Subject: Added argument parsing base --- include/ft_ssl.h | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'include/ft_ssl.h') diff --git a/include/ft_ssl.h b/include/ft_ssl.h index c5709d6..be9b4da 100644 --- a/include/ft_ssl.h +++ b/include/ft_ssl.h @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/03 20:27:19 by cacharle #+# #+# */ -/* Updated: 2020/02/22 07:20:34 by cacharle ### ########.fr */ +/* Updated: 2020/02/22 10:10:30 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -25,10 +25,32 @@ typedef struct t_func_main entry; } t_command; +enum +{ + FLAG_PIPE = 1 << 0, + FLAG_QUIET = 1 << 1, + FLAG_REVERSE = 1 << 2, + FLAG_STRING = 1 << 3 +}; +typedef unsigned char t_flags; + +typedef struct +{ + unsigned char *data; + int size; +} t_digest; +typedef void (*t_func_hash)(char *message, t_digest *digest); + /* ** error.c */ void fl_error_command(char *command); +/* +** args.c +*/ + +int fl_parse_args(char *name, int argc, char **argv, t_func_hash func_hash); + #endif -- cgit