~mm-yuhu/gearmand/server-funcs

« back to all changes in this revision

Viewing changes to libgearman/structs.h

  • Committer: Eric Day
  • Date: 2008-12-25 02:00:12 UTC
  • Revision ID: eday@oddments.org-20081225020012-ko1ypndkphx9pemi
First pass at libevent interface, server interface, and gearmand.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
  uint32_t sending;
39
39
  int last_errno;
40
40
  char last_error[GEARMAN_ERROR_SIZE];
 
41
  gearman_event_watch_fn *event_watch;
 
42
  gearman_event_close_fn *event_close;
 
43
  void *event_cb_arg;
41
44
};
42
45
 
43
46
/**
198
201
  const void *fn_arg;
199
202
};
200
203
 
 
204
/**
 
205
 * @ingroup gearman_server
 
206
 */
 
207
struct gearman_server_st
 
208
{
 
209
  gearman_st *gearman;
 
210
  gearman_st gearman_static;
 
211
  gearman_server_options_t options;
 
212
  gearman_server_con_st *server_con_list;
 
213
  uint32_t server_con_count;
 
214
};
 
215
 
 
216
/**
 
217
 * @ingroup gearman_server
 
218
 */
 
219
struct gearman_server_con_st
 
220
{
 
221
  gearman_con_st con; /* This must be the first struct member. */
 
222
  gearman_server_st *server;
 
223
  gearman_server_con_st *next;
 
224
  gearman_server_con_st *prev;
 
225
  gearman_server_con_options_t options;
 
226
  gearman_server_con_state_t state;
 
227
  void *data;
 
228
};
 
229
 
201
230
#endif /* __GEARMAN_STRUCTS_H__ */