~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin.h

  • Committer: Monty Taylor
  • Date: 2008-10-13 09:29:43 UTC
  • mfrom: (509 drizzle)
  • mto: (509.1.4 codestyle)
  • mto: This revision was merged to the branch mainline in revision 511.
  • Revision ID: monty@inaugust.com-20081013092943-rwvx4a6d85b5l2dh
MergedĀ inĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#define DRIZZLE_THD void*
31
31
#endif
32
32
 
33
 
 
34
 
#ifndef _m_string_h
35
 
/* This definition must match the one given in m_string.h */
36
 
struct st_mysql_lex_string
37
 
{
38
 
  char *str;
39
 
  unsigned int length;
40
 
};
41
 
#endif /* _m_string_h */
42
 
typedef struct st_mysql_lex_string DRIZZLE_LEX_STRING;
43
 
 
44
33
#define DRIZZLE_XIDDATASIZE 128
45
34
/**
46
35
  struct st_mysql_xid is binary compatible with the XID structure as
440
429
int thd_tablespace_op(const DRIZZLE_THD thd);
441
430
int64_t thd_test_options(const DRIZZLE_THD thd, int64_t test_options);
442
431
int thd_sql_command(const DRIZZLE_THD thd);
443
 
const char *thd_proc_info(DRIZZLE_THD thd, const char *info);
444
432
void **thd_ha_data(const DRIZZLE_THD thd, const struct handlerton *hton);
445
433
int thd_tx_isolation(const DRIZZLE_THD thd);
446
434
/* Increments the row counter, see THD::row_count */
517
505
void *thd_memdup(DRIZZLE_THD thd, const void* str, unsigned int size);
518
506
 
519
507
/**
520
 
  Create a LEX_STRING in this connection's local memory pool
521
 
 
522
 
  @param thd      user thread connection handle
523
 
  @param lex_str  pointer to LEX_STRING object to be initialized
524
 
  @param str      initializer to be copied into lex_str
525
 
  @param size     length of str, in bytes
526
 
  @param allocate_lex_string  flag: if TRUE, allocate new LEX_STRING object,
527
 
                              instead of using lex_str value
528
 
  @return  NULL on failure, or pointer to the LEX_STRING object
529
 
 
530
 
  @see thd_alloc()
531
 
*/
532
 
DRIZZLE_LEX_STRING *thd_make_lex_string(DRIZZLE_THD thd, DRIZZLE_LEX_STRING *lex_str,
533
 
                                      const char *str, unsigned int size,
534
 
                                      int allocate_lex_string);
535
 
 
536
 
/**
537
508
  Get the XID for this connection's transaction
538
509
 
539
510
  @param thd  user thread connection handle