ref: d676cd7af1ef6edb3c903f8b3c34ca67db7a0730
dir: /src/i_glob.h/
// // Copyright(C) 2018 Simon Howard // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // DESCRIPTION: // System specific file globbing interface. // #ifndef __I_GLOB__ #define __I_GLOB__ typedef struct glob_s glob_t; // Start reading a list of file paths from the given directory which match // the given glob pattern. I_EndGlob() must be called on completion. glob_t *I_StartGlob(const char *directory, const char *glob); // Finish reading file list. void I_EndGlob(glob_t *glob); // Read the name of the next globbed filename. NULL is returned if there // are no more found. const char *I_NextGlob(glob_t *glob); #endif