00001 /* Gearman server and library 00002 * Copyright (C) 2008 Brian Aker, Eric Day 00003 * All rights reserved. 00004 * 00005 * Use and distribution licensed under the BSD license. See 00006 * the COPYING file in the parent directory for full text. 00007 */ 00008 00014 #ifndef __GEARMAN_SERVER_WORKER_H__ 00015 #define __GEARMAN_SERVER_WORKER_H__ 00016 00017 #ifdef __cplusplus 00018 extern "C" { 00019 #endif 00020 00032 GEARMAN_API 00033 gearman_server_worker_st * 00034 gearman_server_worker_add(gearman_server_con_st *con, const char *function_name, 00035 size_t function_name_size, uint32_t timeout); 00036 00040 GEARMAN_API 00041 gearman_server_worker_st * 00042 gearman_server_worker_create(gearman_server_con_st *con, 00043 gearman_server_function_st *function, 00044 gearman_server_worker_st *worker); 00045 00049 GEARMAN_API 00050 void gearman_server_worker_free(gearman_server_worker_st *worker); 00051 00054 #ifdef __cplusplus 00055 } 00056 #endif 00057 00058 #endif /* __GEARMAN_SERVER_WORKER_H__ */