summaryrefslogtreecommitdiff
path: root/src/include/readsubdir.h
blob: fc816f4b393d26b188f67b2c51fde09433de0e35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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