X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Ffile_glob.h;h=36ea177a2a4daf6307d5f0999eb4da7b658f0339;hp=0ba70d69a8ca06f2441bb05290ad9f1c3ea58d38;hb=5ef30a0bda9a010b88266f90a253a2c46e6d47db;hpb=5242cb5a8634bfa38b9333ff7f903e718ac6e292 diff --git a/include/yaz/file_glob.h b/include/yaz/file_glob.h index 0ba70d6..36ea177 100644 --- a/include/yaz/file_glob.h +++ b/include/yaz/file_glob.h @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2012 Index Data. + * Copyright (C) 1995-2013 Index Data. * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -40,6 +40,7 @@ YAZ_BEGIN_CDECL /** \brief file glob handle */ typedef struct glob_res *yaz_glob_res_t; +#define YAZ_FILE_GLOB_FAIL_NOTEXIST 1 /** \brief perform glob \param pattern glob pattern file spec @@ -50,6 +51,16 @@ typedef struct glob_res *yaz_glob_res_t; YAZ_EXPORT int yaz_file_glob(const char *pattern, yaz_glob_res_t *res); +/** \brief perform glob (with flags) + \param pattern glob pattern file spec + \param res returned glob result + \param flags YAZ_FILE_GLOB_.. flags + \retval 0 OK + \retval -1 ERROR +*/ +YAZ_EXPORT +int yaz_file_glob2(const char *pattern, yaz_glob_res_t *res, unsigned flags); + /** \brief release glob result \param res pointer to glob result