| 1 | /* filenames.h - Functions for dealing with filenames. |
| 2 | Copyright (C) 1998, 1999, 2000, 2001, 2003, |
| 3 | 2004, 2005 Free Software Foundation, Inc. |
| 4 | Copyright (C) 2004, 2005, 2007, 2008 g10 Code GmbH |
| 5 | |
| 6 | This file is part of Poldi. |
| 7 | |
| 8 | Poldi is free software; you can redistribute it and/or modify it |
| 9 | under the terms of the GNU General Public License as published by |
| 10 | the Free Software Foundation; either version 3 of the License, or |
| 11 | (at your option) any later version. |
| 12 | |
| 13 | Poldi is distributed in the hope that it will be useful, but |
| 14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | General Public License for more details. |
| 17 | |
| 18 | You should have received a copy of the GNU General Public License |
| 19 | along with this program; if not, see |
| 20 | <http://www.gnu.org/licenses/>. */ |
| 21 | |
| 22 | #ifndef INCLUDED_FILENAMES_H |
| 23 | #define INCLUDED_FILENAMES_H |
| 24 | |
| 25 | #include <poldi.h> |
| 26 | |
| 27 | /* Construct a filename from the NULL terminated list of parts, |
| 28 | including tilde expansion at the beginning. Stores the newly |
| 29 | allocated string in *PATH, which needs to be freed with xfree(). |
| 30 | Returns error code. This is based on make_filename() as found in |
| 31 | jnlib. */ |
| 32 | gpg_error_t make_filename (char **path, const char *first_part, ...); |
| 33 | |
| 34 | #endif |