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.

53 lines
1.9KB

  1. /*
  2. * Client creation and destruction interfaces for JACK engine.
  3. *
  4. * Copyright (C) 2001-2003 Paul Davis
  5. * Copyright (C) 2004 Jack O'Quin
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of the
  10. * License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. */
  21. static char *client_state_names[] = {
  22. "Not triggered",
  23. "Triggered",
  24. "Running",
  25. "Finished"
  26. };
  27. static inline int
  28. jack_client_is_internal (jack_client_internal_t *client)
  29. {
  30. return (client->control->type == ClientInternal) ||
  31. (client->control->type == ClientDriver);
  32. }
  33. int jack_client_activate (jack_engine_t *engine, jack_client_id_t id);
  34. int jack_client_deactivate (jack_engine_t *engine, jack_client_id_t id);
  35. int jack_client_create (jack_engine_t *engine, int client_fd);
  36. void jack_client_delete (jack_engine_t *engine,
  37. jack_client_internal_t *client);
  38. int jack_client_disconnect (jack_engine_t *engine, int fd);
  39. jack_client_internal_t *
  40. jack_create_driver_client (jack_engine_t *engine, char *name);
  41. void jack_intclient_handle_request (jack_engine_t *engine,
  42. jack_request_t *req);
  43. void jack_intclient_load_request (jack_engine_t *engine,
  44. jack_request_t *req);
  45. void jack_intclient_name_request (jack_engine_t *engine,
  46. jack_request_t *req);
  47. void jack_intclient_unload_request (jack_engine_t *engine,
  48. jack_request_t *req);
  49. void jack_remove_clients (jack_engine_t* engine);