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.

70 lines
1.9KB

  1. /*
  2. Copyright (C) 2001 Paul Davis
  3. Copyright (C) 2004 Jack O'Quin
  4. Copyright (C) 2010 Torben Hohn
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU Lesser General Public License as published by
  7. the Free Software Foundation; either version 2.1 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  16. */
  17. #ifndef __jack_session_int_h__
  18. #define __jack_session_int_h__
  19. #include <stdint.h>
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. enum JackSessionEventType {
  24. JackSessionSave = 1,
  25. JackSessionSaveAndQuit = 2,
  26. JackSessionSaveTemplate = 3
  27. };
  28. typedef enum JackSessionEventType jack_session_event_type_t;
  29. enum JackSessionFlags {
  30. JackSessionSaveError = 0x01,
  31. JackSessionNeedTerminal = 0x02
  32. };
  33. typedef enum JackSessionFlags jack_session_flags_t;
  34. struct _jack_session_event {
  35. jack_session_event_type_t type;
  36. const char *session_dir;
  37. const char *client_uuid;
  38. char *command_line;
  39. jack_session_flags_t flags;
  40. uint32_t future;
  41. };
  42. typedef struct _jack_session_event jack_session_event_t;
  43. typedef void (*JackSessionCallback)(jack_session_event_t *event,
  44. void *arg);
  45. typedef struct {
  46. const char *uuid;
  47. const char *client_name;
  48. const char *command;
  49. jack_session_flags_t flags;
  50. } jack_session_command_t;
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54. #endif