41
#define STRINGIFY(x) #x
42
#define TOSTRING(x) STRINGIFY(x)
43
#define AT __FILE__ ":" TOSTRING(__LINE__)
44
#define GEARMAN_AT __func__, AT
46
#define gearman_perror(__universal, B) gearman_universal_set_perror((__universal), __func__, AT, (B))
47
#define gearman_error(__universal, B, C) gearman_universal_set_error((__universal), (B), __func__, AT, (C))
48
#define gearman_gerror(__universal, __gearman_return_t) gearman_universal_set_gerror((__universal), (__gearman_return_t), __func__, AT)
51
gearman_return_t gearman_universal_set_error(gearman_universal_st&,
55
const char *format, ...);
57
gearman_return_t gearman_universal_set_perror(gearman_universal_st&,
58
const char *function, const char *position,
61
gearman_return_t gearman_universal_set_gerror(gearman_universal_st&,
64
const char *position);
67
41
// Get next connection that is ready for I/O.
69
43
gearman_connection_st *gearman_ready(gearman_universal_st&);