gearman_result_t.rst 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. =============================
  2. Arguments (gearman_result_st)
  3. =============================
  4. --------
  5. SYNOPSIS
  6. --------
  7. #include <libgearman/gearman.h>
  8. .. c:type:: gearman_result_st
  9. .. c:function:: gearman_result_st *gearman_task_result(gearman_task_st *task)
  10. .. c:function:: int64_t gearman_result_integer(const gearman_result_st *self)
  11. .. c:function:: bool gearman_result_boolean(const gearman_result_st *self)
  12. .. c:function:: gearman_string_t gearman_result_string(const gearman_result_st *self)
  13. .. c:function:: gearman_return_t gearman_result_store_string(gearman_result_st *self, gearman_string_t arg)
  14. .. c:function:: void gearman_result_store_integer(gearman_result_st *self, int64_t value)
  15. .. c:function:: gearman_return_t gearman_result_store_value(gearman_result_st *self, const void *value, size_t size)
  16. .. c:function:: size_t gearman_result_size(const gearman_result_st *self)
  17. .. c:function:: const char *gearman_result_value(const gearman_result_st *self)
  18. .. c:function:: bool gearman_result_is_null(const gearman_result_st *self)
  19. Compile and link with -lgearman
  20. -----------
  21. DESCRIPTION
  22. -----------
  23. The :c:type:`gearman_result_st` type represents a result set. :c:type:`gearman_aggregator_fn` is passed on these types which it uses to create a final result that is returned to the client.
  24. :c:func:`gearman_task_result` returns :c:type:`gearman_result_st` from a :c:type:`gearman_task_st`.
  25. A :c:type:`gearman_result_st` can return the resulting value as either a char pointer, boolean, :c:type:`gearman_string_t`, or int64_t.
  26. --------
  27. SEE ALSO
  28. --------
  29. :manpage:`gearmand(8)` :manpage:`libgearman(3)` :manpage:`gearman_client_error()` or :manpage:`gearman_worker_error()`