diff options
author | David Härdeman <david@hardeman.nu> | 2007-05-19 17:14:12 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2007-05-19 17:14:12 +0200 |
commit | 5fed2f9169fdd0585cc83ff0fa8210d97da77cb2 (patch) | |
tree | 00bb9a4b2e260301516b137208edf0e270420e23 /metastore.h | |
parent | 22fd68b59d5f792ff033120ad260581ac7fa72ee (diff) |
80-col align code, add license headers
Diffstat (limited to 'metastore.h')
-rw-r--r-- | metastore.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/metastore.h b/metastore.h index e8f52bb..62c9ff0 100644 --- a/metastore.h +++ b/metastore.h @@ -1,16 +1,42 @@ +/* + * Main functions of the program. + * + * Copyright (C) 2007 David Härdeman <david@hardeman.nu> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +/* Each file starts with SIGNATURE and VERSION */ #define SIGNATURE "MeTaSt00r3" #define SIGNATURELEN 10 #define VERSION "\0\0\0\0\0\0\0\0" #define VERSIONLEN 8 + +/* Default filename */ #define METAFILE "./.metadata" +/* Utility defines for the action to take */ #define ACTION_DIFF 0x01 #define ACTION_SAVE 0x02 #define ACTION_APPLY 0x04 #define ACTION_HELP 0x08 +/* Used to signal whether mtimes should be corrected */ extern int do_mtime; +/* Data structure to hold all metadata for a file */ struct metaentry { struct metaentry *next; char *path; |