#ifndef READSUBDIR_H
#define READSUBDIR_H

#include <dirent.h>

typedef struct readsubdir {
  DIR *dir;
  int pos;
  char *name;
  void (*pause)(char *);
} readsubdir;

extern void readsubdir_init(readsubdir *rs, char *name, void (*pause)(char *));
extern int readsubdir_next(readsubdir *rs, unsigned long *id);

#define READSUBDIR_NAMELEN 10

#endif