gearman_worker_grab_job - Worker Declarations
gearman_job_st *gearman_worker_grab_job(gearman_worker_st *worker,
gearman_job_st *job, gearman_return_t *ret_ptr);
Get a job from one of the job servers. This does not used the callback
interface below, which means results must be sent back to the job
server manually. It is also the responsibility of the caller to free
the job once it has been completed. *
[in] worker Structure previously initialized with
gearman_worker_create() or gearman_worker_clone().
[in] job Caller allocated structure, or NULL to allocate one.
[out] ret_ptr Standard gearman return value.
On success, a pointer to the (possibly allocated) structure. On failure
this will be NULL.
The Gearman homepage: http://www.gearman.org/
Bugs should be reported at https://bugs.launchpad.net/gearmand
Copyright (C) 2008 Brian Aker, Eric Day. All rights reserved.
Use and distribution licensed under the BSD license. See the COPYING
file in the original source for full text.