title: Creating a Gearman Worker in C
body: <p>I've been trying to implement a Gearman worker with their C API (libgearman). But their documentation for the C API is poor and not complete. Although its very similar to creating workers in other languages such as PHP, I am still unable to Register a function in the worker via *gearman_worker_add_function();* </p>
  
  <p>To be specific, I am unable to find out how to create an object of *gearman_worker_fn* .</p>
  
  <p>Thanks!</p>