/[svn]/liblscp/trunk/examples/example_client.c
ViewVC logotype

Diff of /liblscp/trunk/examples/example_client.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3399 by persson, Tue Sep 28 18:00:38 2010 UTC revision 3400 by capela, Tue Dec 12 17:47:01 2017 UTC
# Line 2  Line 2 
2  //  //
3  /****************************************************************************  /****************************************************************************
4     liblscp - LinuxSampler Control Protocol API     liblscp - LinuxSampler Control Protocol API
5     Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2017, rncbc aka Rui Nuno Capela. All rights reserved.
6    
7     This program is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or
8     modify it under the terms of the GNU General Public License     modify it under the terms of the GNU General Public License
# Line 352  typedef lscp_fxsend_info_t *         fxs Line 352  typedef lscp_fxsend_info_t *         fxs
352  typedef lscp_midi_instrument_t *     midi_instruments;  typedef lscp_midi_instrument_t *     midi_instruments;
353  typedef lscp_midi_instrument_info_t *midi_instrument_info;  typedef lscp_midi_instrument_info_t *midi_instrument_info;
354    
355  #define CLIENT_TEST(p, t, x) { clock_t c; void *v; g_test_count++; \  #define CLIENT_TEST(p, t, x) { clock_t c; g_test_count++; \
356          printf("\n" #x ":\n"); client_test_start(&c); v = (void *) (x); \          printf("\n" #x ":\n"); client_test_start(&c); \
357          printf("  elapsed=%gs  errno=%d  result='%s...' ret=", \          printf("  elapsed=%gs  errno=%d  result='%s...' ret=", \
358                  client_test_elapsed(&c), \                  client_test_elapsed(&c), \
359                  lscp_client_get_errno(p), \                  lscp_client_get_errno(p), \
360                  lscp_client_get_result(p)); \                  lscp_client_get_result(p)); \
361          if (client_test_##t((t)(v))) { g_test_fails++; getchar(); } \          if (client_test_##t((t)(x))) { g_test_fails++; getchar(); } \
362          else if (g_test_step) getchar(); }          else if (g_test_step) getchar(); }
363    
364    

Legend:
Removed from v.3399  
changed lines
  Added in v.3400

  ViewVC Help
Powered by ViewVC