Skip to content

Commit

Permalink
app_python: updated the ctl tool to generate the exports
Browse files Browse the repository at this point in the history
(cherry picked from commit f4c6365)
  • Loading branch information
miconda committed Nov 27, 2017
1 parent d56ec1c commit ba8bc6a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/modules/app_python/apy_kemi_export.c
Expand Up @@ -9279,6 +9279,9 @@ PyCFunction sr_apy_kemi_export_associate(sr_kemi_t *ket)
_sr_apy_kemi_export_list[i].ket = ket;
return _sr_apy_kemi_export_list[i].pfunc;
}
if(_sr_apy_kemi_export_list[i].ket==ket) {
return _sr_apy_kemi_export_list[i].pfunc;
}
}
LM_ERR("no more indexing slots\n");
return NULL;
Expand Down
7 changes: 5 additions & 2 deletions src/modules/app_python/utils/app_python_ctl
Expand Up @@ -34,7 +34,7 @@ cat > ../apy_kemi_export.h <<EOF
#define __APY_KEMI_FLIB_H__
#include <Python.h>
#include "../../kemi.h"
#include "../../core/kemi.h"
#define SR_APY_KEMI_EXPORT_SIZE ${KEMI_MAX_SIZE}
Expand Down Expand Up @@ -83,7 +83,7 @@ cat > ../apy_kemi_export.c <<EOF
#include <Python.h>
#include "../../dprint.h"
#include "../../core/dprint.h"
#include "apy_kemi.h"
#include "apy_kemi_export.h"
Expand Down Expand Up @@ -138,6 +138,9 @@ PyCFunction sr_apy_kemi_export_associate(sr_kemi_t *ket)
_sr_apy_kemi_export_list[i].ket = ket;
return _sr_apy_kemi_export_list[i].pfunc;
}
if(_sr_apy_kemi_export_list[i].ket==ket) {
return _sr_apy_kemi_export_list[i].pfunc;
}
}
LM_ERR("no more indexing slots\n");
return NULL;
Expand Down

0 comments on commit ba8bc6a

Please sign in to comment.