Mercurial > hg > freeDiameter
changeset 782:8e3a4c8fb975
Started fixing dbg_interactive sample -- hangs in fd_sess_fromsid
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Tue, 28 Feb 2012 08:14:30 +0100 |
parents | a6a126497666 |
children | 229d7dee6a27 |
files | doc/dbg_interactive.py.sample extensions/dbg_interactive/dbg_interactive.i |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/dbg_interactive.py.sample Tue Feb 21 18:46:28 2012 +0100 +++ b/doc/dbg_interactive.py.sample Tue Feb 28 08:14:30 2012 +0100 @@ -52,7 +52,7 @@ # Print messages to freeDiameter's debug facility # Note: the python version does not support printf-like argument list. The formating should be done in python. # See SWIG documentation about varargs functions for more information. -fd_log_debug("3 + 4 = %d\n" % (7)) +fd_log_debug_fstr(None, "3 + 4 = %d\n" % (7)) # Display some framework state information
--- a/extensions/dbg_interactive/dbg_interactive.i Tue Feb 21 18:46:28 2012 +0100 +++ b/extensions/dbg_interactive/dbg_interactive.i Tue Feb 28 08:14:30 2012 +0100 @@ -109,6 +109,7 @@ ***********************************/ %apply (char *STRING, size_t LENGTH) { ( char * string, size_t len ) }; +%apply (char *STRING, size_t LENGTH) { ( uint8_t * string, size_t len ) }; /* Generic typemap for functions that create something */ %typemap(in, numinputs=0,noblock=1) SWIGTYPE ** OUTPUT (void *temp = NULL) { @@ -154,6 +155,7 @@ int fd_sess_fromsid ( unsigned char * STRING, size_t LENGTH, struct session ** OUTPUT, int * BOOL_OUT); + /********************************************************* Now, create wrappers for (almost) all objects from fD API *********************************************************/