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 πŸ‘€


πŸ“ Author

Data Differential http://www.datadifferential.com/

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