~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle-2.0/constants.h

  • Committer: Brian Aker
  • Date: 2011-11-18 16:11:02 UTC
  • mto: (2463.1.1 drizzle-include)
  • mto: This revision was merged to the branch mainline in revision 2462.
  • Revision ID: brian@tangent.org-20111118161102-d1mbswn88iwc2iv1
Pass through refactoring.

Never throw exceptions from libraries. You can not have the assumption that in a driver that the above language can handle this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
197
197
 */
198
198
enum drizzle_con_socket_t
199
199
{
200
 
  DRIZZLE_CON_SOCKET_TCP= 0,
201
 
  DRIZZLE_CON_SOCKET_UDS= (1 << 0)
 
200
  DRIZZLE_CON_SOCKET_TCP,
 
201
  DRIZZLE_CON_SOCKET_UDS
202
202
};
203
203
 
204
204
#ifndef __cplusplus
526
526
class drizzle_result_st;
527
527
class drizzle_column_st;
528
528
#endif
 
529
 
529
530
typedef char drizzle_field_t_type;
530
531
typedef drizzle_field_t_type *drizzle_field_t;
531
532
typedef drizzle_field_t drizzle_row_t_type;
542
543
#endif
543
544
 
544
545
/* Function types. */
545
 
typedef void (drizzle_context_free_fn)(drizzle_st *drizzle,
546
 
                                       void *context);
547
 
typedef void (drizzle_log_fn)(const char *line, drizzle_verbose_t verbose,
548
 
                              void *context);
 
546
typedef void (drizzle_context_free_fn)(drizzle_st *drizzle, void *context);
 
547
typedef void (drizzle_log_fn)(const char *line, drizzle_verbose_t verbose, void *context);
549
548
typedef drizzle_return_t (drizzle_state_fn)(drizzle_con_st *con);
550
 
typedef void (drizzle_con_context_free_fn)(drizzle_con_st *con,
551
 
                                           void *context);
552
 
typedef void (drizzle_query_context_free_fn)(drizzle_query_st *query,
553
 
                                             void *context);
 
549
typedef void (drizzle_con_context_free_fn)(drizzle_con_st *con, void *context);
 
550
typedef void (drizzle_query_context_free_fn)(drizzle_query_st *query, void *context);
554
551
/**
555
552
 * Custom function to register or deregister interest in file descriptor
556
553
 * events. See drizzle_set_event_watch_fn().