theConfig 10.0
Loading...
Searching...
No Matches
LibLcConfig_private_py.h File Reference

tag: nhi1-release-250425 More...

#include "LibLcConfig_py.h"
+ Include dependency graph for LibLcConfig_private_py.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

enum MkErrorE pylcconfig_ConfigIncludeCall (LcConfigIncludeCallF_ARGS)
 
void pylcconfig_ConfigIncludeFree (LcConfigIncludeFreeF_ARGS)
 
enum MkErrorE pylcconfig_SettingDeleteCall (LcSettingDeleteCallF_ARGS)
 
void pylcconfig_SettingDeleteFree (LcSettingDeleteFreeF_ARGS)
 

Detailed Description

tag: nhi1-release-250425

Definition in file LibLcConfig_private_py.h.

Function Documentation

◆ pylcconfig_ConfigIncludeCall()

enum MkErrorE pylcconfig_ConfigIncludeCall ( LcConfigIncludeCallF_ARGS )

Definition at line 27 of file LcCall_py.c.

28{
30
31 PyObject * const callable = (PyObject*) cfg->fConfigIncludeData;
32
33 PyObject * incDirO = STRN2VAL(incDir);
34 PyObject * pathO = STRN2VAL(path);
35 PyObject * retO = OT_TMP_BFL_OBJ(ret_inout);
36 PyObject * resultO = NULL;
37
38 PyErr_Clear();
39
40 // call the function
41 resultO = PyObject_CallFunctionObjArgs(callable, incDirO, pathO, retO, NULL);
42
43 if (resultO == NULL) goto error;
44
45end:
46 Py_CLEAR(incDirO);
47 Py_CLEAR(pathO);
48 Py_CLEAR(resultO);
49 return MkErrorGetCode_0E();
50
51error:
54 goto end;
55}
#define OT_ERROR_LNG_2_META(m)
#define OT_TMP_BFL_OBJ(val)
#define STRN2VAL(nat)
#define LcConfigIncludeCallF_CHECK
#define MkErrorGetCode_0E()
#define MkErrorStack_0E()

◆ pylcconfig_ConfigIncludeFree()

void pylcconfig_ConfigIncludeFree ( LcConfigIncludeFreeF_ARGS )

Definition at line 58 of file LcCall_py.c.

59{
60 MkCallFree(cfg->fConfigIncludeData);
61
62 //OT_REF_DECR_AND_NULL(cfg->fConfigIncludeHook);
63
64 cfg->fConfigIncludeCall = NULL;
65 cfg->fConfigIncludeFree = NULL;
66}
#define MkCallFree(cb)

◆ pylcconfig_SettingDeleteCall()

enum MkErrorE pylcconfig_SettingDeleteCall ( LcSettingDeleteCallF_ARGS )

Definition at line 82 of file LcCall_py.c.

83{
85
86//printV("cfg=%p, cfs=%p, cfg->fSettingDeleteData=%p\n", cfg, cfs, cfg->fSettingDeleteData)
87
88 PyObject * const callable = (PyObject*) cfg->fSettingDeleteData;
89
90 PyObject * resultO = NULL;
91
92 PyErr_Clear();
93
94//printP(cfs)
95 PyObject* cfsHdl = LONG2VAL(MkObjectHandleGet_1X(cfs));
96
97 // call the function
98 resultO = PyObject_CallFunctionObjArgs(callable, cfsHdl, NULL);
99
100 if (resultO == NULL) {
102 } else {
103 Py_CLEAR(resultO);
104 }
105
106 return MkErrorStack_0E_Check();
107}
#define LONG2VAL(nat)
#define LcSettingDeleteCallF_CHECK
#define MkErrorStack_0E_Check()
#define MkObjectHandleGet_1X(x)

◆ pylcconfig_SettingDeleteFree()

void pylcconfig_SettingDeleteFree ( LcSettingDeleteFreeF_ARGS )

Definition at line 109 of file LcCall_py.c.

110{
111 MK(CallFree)(&cfg->fSettingDeleteData);
112
113 //OT_REF_DECR_AND_NULL(cfg->fSettingDeleteHook);
114
115 cfg->fSettingDeleteCall = NULL;
116 cfg->fSettingDeleteFree = NULL;
117}
#define MK(n)