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

« back to all changes in this revision

Viewing changes to libdrizzle-5.0/drizzle.h

  • Committer: Andrew Hutchings
  • Date: 2012-12-22 08:55:58 UTC
  • mfrom: (43.2.18 5.0)
  • Revision ID: andrew@linuxjedi.co.uk-20121222085558-b3aj47q2ah3cfccg
Merge 5.0 into 5.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
 *  means an infinite timeout.
163
163
 */
164
164
DRIZZLE_API
165
 
int drizzle_con_timeout(const drizzle_con_st *con);
 
165
int drizzle_timeout(const drizzle_st *con);
166
166
 
167
167
/**
168
168
 * Set socket I/O activity timeout for connections in a Drizzle structure.
173
173
 *  means an infinite timeout.
174
174
 */
175
175
DRIZZLE_API
176
 
void drizzle_con_set_timeout(drizzle_con_st *con, int timeout);
 
176
void drizzle_set_timeout(drizzle_st *con, int timeout);
177
177
 
178
178
/**
179
179
 * Get current verbosity threshold for logging messages.
183
183
 * @return Current verbosity threshold.
184
184
 */
185
185
DRIZZLE_API
186
 
drizzle_verbose_t drizzle_con_verbose(const drizzle_con_st *con);
 
186
drizzle_verbose_t drizzle_verbose(const drizzle_st *con);
187
187
 
188
188
/**
189
189
 * Set verbosity threshold for logging messages. If this is set above
195
195
 * @param[in] verbose Verbosity threshold of what to log.
196
196
 */
197
197
DRIZZLE_API
198
 
void drizzle_con_set_verbose(drizzle_con_st *con, drizzle_verbose_t verbose);
 
198
void drizzle_set_verbose(drizzle_st *con, drizzle_verbose_t verbose);
199
199
 
200
200
/**
201
201
 * Set logging function for a drizzle structure. This function is only called
208
208
 * @param[in] context Argument to pass into the callback function.
209
209
 */
210
210
DRIZZLE_API
211
 
void drizzle_con_set_log_fn(drizzle_con_st *con, drizzle_log_fn *function,
 
211
void drizzle_set_log_fn(drizzle_st *con, drizzle_log_fn *function,
212
212
                        void *context);
213
213
 
214
214
/**
223
223
 *  failure this will be NULL.
224
224
 */
225
225
DRIZZLE_LOCAL
226
 
drizzle_con_st *drizzle_con_create(void);
 
226
drizzle_st *drizzle_create(void);
227
227
 
228
228
/**
229
229
 * Free a connection structure.
230
230
 *
231
231
 * @param[in] con Connection structure previously initialized with
232
 
 *  drizzle_con_create(), drizzle_con_clone(), or related functions.
 
232
 *  drizzle_create(), drizzle_clone(), or related functions.
233
233
 */
234
234
DRIZZLE_LOCAL
235
 
void drizzle_con_free(drizzle_con_st *con);
 
235
void drizzle_free(drizzle_st *con);
236
236
 
237
237
/**
238
238
 * Wait for I/O on connections.
242
242
 * @return Standard drizzle return value.
243
243
 */
244
244
DRIZZLE_API
245
 
drizzle_return_t drizzle_con_wait(drizzle_con_st *con);
 
245
drizzle_return_t drizzle_wait(drizzle_st *con);
246
246
 
247
247
/**
248
248
 * Get next connection that is ready for I/O.
252
252
 * @return Connection that is ready for I/O, or NULL if there are none.
253
253
 */
254
254
DRIZZLE_API
255
 
drizzle_con_st *drizzle_con_ready(drizzle_con_st *con);
 
255
drizzle_st *drizzle_ready(drizzle_st *con);
256
256
 
257
257
/** @} */
258
258