~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzleclient/libdrizzle_priv.c

  • Committer: Monty Taylor
  • Date: 2009-02-08 11:11:30 UTC
  • mto: This revision was merged to the branch mainline in revision 852.
  • Revision ID: mordred@inaugust.com-20090208111130-futpwptxv5he3boe
Renamed non-prefixed things from libdrizzleclient to drizzleclient.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
const char  *not_error_sqlstate= "00000";
29
29
const char  *cant_connect_sqlstate= "08001";
30
30
 
31
 
const char * sqlstate_get_unknown(void)
 
31
const char * drizzleclient_sqlstate_get_unknown(void)
32
32
{
33
33
  return unknown_sqlstate;
34
34
}
35
35
 
36
 
const char * sqlstate_get_not_error(void)
 
36
const char * drizzleclient_sqlstate_get_not_error(void)
37
37
{
38
38
  return not_error_sqlstate;
39
39
}
40
40
 
41
 
const char * sqlstate_get_cant_connect(void)
 
41
const char * drizzleclient_sqlstate_get_cant_connect(void)
42
42
{
43
43
  return cant_connect_sqlstate;
44
44
}
67
67
  return 0;
68
68
}
69
69
/****************************************************************************
70
 
  A modified version of connect().  connect_with_timeout() allows you to specify
 
70
  A modified version of connect().  drizzleclient_connect_with_timeout() allows you to specify
71
71
  a timeout value, in seconds, that we should wait until we
72
72
  derermine we can't connect to a particular host.  If timeout is 0,
73
 
  connect_with_timeout() will behave exactly like connect().
 
73
  drizzleclient_connect_with_timeout() will behave exactly like connect().
74
74
 
75
75
  Base version coded by Steve Bernacki, Jr. <steve@navinet.net>
76
76
*****************************************************************************/
77
77
 
78
 
int connect_with_timeout(int fd, const struct sockaddr *name, uint32_t namelen, int32_t timeout)
 
78
int drizzleclient_connect_with_timeout(int fd, const struct sockaddr *name, uint32_t namelen, int32_t timeout)
79
79
{
80
80
  int flags, res, s_err;
81
81