GEARMAN_RESULT_INTEGER(3)

✨ NAME ✨

gearman_result_integer β€” Gearmand Documentation, http://gearman.info/

okay bestie, listen up, we're doing the Gearman result thing today and honestly? it's lowkey the most underrated glow-up in the whole libgearman library. let's get into it πŸ’–


🌸 SYNOPSIS 🌸

#include <libgearman/gearman.h>

type gearman_result_st

gearman_result_st *gearman_task_result(gearman_task_st *task)

int64_t gearman_result_integer(const gearman_result_st *self)

bool gearman_result_boolean(const gearman_result_st *self)

gearman_string_t gearman_result_string(const gearman_result_st *self)

gearman_return_t gearman_result_store_string(gearman_result_st *self, gearman_string_t arg)

void gearman_result_store_integer(gearman_result_st *self, int64_t value)

gearman_return_t gearman_result_store_value(gearman_result_st *self, const void *value, size_t size)

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)

Compile and link with -lgearman

not me dropping the whole function roster like it's a fit check 😭 every single one is in there, no skips, we don't do skips here 🫢

πŸ’… DESCRIPTION πŸ’…

The gearman_result_st type represents a result set. it's giving the whole vibe, not just one value.

gearman_aggregator_fn is passed on these types, which it uses to create a final result that is returned to the client. so like, the aggregator does the assembling, the result set does the holding, and the client gets the finished product. teamwork, periodt. πŸ”₯

gearman_task_result() returns gearman_result_st from a gearman_task_st. hand it a task, get a result set back. iconic behavior honestly πŸ‘‘

A gearman_result_st can return the resulting value as either a char pointer, a boolean, a gearman_string_t, or an int64_t. pick your fighter, bestie β€” all four are valid, and this page is literally named after the int64_t one. main character energy ⭐


πŸ¦‹ SEE ALSO πŸ¦‹

go read those too, iykwim. the lore is deep and honestly you deserve the full picture 🌈

πŸ’œ Author πŸ’œ

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

2011-2014, Data Differential, http://www.datadifferential.com/


and that's the whole page babes πŸ’– this was GEARMAN_RESULT_INTEGER(3) from the 1.1.21+ds release, dated Feb 04, 2026, coming at you straight from the Gearmand corner of the universe. stay hydrated, read your manpages, and may your aggregators always aggregate correctly πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from