summaryrefslogtreecommitdiff
path: root/metastore.h
diff options
context:
space:
mode:
Diffstat (limited to 'metastore.h')
-rw-r--r--metastore.h26
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;