opkg: disable gpgme header if gpgme disabled from configure
[oweals/opkg-lede.git] / file_util.h
1 /* file_util.h - convenience routines for common file operations
2
3    Carl D. Worth
4
5    Copyright (C) 2001 University of Southern California
6
7    This program is free software; you can redistribute it and/or
8    modify it under the terms of the GNU General Public License as
9    published by the Free Software Foundation; either version 2, or (at
10    your option) any later version.
11
12    This program is distributed in the hope that it will be useful, but
13    WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15    General Public License for more details.
16 */
17
18 #ifndef FILE_UTIL_H
19 #define FILE_UTIL_H
20
21 int file_exists(const char *file_name);
22 int file_is_dir(const char *file_name);
23 char *file_read_line_alloc(FILE *file);
24 int file_move(const char *src, const char *dest);
25 int file_copy(const char *src, const char *dest);
26 int file_mkdir_hier(const char *path, long mode);
27 char *file_md5sum_alloc(const char *file_name);
28
29 #endif