You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

win32-glob.h 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* libSoX minimal glob for MS-Windows: (c) 2009 SoX contributors
  2. *
  3. * This library is free software; you can redistribute it and/or modify it
  4. * under the terms of the GNU Lesser General Public License as published by
  5. * the Free Software Foundation; either version 2.1 of the License, or (at
  6. * your option) any later version.
  7. *
  8. * This library is distributed in the hope that it will be useful, but
  9. * WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
  11. * General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU Lesser General Public License
  14. * along with this library; if not, write to the Free Software Foundation,
  15. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  16. */
  17. #ifndef GLOB_H
  18. #define GLOB_H 1
  19. #define GLOB_NOCHECK (16)
  20. #define GLOB_FLAGS (GLOB_NOCHECK)
  21. typedef struct glob_t
  22. {
  23. unsigned gl_pathc;
  24. char **gl_pathv;
  25. } glob_t;
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. int
  30. glob(
  31. const char *pattern,
  32. int flags,
  33. void *unused,
  34. glob_t *pglob);
  35. void
  36. globfree(
  37. glob_t* pglob);
  38. #ifdef __cplusplus
  39. }
  40. #endif
  41. #endif /* ifndef GLOB_H */