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 __GEARMAND_CON_H__ 00015 #define __GEARMAND_CON_H__ 00016 00017 #ifdef __cplusplus 00018 extern "C" { 00019 #endif 00020 00038 GEARMAN_API 00039 gearman_return_t gearmand_con_create(gearmand_st *gearmand, int fd, 00040 const char *host, const char *port, 00041 gearman_con_add_fn *add_fn); 00042 00047 GEARMAN_API 00048 void gearmand_con_free(gearmand_con_st *dcon); 00049 00053 GEARMAN_API 00054 void gearmand_con_check_queue(gearmand_thread_st *thread); 00055 00059 GEARMAN_API 00060 gearman_return_t gearmand_con_watch(gearman_con_st *con, short events, 00061 void *arg); 00062 00065 #ifdef __cplusplus 00066 } 00067 #endif 00068 00069 #endif /* __GEARMAND_CON_H__ */