diff options
author | Didier Raboud <odyx@debian.org> | 2018-09-25 08:33:05 +0200 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2018-09-25 08:33:05 +0200 |
commit | e50542121e724e851fc5d6c68bb773f80c0bc12c (patch) | |
tree | 655c3f6331a6e8fd8b09ceb4da8f5896484ae16a /include/gutenprint/path.h | |
parent | 9dd97a029bf391c42b1dc76f2f7c5e386bb8f466 (diff) |
New upstream version 5.3.1
Diffstat (limited to 'include/gutenprint/path.h')
-rw-r--r-- | include/gutenprint/path.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/include/gutenprint/path.h b/include/gutenprint/path.h index ffa7f1b..bd52133 100644 --- a/include/gutenprint/path.h +++ b/include/gutenprint/path.h @@ -16,8 +16,7 @@ * for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * along with this program. If not, see <https://www.gnu.org/licenses/>. */ /** @@ -44,12 +43,28 @@ extern stp_list_t *stp_path_search(stp_list_t *dirlist, extern void stp_path_split(stp_list_t *list, const char *path); -extern stp_list_t *stpi_data_path(void); +/* + * Split a path (colon-separated list of strings) into + * its components. The components may be anything that does not contain + * a token. + */ +extern stp_list_t *stp_generate_path(const char *path); + +extern stp_list_t *stp_data_path(void); extern stp_list_t *stpi_list_files_on_data_path(const char *name); +/* + * Join a path and filename together. + */ extern char *stpi_path_merge(const char *path, const char *file); +/* + * Find the first occurrence of <file> on <path>. + * File must be a plain file and readable. + * Return value must be freed + */ +extern char *stp_path_find_file(const char *path, const char *file); #ifdef __cplusplus } |