~drizzle-trunk/libdrizzle/jenkins-Libdrizzle-38

« back to all changes in this revision

Viewing changes to libdrizzle/drizzle_local.h

  • Committer: Continuous Integration
  • Date: 2012-12-31 01:08:39 UTC
  • mfrom: (73.1.3 5.1-trunk)
  • Revision ID: ci@drizzle.org-20121231010839-8hg9bazx84mj03fw
Merge lp:~brianaker/libdrizzle/private-headers-connection-test Build: jenkins-Libdrizzle-25

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
 * @param[in] function Name of function the error happened in. 
59
59
 * @param[in] format Format and variable argument list of message.
60
60
 */
61
 
DRIZZLE_LOCAL
62
61
void drizzle_set_error(drizzle_st *con, const char *function,
63
62
                       const char *format, ...);
64
63
 
65
64
/**
 
65
 * Initialize a connection structure. Always check the return value even if
 
66
 * passing in a pre-allocated structure. Some other initialization may have
 
67
 * failed.
 
68
 *
 
69
 * @param[in] drizzle Drizzle structure previously initialized with
 
70
 *  drizzle_create() or drizzle_clone().
 
71
 * @param[in] con Caller allocated structure, or NULL to allocate one.
 
72
 * @return On success, a pointer to the (possibly allocated) structure. On
 
73
 *  failure this will be NULL.
 
74
 */
 
75
drizzle_st *drizzle_create(void);
 
76
 
 
77
/**
 
78
 * Free a connection structure.
 
79
 *
 
80
 * @param[in] con Connection structure previously initialized with
 
81
 *  drizzle_create(), drizzle_clone(), or related functions.
 
82
 */
 
83
void drizzle_free(drizzle_st *con);
 
84
 
 
85
 
 
86
/**
66
87
 * Log a message.
67
88
 *
68
89
 * @param[in] drizzle Drizzle con structure
70
91
 * @param[in] format Format and variable argument list of message.
71
92
 * @param[in] args Variable argument list that has been initialized.
72
93
 */
73
 
DRIZZLE_LOCAL
74
 
void drizzle_log(drizzle_st *con, drizzle_verbose_t verbose,
75
 
                 const char *format, va_list args);
 
94
void drizzle_log(drizzle_st *con, drizzle_verbose_t verbose, const char *format, va_list args);
 
95
 
 
96
/**
 
97
 * Initialize a result structure.
 
98
 */
 
99
drizzle_result_st *drizzle_result_create(drizzle_st *con);
 
100
 
76
101
 
77
102
/**
78
103
 * Log a fatal message, see drizzle_log() for argument details.
79
104
 */
80
 
static inline void drizzle_log_fatal(drizzle_st *con, const char *format,
81
 
                                     ...)
 
105
static inline void drizzle_log_fatal(drizzle_st *con, const char *format, ...)
82
106
{
83
107
  va_list args;
84
108