comparison Sources/Autogenerated/sdk_OrthancPluginJobStepStatus.impl.h @ 131:c55b0583084b

integration fix-leak->mainline
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 30 Aug 2023 11:52:45 +0200
parents 65ec5597ec70 5b59ebc267e1
children 71d305c29cfa
comparison
equal deleted inserted replaced
130:a3f77cf16396 131:c55b0583084b
62 * "Class attributes can be added by setting the tp_dict to a 62 * "Class attributes can be added by setting the tp_dict to a
63 * dictionary with these attributes before calling PyType_Ready() 63 * dictionary with these attributes before calling PyType_Ready()
64 * (in your module initialization function)." 64 * (in your module initialization function)."
65 **/ 65 **/
66 66
67 PyDict_SetItemString(sdk_OrthancPluginJobStepStatus_Type.tp_dict, "SUCCESS", PyLong_FromLong(1)); 67 {
68 PyDict_SetItemString(sdk_OrthancPluginJobStepStatus_Type.tp_dict, "FAILURE", PyLong_FromLong(2)); 68 PyObject* tmp = PyLong_FromLong(1);
69 PyDict_SetItemString(sdk_OrthancPluginJobStepStatus_Type.tp_dict, "CONTINUE", PyLong_FromLong(3)); 69 PyDict_SetItemString(sdk_OrthancPluginJobStepStatus_Type.tp_dict, "SUCCESS", tmp);
70 Py_DECREF(tmp);
71 }
72
73 {
74 PyObject* tmp = PyLong_FromLong(2);
75 PyDict_SetItemString(sdk_OrthancPluginJobStepStatus_Type.tp_dict, "FAILURE", tmp);
76 Py_DECREF(tmp);
77 }
78
79 {
80 PyObject* tmp = PyLong_FromLong(3);
81 PyDict_SetItemString(sdk_OrthancPluginJobStepStatus_Type.tp_dict, "CONTINUE", tmp);
82 Py_DECREF(tmp);
83 }
84
70 85
71 Py_INCREF(&sdk_OrthancPluginJobStepStatus_Type); 86 Py_INCREF(&sdk_OrthancPluginJobStepStatus_Type);
72 if (PyModule_AddObject(module, "JobStepStatus", (PyObject *)&sdk_OrthancPluginJobStepStatus_Type) < 0) 87 if (PyModule_AddObject(module, "JobStepStatus", (PyObject *)&sdk_OrthancPluginJobStepStatus_Type) < 0)
73 { 88 {
74 OrthancPlugins::LogError("Cannot register Python enumeration: OrthancPluginJobStepStatus"); 89 OrthancPlugins::LogError("Cannot register Python enumeration: OrthancPluginJobStepStatus");