GEARMAN_RESULT_BOOLEAN(3)
β¨ NAME β¨
gearman_result_boolean β that's the icon of this page, bestie π and it's part of the Gearmand Documentation over at http://gearman.info/. You're also lowkey reading the page in section 3 of the gearmand manual (GEARMAN_RESULT_BOOLEAN(3)), which is exactly where the library-call lore lives. π
πΈ SYNOPSIS πΈ
First things first, you gotta include the header:
#include <libgearman/gearman.h>
and then here's literally the whole cast, like a group photo where everyone showed up π«Ά:
type gearman_result_st
gearman_result_st *gearman_task_result(gearman_task_st <#c.gearman_task_st> *task)
int64_t <#c.int64_t> gearman_result_integer(const gearman_result_st *self)
bool gearman_result_boolean(const gearman_result_st *self)
gearman_string_t <#c.gearman_string_t> gearman_result_string(const gearman_result_st *self)
gearman_return_t <#c.gearman_return_t>
gearman_result_store_string(gearman_result_st *self, gearman_string_t <#
c.gearman_string_t> arg)
void gearman_result_store_integer(gearman_result_st *self, int64_t <#c
.int64_t> value)
gearman_return_t <#c.gearman_return_t>
gearman_result_store_value(gearman_result_st *self, const void *value,
size_t <#c.size_t> size)
size_t <#c.size_t> gearman_result_size(const gearman_result_st *self)
const char *gearman_result_value(const gearman_result_st *self)
bool gearman_result_is_null(const gearman_result_st *self)
And when you actually build your thing, do not forget this part: compile and link with -lgearman. Periodt. π
π¦ DESCRIPTION π¦
Okay so, the way that the gearman_result_st type works? It represents a result set. That's it, that's the vibe. β¨
Then gearman_aggregator_fn <#c.gearman_aggregator_fn> gets passed on these types, and it uses them to create a final result that gets returned to the client. Main character energy, honestly. π
gearman_task_result() returns a gearman_result_st from a gearman_task_st <#c.gearman_task_st>.
And here's the part I'm obsessed with: a gearman_result_st can give you back the resulting value as either a char pointer, a boolean, a gearman_string_t <#c.gearman_string_t>, or an int64_t. Like, choose your fighter, it does all of them. π
π SEE ALSO π
gearmand(8)libgearman(3)gearman_client_error()orgearman_worker_error()
π Author
Data Differential http://www.datadifferential.com/
βοΈ Copyright
2011-2014, Data Differential, http://www.datadifferential.com/
okay that's the whole page bestie, ily, go forth and read your results π This one's from Gearmand version 1.1.21+ds, dated Feb 04, 2026 β so yeah, it's fresh, it's current, it ate. ππ§π
π¦ where this page comes from
- ubuntu resolute: libgearman-dev 1.1.21+ds-1ubuntu3 Β· BSD-3-Clause
- ubuntu stonking: libgearman-dev 1.1.21+ds-1ubuntu3 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms