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

« back to all changes in this revision

Viewing changes to libdrizzle-5.1/conn.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:
68
68
 * @param[in] con Connection structure previously initialized with
69
69
 *  drizzle_create(), drizzle_clone(), or related functions.
70
70
 */
71
 
DRIZZLE_LOCAL
 
71
DRIZZLE_API
72
72
void drizzle_close(drizzle_st *con);
73
73
 
74
74
/**
198
198
in_port_t drizzle_port(const drizzle_st *con);
199
199
 
200
200
/**
201
 
 * Set TCP host and port for a connection.
202
 
 *
203
 
 * @param[in] con Connection structure previously initialized with
204
 
 *  drizzle_create(), drizzle_clone(), or related functions.
205
 
 * @param[in] host Host to use for this connection, NULL for default value.
206
 
 * @param[in] port Port to use for this connection, 0 for default value.
207
 
 */
208
 
DRIZZLE_LOCAL
209
 
void drizzle_set_tcp(drizzle_st *con, const char *host, in_port_t port);
210
 
 
211
 
/**
212
 
 * Get unix domain socket for a connection.
213
 
 *
214
 
 * @param[in] con Connection structure previously initialized with
215
 
 *  drizzle_create(), drizzle_clone(), or related functions.
216
 
 * @return Unix domain socket set for this connection, NULL if not set.
217
 
 */
218
 
DRIZZLE_LOCAL
219
 
const char *drizzle_uds(const drizzle_st *con);
220
 
 
221
 
/**
222
201
 * Set unix domain socket for a connection.
223
202
 *
224
203
 * @param[in] con Connection structure previously initialized with
240
219
const char *drizzle_user(const drizzle_st *con);
241
220
 
242
221
/**
243
 
 * Set username and password for a connection.
244
 
 *
245
 
 * @param[in] con Connection structure previously initialized with
246
 
 *  drizzle_create(), drizzle_clone(), or related functions.
247
 
 * @param[in] user Username to use for this connection.
248
 
 * @param[in] password Password to use for this connection.
249
 
 */
250
 
DRIZZLE_LOCAL
251
 
void drizzle_set_auth(drizzle_st *con, const char *user,
252
 
                          const char *password);
253
 
 
254
 
/**
255
222
 * Get database for a connection.
256
223
 *
257
224
 * @param[in] con Connection structure previously initialized with
262
229
const char *drizzle_db(const drizzle_st *con);
263
230
 
264
231
/**
265
 
 * Set database for a connection.
266
 
 *
267
 
 * @param[in] con Connection structure previously initialized with
268
 
 *  drizzle_create(), drizzle_clone(), or related functions.
269
 
 * @param[in] db Database to use with this connection.
270
 
 */
271
 
DRIZZLE_LOCAL
272
 
void drizzle_set_db(drizzle_st *con, const char *db);
273
 
 
274
 
/**
275
232
 * Get application context pointer for a connection.
276
233
 *
277
234
 * @param[in] con Connection structure previously initialized with