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

« back to all changes in this revision

Viewing changes to libdrizzle/conn_local.h

  • Committer: Andrew Hutchings
  • Date: 2012-12-22 08:55:58 UTC
  • mfrom: (43.2.18 5.0)
  • Revision ID: andrew@linuxjedi.co.uk-20121222085558-b3aj47q2ah3cfccg
Merge 5.0 into 5.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
#endif
48
48
 
49
49
/**
50
 
 * @addtogroup drizzle_con_local Local Connection Declarations
 
50
 * @addtogroup drizzle_local Local Connection Declarations
51
51
 * @ingroup drizzle_con
52
52
 * @{
53
53
 */
56
56
 * Clear address info, freeing structs if needed.
57
57
 *
58
58
 * @param[in] con Connection structure previously initialized with
59
 
 *  drizzle_con_create(), drizzle_con_clone(), or related functions.
 
59
 *  drizzle_create(), drizzle_clone(), or related functions.
60
60
 */
61
61
DRIZZLE_LOCAL
62
 
void drizzle_con_reset_addrinfo(drizzle_con_st *con);
 
62
void drizzle_reset_addrinfo(drizzle_st *con);
63
63
 
64
64
/**
65
65
 * Check if state stack is empty.
66
66
 *
67
67
 * @param[in] con Connection structure previously initialized with
68
 
 *  drizzle_con_create(), drizzle_con_clone(), or related functions.
 
68
 *  drizzle_create(), drizzle_clone(), or related functions.
69
69
 * @return True if empty, false if something is on the stack.
70
70
 */
71
 
static inline bool drizzle_state_none(drizzle_con_st *con)
 
71
static inline bool drizzle_state_none(drizzle_st *con)
72
72
{
73
73
  if (con == NULL)
74
74
  {
82
82
 * Push a function onto the stack.
83
83
 *
84
84
 * @param[in] con Connection structure previously initialized with
85
 
 *  drizzle_con_create(), drizzle_con_clone(), or related functions.
 
85
 *  drizzle_create(), drizzle_clone(), or related functions.
86
86
 * @param[in] function Function to push.
87
87
 */
88
 
static inline void drizzle_state_push(drizzle_con_st *con,
 
88
static inline void drizzle_state_push(drizzle_st *con,
89
89
                                      drizzle_state_fn *function)
90
90
{
91
91
  /* The maximum stack depth can be determined at compile time, so bump this
99
99
 * Pop a function off of the stack.
100
100
 *
101
101
 * @param[in] con Connection structure previously initialized with
102
 
 *  drizzle_con_create(), drizzle_con_clone(), or related functions.
 
102
 *  drizzle_create(), drizzle_clone(), or related functions.
103
103
 */
104
 
static inline void drizzle_state_pop(drizzle_con_st *con)
 
104
static inline void drizzle_state_pop(drizzle_st *con)
105
105
{
106
106
  con->state_current--;
107
107
}
110
110
 * Reset the stack so it is empty.
111
111
 *
112
112
 * @param[in] con Connection structure previously initialized with
113
 
 *  drizzle_con_create(), drizzle_con_clone(), or related functions.
 
113
 *  drizzle_create(), drizzle_clone(), or related functions.
114
114
 */
115
 
static inline void drizzle_state_reset(drizzle_con_st *con)
 
115
static inline void drizzle_state_reset(drizzle_st *con)
116
116
{
117
117
  con->state_current= 0;
118
118
}