~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle-2.0/libdrizzle/query.h

  • Committer: Mark Atwood
  • Date: 2011-10-08 04:50:51 UTC
  • mfrom: (2430.1.1 rf)
  • Revision ID: me@mark.atwood.name-20111008045051-6ha1qiy7k2a9c3jv
Tags: 2011.10.27
mergeĀ lp:~olafvdspek/drizzle/refactor2

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 *
35
35
 */
36
36
 
37
 
#pragma once
38
 
 
39
37
/**
40
38
 * @file
41
39
 * @brief Query Declarations
42
40
 */
43
41
 
 
42
#ifndef __DRIZZLE_QUERY_H
 
43
#define __DRIZZLE_QUERY_H
 
44
 
44
45
#ifdef __cplusplus
45
46
extern "C" {
46
47
#endif
164
165
 * Get options for a query. 
165
166
 */
166
167
DRIZZLE_API
167
 
int drizzle_query_options(drizzle_query_st *);
 
168
int drizzle_query_options(drizzle_query_st *query);
168
169
 
169
170
/**
170
171
 * Set options for a query.
171
172
 */
172
173
DRIZZLE_API
173
 
void drizzle_query_set_options(drizzle_query_st *, int);
 
174
void drizzle_query_set_options(drizzle_query_st *query,
 
175
                               int options);
174
176
 
175
177
/**
176
178
 * Add options for a query.
177
179
 */
178
180
DRIZZLE_API
179
 
void drizzle_query_add_options(drizzle_query_st *, int);
 
181
void drizzle_query_add_options(drizzle_query_st *query,
 
182
                               int options);
180
183
 
181
184
/**
182
185
 * Remove options for a query.
183
186
 */
184
187
DRIZZLE_API
185
 
void drizzle_query_remove_options(drizzle_query_st *, int);
 
188
void drizzle_query_remove_options(drizzle_query_st *query,
 
189
                                  int options);
186
190
 
187
191
/**
188
192
 * Get application context for a query.
224
228
 * size of the output string in to.
225
229
 */
226
230
DRIZZLE_API
227
 
ssize_t drizzle_escape_string(char *to, size_t max_to_size, const char *from, size_t from_size);
228
 
 
 
231
size_t drizzle_escape_string(char *to, const char *from, size_t from_size);
 
232
DRIZZLE_API
 
233
ssize_t drizzle_safe_escape_string(char *to, size_t max_to_size, const char *from, size_t from_size);
229
234
DRIZZLE_API
230
235
size_t drizzle_hex_string(char *to, const char *from, size_t from_size);
231
 
 
232
236
DRIZZLE_API
233
237
void drizzle_mysql_password_hash(char *to, const char *from, size_t from_size);
234
238
 
237
241
#ifdef __cplusplus
238
242
}
239
243
#endif
 
244
 
 
245
#endif /* __DRIZZLE_QUERY_H */