• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2001-2004 Brandon Long
3  * All Rights Reserved.
4  *
5  * ClearSilver Templating System
6  *
7  * This code is made available under the terms of the ClearSilver License.
8  * http://www.clearsilver.net/license.hdf
9  *
10  */
11 
12 #ifndef __NEO_FILES_H_
13 #define __NEO_FILES_H_ 1
14 
15 __BEGIN_DECLS
16 
17 #include <stdarg.h>
18 #include <sys/types.h>
19 #include "util/ulist.h"
20 
21 
22 
23 typedef int (* MATCH_FUNC)(void *rock, const char *filename);
24 
25 NEOERR *ne_mkdirs (const char *path, mode_t mode);
26 NEOERR *ne_load_file (const char *path, char **str);
27 NEOERR *ne_load_file_len (const char *path, char **str, int *len);
28 NEOERR *ne_save_file (const char *path, char *str);
29 NEOERR *ne_remove_dir (const char *path);
30 NEOERR *ne_listdir(const char *path, ULIST **files);
31 NEOERR *ne_listdir_match(const char *path, ULIST **files, const char *match);
32 NEOERR *ne_listdir_fmatch(const char *path, ULIST **files, MATCH_FUNC fmatch,
33                           void *rock);
34 
35 __END_DECLS
36 
37 #endif /* __NEO_FILES_H_ */
38