comparison Sources/Autogenerated/sdk_OrthancPluginReceivedInstanceAction.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_OrthancPluginReceivedInstanceAction_Type.tp_dict, "KEEP_AS_IS", PyLong_FromLong(1)); 67 {
68 PyDict_SetItemString(sdk_OrthancPluginReceivedInstanceAction_Type.tp_dict, "MODIFY", PyLong_FromLong(2)); 68 PyObject* tmp = PyLong_FromLong(1);
69 PyDict_SetItemString(sdk_OrthancPluginReceivedInstanceAction_Type.tp_dict, "DISCARD", PyLong_FromLong(3)); 69 PyDict_SetItemString(sdk_OrthancPluginReceivedInstanceAction_Type.tp_dict, "KEEP_AS_IS", tmp);
70 Py_DECREF(tmp);
71 }
72
73 {
74 PyObject* tmp = PyLong_FromLong(2);
75 PyDict_SetItemString(sdk_OrthancPluginReceivedInstanceAction_Type.tp_dict, "MODIFY", tmp);
76 Py_DECREF(tmp);
77 }
78
79 {
80 PyObject* tmp = PyLong_FromLong(3);
81 PyDict_SetItemString(sdk_OrthancPluginReceivedInstanceAction_Type.tp_dict, "DISCARD", tmp);
82 Py_DECREF(tmp);
83 }
84
70 85
71 Py_INCREF(&sdk_OrthancPluginReceivedInstanceAction_Type); 86 Py_INCREF(&sdk_OrthancPluginReceivedInstanceAction_Type);
72 if (PyModule_AddObject(module, "ReceivedInstanceAction", (PyObject *)&sdk_OrthancPluginReceivedInstanceAction_Type) < 0) 87 if (PyModule_AddObject(module, "ReceivedInstanceAction", (PyObject *)&sdk_OrthancPluginReceivedInstanceAction_Type) < 0)
73 { 88 {
74 OrthancPlugins::LogError("Cannot register Python enumeration: OrthancPluginReceivedInstanceAction"); 89 OrthancPlugins::LogError("Cannot register Python enumeration: OrthancPluginReceivedInstanceAction");