Archived
1
0
Fork 0

notify/fscrawl: fixed up src/notify/tree, ADT, new API, new name.

This commit is contained in:
Henrik Hautakoski 2010-09-30 23:04:11 +02:00
parent 9fbe9cfc23
commit 8d7b4a74c7
8 changed files with 260 additions and 277 deletions

30
src/notify/fscrawl.h Normal file
View file

@ -0,0 +1,30 @@
/* notify/fscrawl.h - Filesystem traversal
*
* (C) Copyright 2010 Henrik Hautakoski <henrik@fiktivkod.org>
*
* 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 3 of the License, or
* (at your option) any later version.
*/
#ifndef __NOTIFY_FSCRAWL_H
#define __NOTIFY_FSCRAWL_H
typedef struct {
char *name;
char *base;
unsigned char dir;
} fs_entry;
typedef struct __fscrawl *fscrawl_t;
fscrawl_t fsc_open(const char *path);
void fsc_close(fscrawl_t f);
fs_entry* fsc_cpy(fs_entry *ent);
fs_entry* fsc_read(fscrawl_t f);
#endif /* __NOTIFY_FSCRAWL_H */