aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/libghdl/vhdl/formatters.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyGHDL/libghdl/vhdl/formatters.py')
-rw-r--r--pyGHDL/libghdl/vhdl/formatters.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/pyGHDL/libghdl/vhdl/formatters.py b/pyGHDL/libghdl/vhdl/formatters.py
new file mode 100644
index 000000000..9c8bf9afb
--- /dev/null
+++ b/pyGHDL/libghdl/vhdl/formatters.py
@@ -0,0 +1,14 @@
+from libghdl import libghdl
+from ctypes import c_int32, c_char_p
+
+Indent_String = libghdl.vhdl__formatters__indent_string
+
+Allocate_Handle = libghdl.vhdl__formatters__allocate_handle
+
+Get_Length = libghdl.vhdl__formatters__get_length
+Get_Length.restype = c_int32
+
+Get_C_String = libghdl.vhdl__formatters__get_c_string
+Get_C_String.restype = c_char_p
+
+Free_Handle = libghdl.vhdl__formatters__free_handle