[asterisk-commits] dlee: branch dlee/stupid-function-pointers r393575 - in /team/dlee/stupid-fun...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 3 14:28:04 CDT 2013


Author: dlee
Date: Wed Jul  3 14:28:02 2013
New Revision: 393575

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=393575
Log:
WebSockets need indirection, too

Modified:
    team/dlee/stupid-function-pointers/res/res_stasis_http_events.c
    team/dlee/stupid-function-pointers/rest-api-templates/res_stasis_http_resource.c.mustache

Modified: team/dlee/stupid-function-pointers/res/res_stasis_http_events.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/stupid-function-pointers/res/res_stasis_http_events.c?view=diff&rev=393575&r1=393574&r2=393575
==============================================================================
--- team/dlee/stupid-function-pointers/res/res_stasis_http_events.c (original)
+++ team/dlee/stupid-function-pointers/res/res_stasis_http_events.c Wed Jul  3 14:28:02 2013
@@ -64,7 +64,7 @@
 	}
 #if defined(AST_DEVMODE)
 	session = ari_websocket_session_create(ws_session,
-		ari_validate_event);
+		ari_validate_event_fn());
 #else
 	session = ari_websocket_session_create(ws_session, NULL);
 #endif

Modified: team/dlee/stupid-function-pointers/rest-api-templates/res_stasis_http_resource.c.mustache
URL: http://svnview.digium.com/svn/asterisk/team/dlee/stupid-function-pointers/rest-api-templates/res_stasis_http_resource.c.mustache?view=diff&rev=393575&r1=393574&r2=393575
==============================================================================
--- team/dlee/stupid-function-pointers/rest-api-templates/res_stasis_http_resource.c.mustache (original)
+++ team/dlee/stupid-function-pointers/rest-api-templates/res_stasis_http_resource.c.mustache Wed Jul  3 14:28:02 2013
@@ -125,7 +125,7 @@
 {{> param_parsing}}
 #if defined(AST_DEVMODE)
 	session = ari_websocket_session_create(ws_session,
-		ari_validate_{{response_class.c_name}});
+		ari_validate_{{response_class.c_name}}_fn());
 #else
 	session = ari_websocket_session_create(ws_session, NULL);
 #endif




More information about the asterisk-commits mailing list