summaryrefslogtreecommitdiff
path: root/xpp/astribank_license.h
diff options
context:
space:
mode:
Diffstat (limited to 'xpp/astribank_license.h')
-rw-r--r--xpp/astribank_license.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/xpp/astribank_license.h b/xpp/astribank_license.h
new file mode 100644
index 0000000..74d6a31
--- /dev/null
+++ b/xpp/astribank_license.h
@@ -0,0 +1,29 @@
+#ifndef ASTRIBANK_ALLOW_H
+#define ASTRIBANK_ALLOW_H
+
+#include "mpp.h"
+
+enum license_markers {
+ LICENSE_MARKER_NONE = 0,
+ LICENSE_MARKER_XORCOM = 1,
+ LICENSE_MARKER_GENERIC = 2,
+};
+
+int license_marker_valid(unsigned int which);
+void license_markers_help(const char *prefix, FILE *fp);
+
+int write_to_file(
+ struct eeprom_table *eeprom_table,
+ struct capabilities *caps,
+ struct capkey *key,
+ unsigned int marker,
+ FILE *f);
+
+int read_from_file(
+ struct eeprom_table *eeprom_table,
+ struct capabilities *caps,
+ struct capkey *capkey,
+ unsigned int *used_marker,
+ FILE *f);
+
+#endif /* ASTRIBANK_ALLOW_H */