summaryrefslogtreecommitdiff
path: root/support/texlab/crates/bibutils_sys/src/type.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-12-03 03:01:24 +0000
committerNorbert Preining <norbert@preining.info>2019-12-03 03:01:24 +0000
commitb8d4bb76703bcb15578e2b23c5d256532180b894 (patch)
treebedd1df7a00521a2bd986b3c0289d6556a59e39b /support/texlab/crates/bibutils_sys/src/type.h
parent02e4625a78a5029e8b5dc2a4ec70193b232f497e (diff)
CTAN sync 201912030301
Diffstat (limited to 'support/texlab/crates/bibutils_sys/src/type.h')
-rw-r--r--support/texlab/crates/bibutils_sys/src/type.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/support/texlab/crates/bibutils_sys/src/type.h b/support/texlab/crates/bibutils_sys/src/type.h
new file mode 100644
index 0000000000..839b040d8d
--- /dev/null
+++ b/support/texlab/crates/bibutils_sys/src/type.h
@@ -0,0 +1,27 @@
+/*
+ * type.h
+ *
+ * Copyright (c) Chris Putnam 2019
+ *
+ * Source code released under the GPL version 2
+ */
+#ifndef TYPE_H
+#define TYPE_H
+
+#include <stdio.h>
+#include <stdlib.h>
+#include "fields.h"
+
+#define TYPE_FROM_GENRE (0)
+#define TYPE_FROM_RESOURCE (1)
+#define TYPE_FROM_ISSUANCE (2)
+
+typedef struct match_type {
+ char *name;
+ int type;
+ int level;
+} match_type;
+
+int type_from_mods_hints( fields *in, int mode, match_type matches[], int nmatches, int type_unknown );
+
+#endif