wakeup.h 635 B

1234567891011121314151617181920212223242526272829303132
  1. /* Gearman server and library
  2. * Copyright (C) 2011 DataDifferential
  3. * Copyright (C) 2008 Brian Aker, Eric Day
  4. * All rights reserved.
  5. *
  6. * Use and distribution licensed under the BSD license. See
  7. * the COPYING file in the parent directory for full text.
  8. */
  9. #pragma once
  10. #include <libgearman-1.0/visibility.h>
  11. typedef enum
  12. {
  13. GEARMAND_WAKEUP_PAUSE,
  14. GEARMAND_WAKEUP_SHUTDOWN,
  15. GEARMAND_WAKEUP_SHUTDOWN_GRACEFUL,
  16. GEARMAND_WAKEUP_CON,
  17. GEARMAND_WAKEUP_RUN
  18. } gearmand_wakeup_t;
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. GEARMAN_INTERNAL_API
  23. const char *gearmand_strwakeup(gearmand_wakeup_t arg);
  24. #ifdef __cplusplus
  25. }
  26. #endif