aboutsummaryrefslogtreecommitdiffstats
path: root/src/grt/ghwlib.h
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-08-05 19:02:17 +0200
committerTristan Gingold <tgingold@free.fr>2020-08-05 19:02:17 +0200
commit8b101ef0fdb36145cbd7afbfe46fdd5a09237170 (patch)
treeaaf402d63fd7df9a3ad728f2fbd60e75702f9fde /src/grt/ghwlib.h
parent3d3b0672bb0d99d6e0a50883bbd0f86110bc5726 (diff)
downloadghdl-8b101ef0fdb36145cbd7afbfe46fdd5a09237170.tar.gz
ghdl-8b101ef0fdb36145cbd7afbfe46fdd5a09237170.tar.bz2
ghdl-8b101ef0fdb36145cbd7afbfe46fdd5a09237170.zip
grt: import changes from gtkwave to ghwlib
Diffstat (limited to 'src/grt/ghwlib.h')
-rw-r--r--src/grt/ghwlib.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/grt/ghwlib.h b/src/grt/ghwlib.h
index 3c0fecc10..4937da928 100644
--- a/src/grt/ghwlib.h
+++ b/src/grt/ghwlib.h
@@ -24,6 +24,11 @@
#include <stdio.h>
#include <stdlib.h>
+/* To be libraries friendly. */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
/* The ghwlib uses the standard c99 int32_t and int64_t. They are declared
in stdint.h. Header inttypes.h includes stdint.h and provides macro for
printf and co specifiers. Use it if known to be available. */
@@ -432,6 +437,8 @@ enum ghw_res {
ghw_res_other = 3
};
+enum ghw_res ghw_read_sm_hdr (struct ghw_handler *h, int *list);
+
int ghw_read_sm (struct ghw_handler *h, enum ghw_sm_type *sm);
int ghw_read_dump (struct ghw_handler *h);