27 lines
420 B
C
27 lines
420 B
C
#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
|