~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/client.c

  • Committer: Andrey Hristov
  • Date: 2008-07-30 22:43:09 UTC
  • mto: (236.1.16 codestyle)
  • mto: This revision was merged to the branch mainline in revision 243.
  • Revision ID: ahristov@mysql.com-20080730224309-dq6tb206edvbxj29
Constify libdrizzle functions

Show diffs side-by-side

added added

removed removed

Lines of Context:
2281
2281
****************************************************************************/
2282
2282
 
2283
2283
/* DRIZZLE_RES */
2284
 
uint64_t STDCALL drizzle_num_rows(DRIZZLE_RES *res)
 
2284
uint64_t STDCALL drizzle_num_rows(const DRIZZLE_RES *res)
2285
2285
{
2286
2286
  return res->row_count;
2287
2287
}
2288
2288
 
2289
 
unsigned int STDCALL drizzle_num_fields(DRIZZLE_RES *res)
 
2289
unsigned int STDCALL drizzle_num_fields(const DRIZZLE_RES *res)
2290
2290
{
2291
2291
  return res->field_count;
2292
2292
}
2293
2293
 
2294
 
uint STDCALL drizzle_errno(DRIZZLE *drizzle)
 
2294
uint STDCALL drizzle_errno(const DRIZZLE *drizzle)
2295
2295
{
2296
2296
  return drizzle ? drizzle->net.last_errno : drizzle_server_last_errno;
2297
2297
}
2298
2298
 
2299
2299
 
2300
 
const char * STDCALL drizzle_error(DRIZZLE *drizzle)
 
2300
const char * STDCALL drizzle_error(const DRIZZLE *drizzle)
2301
2301
{
2302
2302
  return drizzle ? drizzle->net.last_error : drizzle_server_last_error;
2303
2303
}
2321
2321
*/
2322
2322
 
2323
2323
uint32_t STDCALL
2324
 
drizzle_get_server_version(DRIZZLE *drizzle)
 
2324
drizzle_get_server_version(const DRIZZLE *drizzle)
2325
2325
{
2326
2326
  uint major, minor, version;
2327
2327
  char *pos= drizzle->server_version, *end_pos;