jack1 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.

58 lines
1.5KB

  1. #ifndef __jack_libjack_local_h__
  2. #define __jack_libjack_local_h__
  3. /* Client data structure, in the client address space. */
  4. struct _jack_client {
  5. jack_control_t *engine;
  6. jack_client_control_t *control;
  7. jack_shm_info_t engine_shm;
  8. jack_shm_info_t control_shm;
  9. struct pollfd* pollfd;
  10. int pollmax;
  11. int graph_next_fd;
  12. int request_fd;
  13. int upstream_is_jackd;
  14. /* these two are copied from the engine when the
  15. * client is created.
  16. */
  17. jack_port_type_id_t n_port_types;
  18. jack_shm_info_t* port_segment;
  19. JSList *ports;
  20. JSList *ports_ext;
  21. pthread_t thread;
  22. char fifo_prefix[PATH_MAX+1];
  23. void (*on_shutdown)(void *arg);
  24. void *on_shutdown_arg;
  25. char thread_ok : 1;
  26. char first_active : 1;
  27. pthread_t thread_id;
  28. char name[JACK_CLIENT_NAME_SIZE];
  29. #ifdef JACK_USE_MACH_THREADS
  30. /* specific ressources for server/client real-time thread communication */
  31. mach_port_t clienttask, bp, serverport, replyport;
  32. trivial_message message;
  33. pthread_t process_thread;
  34. char rt_thread_ok : 1;
  35. #endif
  36. };
  37. extern int jack_client_deliver_request (const jack_client_t *client,
  38. jack_request_t *req);
  39. extern jack_port_t *jack_port_new (const jack_client_t *client,
  40. jack_port_id_t port_id,
  41. jack_control_t *control);
  42. extern void *jack_zero_filled_buffer;
  43. extern void jack_set_clock_source (jack_timer_type_t);
  44. #endif /* __jack_libjack_local_h__ */