summaryrefslogtreecommitdiffstats
path: root/Include/pystrhex.h
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2015-04-26 00:41:00 (GMT)
committerGregory P. Smith <greg@krypto.org>2015-04-26 00:41:00 (GMT)
commite3f6393b52b513036e9d3145a4e3802e77d5e3b1 (patch)
tree24db07820b3f413c852d219c487b12e700536025 /Include/pystrhex.h
parent4dff6f6fa6bfdc14c570d0c6a63021640203e1a6 (diff)
downloadcpython-e3f6393b52b513036e9d3145a4e3802e77d5e3b1.zip
cpython-e3f6393b52b513036e9d3145a4e3802e77d5e3b1.tar.gz
cpython-e3f6393b52b513036e9d3145a4e3802e77d5e3b1.tar.bz2
Add the files missing from c9f1630cf2b1 for issue9951.
hg status should be my friend more often...
Diffstat (limited to 'Include/pystrhex.h')
-rw-r--r--Include/pystrhex.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/Include/pystrhex.h b/Include/pystrhex.h
new file mode 100644
index 0000000..1dc1255
--- /dev/null
+++ b/Include/pystrhex.h
@@ -0,0 +1,17 @@
+#ifndef Py_STRHEX_H
+#define Py_STRHEX_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Returns a str() containing the hex representation of argbuf. */
+PyAPI_FUNC(PyObject*) _Py_strhex(const char* argbuf, const Py_ssize_t arglen);
+/* Returns a bytes() containing the ASCII hex representation of argbuf. */
+PyAPI_FUNC(PyObject*) _Py_strhex_bytes(const char* argbuf, const Py_ssize_t arglen);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* !Py_STRHEX_H */