client.h 940 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* Gearman server and library
  2. * Copyright (C) 2008 Brian Aker, Eric Day
  3. * All rights reserved.
  4. *
  5. * Use and distribution licensed under the BSD license. See
  6. * the COPYING file in the parent directory for full text.
  7. */
  8. /**
  9. * @file
  10. * @brief Client Declarations
  11. */
  12. #pragma once
  13. #include <libgearman-server/struct/client.h>
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. /**
  18. * @addtogroup gearman_server_client Client Declarations
  19. * @ingroup gearman_server
  20. *
  21. * This is a low level interface for gearman server clients. This is used
  22. * internally by the server interface, so you probably want to look there first.
  23. *
  24. * @{
  25. */
  26. /**
  27. * Add a new client to a server instance.
  28. */
  29. GEARMAN_API
  30. gearman_server_client_st *
  31. gearman_server_client_add(gearman_server_con_st *con);
  32. /**
  33. * Free a server client structure.
  34. */
  35. GEARMAN_API
  36. void gearman_server_client_free(gearman_server_client_st *client);
  37. /** @} */
  38. #ifdef __cplusplus
  39. }
  40. #endif