jack2 codebase
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.6KB

  1. /*
  2. Copyright (C) 2005 Grame
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  14. */
  15. #ifndef __JackServerGlobals__
  16. #define __JackServerGlobals__
  17. #include "driver_interface.h"
  18. #include "driver_parse.h"
  19. #include "JackDriverLoader.h"
  20. #include "JackServer.h"
  21. #include <assert.h>
  22. namespace Jack
  23. {
  24. class JackClient;
  25. /*!
  26. \brief Global server static structure: singleton kind of pattern.
  27. */
  28. struct JackServerGlobals
  29. {
  30. static unsigned int fClientCount;
  31. static JackServer* fServer;
  32. JackServerGlobals();
  33. virtual ~JackServerGlobals();
  34. static bool Init();
  35. static void Destroy();
  36. static int Start(const char* server_name,
  37. jack_driver_desc_t* driver_desc,
  38. JSList* driver_params,
  39. int sync,
  40. int temporary,
  41. int time_out_ms,
  42. int rt,
  43. int priority,
  44. int loopback,
  45. int verbose);
  46. static int Stop();
  47. static int Delete();
  48. };
  49. } // end of namespace
  50. #endif