summaryrefslogtreecommitdiff
path: root/src/version.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/version.h')
-rw-r--r--src/version.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/version.h b/src/version.h
new file mode 100644
index 0000000..26a6f40
--- /dev/null
+++ b/src/version.h
@@ -0,0 +1,33 @@
+/**
+ * Versioner is a simple program to programatically manage version strings.
+ * Copyright (C) 2018 Aaron Ball <nullspoon@oper.io>
+ *
+ * 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, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ */
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+struct version {
+ int digits[64];
+ int count;
+ //char* extra;
+};
+
+void version_new(struct version*);
+void str_to_ver(char*, struct version*);
+void version_print(struct version*);
+void version_read_str(struct version*, char*);
+void version_increment(struct version*, int);
+void version_decrement(struct version*, int);

Generated by cgit