~clint-fewbar/drizzle/regex-policy-cache-limiter

« back to all changes in this revision

Viewing changes to libdrizzle/conn_local.h

  • Committer: Clint Byrum
  • Date: 2012-03-15 18:05:43 UTC
  • mfrom: (2224.1.302 workspace)
  • Revision ID: clint@ubuntu.com-20120315180543-9jxxm4q10k3np2ws
merging with latest trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
 
1
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 
2
 *
2
3
 * Drizzle Client & Protocol Library
3
4
 *
4
5
 * Copyright (C) 2008 Eric Day (eday@oddments.org)
34
35
 *
35
36
 */
36
37
 
 
38
#pragma once
 
39
 
37
40
/**
38
41
 * @file
39
42
 * @brief Local Connection Declarations
40
43
 */
41
44
 
42
 
#ifndef __DRIZZLE_CONN_LOCAL_H
43
 
#define __DRIZZLE_CONN_LOCAL_H
44
 
 
45
45
#ifdef __cplusplus
46
46
extern "C" {
47
47
#endif
70
70
 */
71
71
static inline bool drizzle_state_none(drizzle_con_st *con)
72
72
{
 
73
  if (con == NULL)
 
74
  {
 
75
    return false;
 
76
  }
 
77
 
73
78
  return con->state_current == 0;
74
79
}
75
80
 
117
122
#ifdef __cplusplus
118
123
}
119
124
#endif
120
 
 
121
 
#endif /* __DRIZZLE_CONN_LOCAL_H */