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.

50 lines
1.3KB

  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. /* these two are copied from the engine when the
  14. * client is created.
  15. */
  16. jack_port_type_id_t n_port_types;
  17. jack_shm_info_t* port_segment;
  18. JSList *ports;
  19. pthread_t thread;
  20. char fifo_prefix[PATH_MAX+1];
  21. void (*on_shutdown)(void *arg);
  22. void *on_shutdown_arg;
  23. char thread_ok : 1;
  24. char first_active : 1;
  25. pthread_t thread_id;
  26. #if defined(__APPLE__) && defined(__POWERPC__)
  27. /* specific ressources for server/client real-time thread communication */
  28. mach_port_t clienttask, bp, serverport, replyport;
  29. trivial_message message;
  30. pthread_t process_thread;
  31. #endif
  32. };
  33. extern int jack_client_deliver_request (const jack_client_t *client, jack_request_t *req);
  34. extern jack_port_t *jack_port_new (const jack_client_t *client, jack_port_id_t port_id, jack_control_t *control);
  35. extern void *jack_zero_filled_buffer;
  36. #endif /* __jack_libjack_local_h__ */