2
* Summary: Result structure used for libgearman.
4
* Copy: See Copyright for the status of this software.
9
#ifndef __GEARMAN_RESULT_H__
10
#define __GEARMAN_RESULT_H__
16
struct gearman_result_st {
17
gearman_action action;
18
gearman_allocated is_allocated;
20
gearman_byte_array_st handle;
21
gearman_byte_array_st value;
27
void gearman_result_free(gearman_result_st *result);
28
void gearman_result_reset(gearman_result_st *ptr);
29
gearman_result_st *gearman_result_create(gearman_st *ptr,
30
gearman_result_st *result);
31
char *gearman_result_value(gearman_result_st *ptr);
32
size_t gearman_result_length(gearman_result_st *ptr);
34
char *gearman_result_handle(gearman_result_st *ptr);
35
size_t gearman_result_handle_length(gearman_result_st *ptr);
37
gearman_return gearman_result_set_value(gearman_result_st *ptr, char *value, size_t length);
38
gearman_return gearman_result_set_handle(gearman_result_st *ptr, char *handle, size_t length);
44
#endif /* __GEARMAN_RESULT_H__ */