aboutsummaryrefslogtreecommitdiffstats
path: root/libkmod/python/kmod/_util.pxd
diff options
context:
space:
mode:
Diffstat (limited to 'libkmod/python/kmod/_util.pxd')
-rw-r--r--libkmod/python/kmod/_util.pxd20
1 files changed, 20 insertions, 0 deletions
diff --git a/libkmod/python/kmod/_util.pxd b/libkmod/python/kmod/_util.pxd
new file mode 100644
index 0000000..80cbb28
--- /dev/null
+++ b/libkmod/python/kmod/_util.pxd
@@ -0,0 +1,20 @@
+# Copyright (C) 2012 W. Trevor King <wking@tremily.us>
+#
+# This file is part of python-kmod.
+#
+# python-kmod is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Lesser General Public License version 2.1 as published
+# by the Free Software Foundation.
+#
+# python-kmod is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with python-kmod. If not, see <http://www.gnu.org/licenses/>.
+
+cimport _libkmod_h
+
+
+cdef object char_ptr_to_str(_libkmod_h.const_char_ptr bytes)