Add action to dump metadata in human-readable form: -d / --dump.
[metastore.git] / metastore.h
blob384808dd6b482916d0e909ee5478a90a41cd6db8
1 /*
2 * Main functions of the program.
4 * Copyright (C) 2007 David Härdeman <david@hardeman.nu>
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; only version 2 of the License is applicable.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef METASTORE_H
21 #define METASTORE_H
23 /* Each file starts with SIGNATURE and VERSION */
24 #define SIGNATURE "MeTaSt00r3"
25 #define SIGNATURELEN 10
26 #define VERSION "\0\0\0\0\0\0\0\0"
27 #define VERSIONLEN 8
29 /* Default filename */
30 #define METAFILE "./.metadata"
32 /* Utility defines for the action to take */
33 #define ACTION_APPLY 0x01
34 #define ACTION_DIFF 0x02
35 #define ACTION_DUMP 0x04
36 #define ACTION_SAVE 0x10
37 #define ACTION_HELP 0x80
39 /* Action masks */
40 #define ACTIONS_READING 0x07
41 #define ACTIONS_WRITING 0x70
43 #endif /* METASTORE_H */