1 /* 2 * type.h 3 * 4 * Copyright (c) Chris Putnam 2019 5 * 6 * Source code released under the GPL version 2 7 */ 8 #ifndef TYPE_H 9 #define TYPE_H 10 11 #include <stdio.h> 12 #include <stdlib.h> 13 #include "fields.h" 14 15 #define TYPE_FROM_GENRE (0) 16 #define TYPE_FROM_RESOURCE (1) 17 #define TYPE_FROM_ISSUANCE (2) 18 19 typedef struct match_type { 20 char *name; 21 int type; 22 int level; 23 } match_type; 24 25 int type_from_mods_hints( fields *in, int mode, match_type matches[], int nmatches, int type_unknown ); 26 27 #endif 28