plugins/python: add missing annotations to help cpychecker
This commit is contained in:

committed by
Todd C. Miller

parent
43e256e34f
commit
b2ae79c2be
@@ -52,6 +52,7 @@ void python_plugin_deinit(struct PluginContext *plugin_ctx);
|
||||
int python_plugin_show_version(struct PluginContext *plugin_ctx,
|
||||
const char *python_callback_name, int isVerbose);
|
||||
|
||||
CPYCHECKER_STEALS_REFERENCE_TO_ARG(3)
|
||||
void python_plugin_close(struct PluginContext *plugin_ctx, const char *callback_name,
|
||||
PyObject *py_args);
|
||||
|
||||
|
@@ -502,6 +502,7 @@ cleanup:
|
||||
debug_return_ptr(py_class);
|
||||
}
|
||||
|
||||
CPYCHECKER_STEALS_REFERENCE_TO_ARG(3)
|
||||
void
|
||||
sudo_module_register_enum(PyObject *py_module, const char *enum_name, PyObject *py_constants_dict)
|
||||
{
|
||||
|
Reference in New Issue
Block a user