X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Ffile_glob.h;h=69aaf232c1d63f5e9e2f1f2e242e01ae733e2654;hb=077c4e7bb226de0f6414674e01a838498a49867b;hp=0cb87c272947711462f19e05fe929f032f23abc5;hpb=0c46d2e66bdeea1600e700124a81a5d0a65d349e;p=yaz-moved-to-github.git diff --git a/include/yaz/file_glob.h b/include/yaz/file_glob.h index 0cb87c2..69aaf23 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-2013 Index Data. + * Copyright (C) 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