~stewart/drizzle/docs-improvements-1

« back to all changes in this revision

Viewing changes to libdrizzle-2.0/drizzle.h

  • Committer: Brian Aker
  • Date: 2011-11-24 03:44:17 UTC
  • mto: This revision was merged to the branch mainline in revision 2465.
  • Revision ID: brian@tangent.org-20111124034417-aafezwidyzjhg6a3
Redo the way options are handled.

Show diffs side-by-side

added added

removed removed

Lines of Context:
214
214
const char *drizzle_sqlstate(const drizzle_st *drizzle);
215
215
 
216
216
/**
217
 
 * Get options for a drizzle structure.
218
 
 *
219
 
 * @param[in] drizzle Drizzle structure previously initialized with
220
 
 *  drizzle_create() or drizzle_clone().
221
 
 * @return Options set for the drizzle structure.
222
 
 */
223
 
DRIZZLE_API
224
 
int drizzle_options(const drizzle_st *drizzle);
225
 
 
226
 
/**
227
 
 * Set options for a drizzle structure.
228
 
 *
229
 
 * @param[in] drizzle Drizzle structure previously initialized with
230
 
 *  drizzle_create() or drizzle_clone().
231
 
 * @param[in] options Available options for drizzle structure to set.
232
 
 */
233
 
DRIZZLE_API
234
 
void drizzle_set_options(drizzle_st *drizzle, int options);
235
 
 
236
 
/**
237
 
 * Add options for a drizzle structure.
238
 
 *
239
 
 * @param[in] drizzle Drizzle structure previously initialized with
240
 
 *  drizzle_create() or drizzle_clone().
241
 
 * @param[in] options Available options for drizzle structure to add.
242
 
 */
243
 
DRIZZLE_API
244
 
void drizzle_add_options(drizzle_st *drizzle, int options);
245
 
 
246
 
/**
247
 
 * Remove options for a drizzle structure.
248
 
 *
249
 
 * @param[in] drizzle Drizzle structure previously initialized with
250
 
 *  drizzle_create() or drizzle_clone().
251
 
 * @param[in] options Available options for drizzle structure to remove.
252
 
 */
253
 
DRIZZLE_API
254
 
void drizzle_remove_options(drizzle_st *, drizzle_options_t);
255
 
 
256
 
/**
257
217
 * Get application context pointer.
258
218
 *
259
219
 * @param[in] drizzle Drizzle structure previously initialized with
390
350
drizzle_con_st *drizzle_con_clone(drizzle_st *drizzle, drizzle_con_st *con,
391
351
                                  const drizzle_con_st *from);
392
352
 
 
353
DRIZZLE_API
 
354
drizzle_return_t drizzle_set_option(drizzle_st *drizzle, drizzle_options_t arg, bool set);
 
355
 
393
356
/**
394
357
 * Free a connection structure.
395
358
 *