21 lines
366 B
C
21 lines
366 B
C
|
#ifndef HAGGIS_LINKLIST
|
||
|
#define HAGGIS_LINKLIST
|
||
|
|
||
|
#include <sys/stat.h>
|
||
|
#include <pthread.h>
|
||
|
|
||
|
struct _haggis_hardlink {
|
||
|
struct _haggis_hardlink *next;
|
||
|
ino_t inode;
|
||
|
char *fname;
|
||
|
};
|
||
|
|
||
|
typedef struct _haggis_hardlink haggis_hardlink;
|
||
|
|
||
|
typedef struct {
|
||
|
pthread_mutex_t *mutex;
|
||
|
haggis_hardlink *head;
|
||
|
} haggis_hardlink_list;
|
||
|
|
||
|
#endif // !HAGGIS_LINKLIST
|