From ffccd5b2b05243e7976db80f90f453dccfae9886 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 22:22:03 +0200 Subject: Adding upstream version 3:4.8.30. Signed-off-by: Daniel Baumann --- src/filemanager/mountlist.h | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/filemanager/mountlist.h (limited to 'src/filemanager/mountlist.h') diff --git a/src/filemanager/mountlist.h b/src/filemanager/mountlist.h new file mode 100644 index 0000000..f506488 --- /dev/null +++ b/src/filemanager/mountlist.h @@ -0,0 +1,44 @@ +/* + Declarations for list of mounted filesystems + */ + +/** \file mountlist.h + * \brief Header: list of mounted filesystems + */ + +#ifndef MC__MOUNTLIST_H +#define MC__MOUNTLIST_H + +#include /* uintmax_t */ + +/*** typedefs(not structures) and defined constants **********************************************/ + +/*** enums ***************************************************************************************/ + +/*** structures declarations (and typedefs of structures)*****************************************/ + +/* Filesystem status */ +struct my_statfs +{ + int type; + char *typename; + const char *mpoint; + const char *mroot; + const char *device; + uintmax_t avail; /* in kB */ + uintmax_t total; /* in kB */ + uintmax_t nfree; + uintmax_t nodes; +}; + +/*** global variables defined in .c file *********************************************************/ + +/*** declarations of public functions ************************************************************/ + +void init_my_statfs (void); +void my_statfs (struct my_statfs *myfs_stats, const char *path); +void free_my_statfs (void); + +/*** inline functions ****************************************************************************/ + +#endif /* MC__MOUNTLIST_H */ -- cgit v1.2.3