Changeset 621:04dbea46c7a2 in freeDiameter for extensions/dbg_interactive
- Timestamp:
- Dec 7, 2010, 11:13:58 AM (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- extensions/dbg_interactive
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/dbg_interactive/dbg_interactive.c
r618 r621 66 66 67 67 Py_Initialize(); 68 69 #if PY_VERSION_HEX >= 0x03000000 70 PyInit__diwrap(); 71 #else /* PY_VERSION_HEX */ 68 72 init_diwrap(); 73 #endif /* PY_VERSION_HEX */ 69 74 75 /* In future version, it might be better to use the diwrap.py file generated by SWIG here to get the proxy classes definitions */ 70 76 PyRun_SimpleString("from _diwrap import *\n"); 71 77 if (TRACE_BOOL(INFO)) { 72 PyRun_SimpleString("print \"[dbg_interactive] fD \",FD_PROJECT_VERSION_MAJOR,\".\",FD_PROJECT_VERSION_MINOR,\".\",FD_PROJECT_VERSION_REV\n");78 PyRun_SimpleString("print \"[dbg_interactive] \",FD_PROJECT_NAME,FD_PROJECT_VERSION_MAJOR,FD_PROJECT_VERSION_MINOR,FD_PROJECT_VERSION_REV\n"); 73 79 } 74 80 75 /*76 PyRun_SimpleString("config = cvar.fd_g_config\n");77 PyRun_SimpleString("dict = fd_config_cnf_dict_get(config)\n");78 PyRun_SimpleString("fd_dict_dump(dict)\n");79 */80 81 CHECK_POSIX( pthread_create(&pyinterp, NULL, myinterp, conffile) ); 81 82 -
extensions/dbg_interactive/diwrap.i
r618 r621 37 37 %module diwrap 38 38 39 /* Include standard types used in freeDiameter headers */39 /* Include standard types & functions used in freeDiameter headers */ 40 40 %include <stdint.i> 41 42 /* Allow modification of the wrapper for OUTPUT vars */43 %include "typemaps.i"44 41 45 42 %{ 46 43 /* Define types etc. */ 44 #define SWIG 47 45 #include <freeDiameter/extension.h> 48 46 %} 47 48 /* Some functions are not available through the wrapper */ 49 %ignore fd_lib_init; 50 %ignore fd_lib_fini; 51 %ignore fd_sess_start; 52 53 /* Inline functions seems to give problems to SWIG -- just remove the inline definition */ 54 %define __inline__ 55 %enddef 56 57 /* Make some global-variables read-only */ 58 %immutable fd_g_config; 59 %immutable peer_state_str; 60 61 /* Overwrite a few functions prototypes for usability */ 62 extern void fd_list_init ( struct fd_list * list, void * obj = NULL ); 63 49 64 50 65 /* Retrieve the compile-time definitions of freeDiameter */ … … 53 68 %include "freeDiameter/freeDiameter.h" 54 69 70
Note: See TracChangeset
for help on using the changeset viewer.