renamed type_definitions.h to main.h
This commit is contained in:
1 parent
f2e3801b8a
commit
b91789df39
6 files changed
+10
-7
No files matched your search
+26
@@ -0,0 +1,26 @@
|
||||
#ifndef __MAIN_H
|
||||
#define __MAIN_H
|
||||
|
||||
#include <linux/limits.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
// type definitions
|
||||
typedef enum {
|
||||
type_directory,
|
||||
type_character,
|
||||
type_block,
|
||||
type_regular,
|
||||
type_fifo,
|
||||
type_link,
|
||||
type_socket,
|
||||
} entry_type_t;
|
||||
|
||||
typedef struct {
|
||||
char name[ NAME_MAX ];
|
||||
char* extension;
|
||||
struct stat stats;
|
||||
entry_type_t type;
|
||||
} directory_entry_t;
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user