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.

52 lines
1.4KB

  1. #ifndef __jack_libjack_local_h__
  2. #define __jack_libjack_local_h__
  3. /* Client data structure, in the client's 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. pthread_t thread;
  21. char fifo_prefix[PATH_MAX+1];
  22. void (*on_shutdown)(void *arg);
  23. void *on_shutdown_arg;
  24. char thread_ok : 1;
  25. char first_active : 1;
  26. pthread_t thread_id;
  27. char name[JACK_CLIENT_NAME_SIZE];
  28. #ifdef JACK_USE_MACH_THREADS
  29. /* specific ressources for server/client real-time thread communication */
  30. mach_port_t clienttask, bp, serverport, replyport;
  31. trivial_message message;
  32. pthread_t process_thread;
  33. char rt_thread_ok : 1;
  34. #endif
  35. };
  36. extern int jack_client_deliver_request (const jack_client_t *client, jack_request_t *req);
  37. extern jack_port_t *jack_port_new (const jack_client_t *client, jack_port_id_t port_id, jack_control_t *control);
  38. extern void *jack_zero_filled_buffer;
  39. #endif /* __jack_libjack_local_h__ */