From 0ac3b187dff09b67bd4551e0124e6fad8884adda Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Wed, 29 Jul 2020 07:51:41 +0300 Subject: Docs completed. --- src/file.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/file.c') diff --git a/src/file.c b/src/file.c index b3727f1..10e5b07 100644 --- a/src/file.c +++ b/src/file.c @@ -38,3 +38,9 @@ void magi_files_free(struct magi_files *files) free(files->item.params); } } + + +char *magi_file_param(struct magi_file *file, const char *name) +{ + return file ? magi_params_get(file->params, name) : 0; +} -- cgit v1.2.3