1
0

nxpath.h 684 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "foundation/types.h"
  3. #include "nx/nxapi.h"
  4. #include "nx/nxstring.h"
  5. #include "nx/nxuri.h"
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. // returns index into the extension list of a match extension
  10. // returns >= num_extensions on failure
  11. NX_API size_t NXPathMatchExtensionList(nx_uri_t filename, nx_string_t *extension_list, size_t num_extensions);
  12. // return NErr_True / NErr_False
  13. NX_API int NXPathMatchExtension(nx_uri_t filename, nx_string_t extension);
  14. // return NErr_True / NErr_False
  15. NX_API int NXPathProtocol(nx_uri_t filename, const char *protocol);
  16. // return NErr_True / NErr_False
  17. NX_API int NXPathIsURL(nx_uri_t filename);
  18. #ifdef __cplusplus
  19. }
  20. #endif