~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/drizzle_common.h

  • Committer: Monty Taylor
  • Date: 2008-10-22 21:18:04 UTC
  • Revision ID: monty@inaugust.com-20081022211804-0pkmwgc7mfebo5ld
Cleaned up the last commit. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
*/
23
23
 
24
24
#ifndef DRIZZLED_DRIZZLE_COMMON_H
25
 
#define DRIZZLED_DRIZZLE_COMMON__H
 
25
#define DRIZZLED_DRIZZLE_COMMON_H
26
26
 
27
27
#include <unistd.h>
28
28
#include <stdbool.h>
29
29
#include <stdint.h>
 
30
#include <drizzled/korr.h>
30
31
 
31
32
/*
32
33
   This is included in the server and in the client.
403
404
#define NET_HEADER_SIZE 4               /* standard header size */
404
405
#define COMP_HEADER_SIZE 3              /* compression header extra size */
405
406
 
406
 
  /* Prototypes to password functions */
407
 
 
408
 
#ifdef __cplusplus
409
 
extern "C" {
410
 
#endif
411
 
 
412
 
 
413
 
  char *get_tty_password(const char *opt_message);
414
 
 
415
 
  uint32_t net_field_length(unsigned char **packet);
416
 
  uint64_t net_field_length_ll(unsigned char **packet);
417
 
  unsigned char *net_store_length(unsigned char *pkg, uint64_t length);
418
 
 
419
 
 
420
 
 
421
 
#ifdef __cplusplus
422
 
}
423
 
#endif
424
407
 
425
408
#define NULL_LENGTH UINT32_MAX /* For net_store_length */
426
 
#define DRIZZLE_STMT_HEADER       4
427
 
#define DRIZZLE_LONG_DATA_HEADER  6
428
409
 
429
410
#endif