NSM: Add unknown message handler.

This commit is contained in:
Jonathan Moore Liles 2013-03-28 17:19:38 -07:00
parent 815a16f96f
commit 37b881b638
1 changed files with 8 additions and 0 deletions

View File

@ -2052,6 +2052,13 @@ OSC_HANDLER( ping )
return 0; return 0;
} }
OSC_HANDLER( null )
{
WARNING( "Unrecognized message with type signature \"%s\" at path \"%s\"", types, path );
return 0;
}
@ -2191,6 +2198,7 @@ int main(int argc, char *argv[])
osc_server->add_method( "/nsm/server/close", "", OSC_NAME( close ), NULL, "" ); osc_server->add_method( "/nsm/server/close", "", OSC_NAME( close ), NULL, "" );
osc_server->add_method( "/nsm/server/quit", "", OSC_NAME( quit ), NULL, "" ); osc_server->add_method( "/nsm/server/quit", "", OSC_NAME( quit ), NULL, "" );
osc_server->add_method( NULL, NULL, OSC_NAME( null ),NULL, "" );
if ( detach ) if ( detach )
{ {