summaryrefslogtreecommitdiff
path: root/Include/pystrhex.h
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2015-04-26 00:41:00 +0000
committerGregory P. Smith <greg@krypto.org>2015-04-26 00:41:00 +0000
commit49789e1903f833b90e5a9d6d455ce79946831133 (patch)
treeb029f42533af7c567a8b4703bbb1d93ddf4fe672 /Include/pystrhex.h
parent5bcfa065bc65a6b765cd3c44b861b5fd25b4c1bb (diff)
downloadcpython-49789e1903f833b90e5a9d6d455ce79946831133.tar.gz
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 0000000000..1dc125575b
--- /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 */