Nilorea Library
C utilities for networking, threading, graphics
n_files.h
Go to the documentation of this file.
1
8#ifndef __N_FILES_HEADER
9#define __N_FILES_HEADER
10
11#ifdef __cplusplus
12extern "C"
13{
14#endif
15
23#include "nilorea/n_str.h"
24#include "nilorea/n_list.h"
25#include "nilorea/n_log.h"
26#include "dirent.h"
27
28
29
31 typedef struct N_FILE_INFO
32 {
34 char *name ;
36 time_t filetime , filetime_nsec ;
37 } N_FILE_INFO ;
38
39
40 int n_scan_dir( const char *dir, LIST *result , const int recurse );
41 void n_free_file_info( void *ptr );
42
43
48#ifdef __cplusplus
49}
50#endif
51
52#endif
Structure of a generic LIST container.
Definition: n_list.h:45
time_t filetime
file creation time
Definition: n_files.h:36
char * name
file name
Definition: n_files.h:34
int n_scan_dir(const char *dir, LIST *result, const int recurse)
Scan given directory and return a LIST of char.
Definition: n_files.c:82
void n_free_file_info(void *ptr)
free a N_FILE_INFO struct
Definition: n_files.c:15
common file information
Definition: n_files.h:32
List structures and definitions.
Generic log system.
N_STR and string function declaration.