~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin.h

  • Committer: Monty Taylor
  • Date: 2008-10-02 18:09:31 UTC
  • Revision ID: monty@inaugust.com-20081002180931-t9oosmm6uvps27k0
RemovedĀ getpassĀ references.

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
 
33
44
#define DRIZZLE_XIDDATASIZE 128
34
45
/**
35
46
  struct st_mysql_xid is binary compatible with the XID structure as
429
440
int thd_tablespace_op(const DRIZZLE_THD thd);
430
441
int64_t thd_test_options(const DRIZZLE_THD thd, int64_t test_options);
431
442
int thd_sql_command(const DRIZZLE_THD thd);
 
443
const char *thd_proc_info(DRIZZLE_THD thd, const char *info);
432
444
void **thd_ha_data(const DRIZZLE_THD thd, const struct handlerton *hton);
433
445
int thd_tx_isolation(const DRIZZLE_THD thd);
434
446
/* Increments the row counter, see THD::row_count */
505
517
void *thd_memdup(DRIZZLE_THD thd, const void* str, unsigned int size);
506
518
 
507
519
/**
 
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
/**
508
537
  Get the XID for this connection's transaction
509
538
 
510
539
  @param thd  user thread connection handle