# HG changeset patch # User Sebastien Decugis # Date 1330413270 -3600 # Node ID 8e3a4c8fb9752296f68a6a8aeacb9da41f6792a4 # Parent a6a1264976669e8f5417878b65dc5de5397cc844 Started fixing dbg_interactive sample -- hangs in fd_sess_fromsid diff -r a6a126497666 -r 8e3a4c8fb975 doc/dbg_interactive.py.sample --- 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 diff -r a6a126497666 -r 8e3a4c8fb975 extensions/dbg_interactive/dbg_interactive.i --- 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 *********************************************************/