summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorRichard Hansen <rhansen@rhansen.org>2024-10-12 20:57:27 (GMT)
committerGitHub <noreply@github.com>2024-10-12 20:57:27 (GMT)
commit330c527299a5380f39c658bfa9321706cabc445d (patch)
tree1775de190a8bf9674f0131504aac0981b430b7d9 /Include/cpython
parentfa52b82c91a8e1a0971bd5fef656473ec93f41e3 (diff)
downloadcpython-330c527299a5380f39c658bfa9321706cabc445d.zip
cpython-330c527299a5380f39c658bfa9321706cabc445d.tar.gz
cpython-330c527299a5380f39c658bfa9321706cabc445d.tar.bz2
gh-124872: Change PyContext_WatchCallback to take PyObject (#124737)
The PyContext struct is not intended to be public, and users of the API don't need anything more specific than PyObject. Also see gh-78943.
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cpython/context.h b/Include/cpython/context.h
index d722b4d..3c9be78 100644
--- a/Include/cpython/context.h
+++ b/Include/cpython/context.h
@@ -52,7 +52,7 @@ typedef enum {
* if the callback returns with an exception set, it must return -1. Otherwise
* it should return 0
*/
-typedef int (*PyContext_WatchCallback)(PyContextEvent, PyContext *);
+typedef int (*PyContext_WatchCallback)(PyContextEvent, PyObject *);
/*
* Register a per-interpreter callback that will be invoked for context object