+#define ALIGN_VNORMAL 0x000
+#define ALIGN_VCENTRE 0x100
+
+#define ALIGN_HLEFT 0x000
+#define ALIGN_HCENTRE 0x001
+#define ALIGN_HRIGHT 0x002
+
+#define FONT_FIXED 0
+#define FONT_VARIABLE 1
+
+/*
+ * Structure used to pass configuration data between frontend and
+ * game
+ */
+enum { C_STRING, C_CHOICES, C_BOOLEAN, C_END };
+struct config_item {
+ /*
+ * `name' is never dynamically allocated.
+ */
+ char *name;
+ /*
+ * `type' contains one of the above values.
+ */
+ int type;
+ /*
+ * For C_STRING, `sval' is always dynamically allocated and
+ * non-NULL. For C_BOOLEAN and C_END, `sval' is always NULL.
+ * For C_CHOICES, `sval' is non-NULL, _not_ dynamically
+ * allocated, and contains a set of option strings separated by
+ * a delimiter. The delimeter is also the first character in
+ * the string, so for example ":Foo:Bar:Baz" gives three
+ * options `Foo', `Bar' and `Baz'.
+ */
+ char *sval;
+ /*
+ * For C_BOOLEAN, this is TRUE or FALSE. For C_CHOICES, it
+ * indicates the chosen index from the `sval' list. In the
+ * above example, 0==Foo, 1==Bar and 2==Baz.
+ */
+ int ival;
+};
+