~vjsamuel/gearmand/fix-bug-868883

« back to all changes in this revision

Viewing changes to libgearman/universal.hpp

  • Committer: Brian Aker
  • Date: 2011-06-29 20:30:46 UTC
  • mfrom: (440.1.11 gearmand-trunk)
  • Revision ID: brian@tangent.org-20110629203046-rtwa0eme3360be9i
Updating for release .23

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
#pragma once
40
40
 
41
 
#define STRINGIFY(x) #x
42
 
#define TOSTRING(x) STRINGIFY(x)
43
 
#define AT __FILE__ ":" TOSTRING(__LINE__)
44
 
#define GEARMAN_AT __func__, AT
45
 
 
46
 
#define gearman_perror(__universal, B) gearman_universal_set_perror((__universal), __func__, AT, (B))
47
 
#define gearman_error(__universal, B, C) gearman_universal_set_error((__universal), (B), __func__, AT, (C))
48
 
#define gearman_gerror(__universal, __gearman_return_t) gearman_universal_set_gerror((__universal), (__gearman_return_t), __func__, AT)
49
 
 
50
 
GEARMAN_LOCAL
51
 
gearman_return_t gearman_universal_set_error(gearman_universal_st&,
52
 
                                             gearman_return_t rc,
53
 
                                             const char *function,
54
 
                                             const char *position,
55
 
                                             const char *format, ...);
56
 
GEARMAN_LOCAL
57
 
gearman_return_t gearman_universal_set_perror(gearman_universal_st&,
58
 
                                              const char *function, const char *position, 
59
 
                                              const char *message);
60
 
GEARMAN_LOCAL
61
 
gearman_return_t gearman_universal_set_gerror(gearman_universal_st&,
62
 
                                              gearman_return_t rc,
63
 
                                              const char *func,
64
 
                                              const char *position);
65
 
 
66
 
 
67
41
// Get next connection that is ready for I/O.
68
42
GEARMAN_LOCAL
69
43
gearman_connection_st *gearman_ready(gearman_universal_st&);