blob: c76682771498577753d5f3046efe458f1bd0f825 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/*
* Copyright 2005-2019 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
*
* Copyright 2005-2008 Ned Ludd - <solar@gentoo.org>
* Copyright 2005-2014 Mike Frysinger - <vapier@gentoo.org>
* Copyright 2018- Fabian Groffen - <grobian@gentoo.org>
*/
#ifndef _CONTENTS_H
#define _CONTENTS_H 1
typedef enum {
CONTENTS_DIR, CONTENTS_OBJ, CONTENTS_SYM
} contents_type;
typedef struct {
contents_type type;
char *_data;
char *name;
char *sym_target;
char *digest;
char *mtime_str;
long mtime;
} contents_entry;
contents_entry *contents_parse_line(char *line);
#endif
|