#define _WAPI_GLOB_H_
#include <glib.h>
-#include <sys/cdefs.h>
struct stat;
typedef struct {
char **gl_pathv; /* List of paths matching pattern. */
} wapi_glob_t;
-
+#define WAPI_GLOB_APPEND 0x0001 /* Append to output from previous call. */
+#define WAPI_GLOB_UNIQUE 0x0040 /* When appending only add items that aren't already in the list */
#define WAPI_GLOB_NOSPACE (-1) /* Malloc call failed. */
#define WAPI_GLOB_ABORTED (-2) /* Unignored error. */
#define WAPI_GLOB_NOMATCH (-3) /* No match and WAPI_GLOB_NOCHECK not set. */
#define WAPI_GLOB_IGNORECASE 0x4000 /* Ignore case when matching */
#define WAPI_GLOB_ABEND WAPI_GLOB_ABORTED /* backward compatibility */
-__BEGIN_DECLS
+G_BEGIN_DECLS
int _wapi_glob(GDir *dir, const char *, int, wapi_glob_t *);
void _wapi_globfree(wapi_glob_t *);
-__END_DECLS
+G_END_DECLS
#endif /* !_WAPI_GLOB_H_ */