~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/drizzle_protocol/pack.h

Put drizzle_protocol plugin in to its own namespace so that symbols won't
conflict with mysql_protocol plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef PLUGIN_DRIZZLE_PROTOCOL_PACK_H
21
21
#define PLUGIN_DRIZZLE_PROTOCOL_PACK_H
22
22
 
23
 
#include <stdint.h>
 
23
namespace plugin
 
24
{
 
25
namespace drizzle_protocol
 
26
{
24
27
 
25
28
#define NULL_LENGTH UINT32_MAX
26
29
 
27
 
#ifdef __cplusplus
28
 
extern "C" {
29
 
#endif
30
 
 
31
 
  uint32_t drizzleclient_net_field_length(unsigned char **packet);
32
 
  uint64_t drizzleclient_drizzleclient_net_field_length_ll(unsigned char **packet);
33
 
  unsigned char *drizzleclient_net_store_length(unsigned char *pkg, uint64_t length);
34
 
 
35
 
#ifdef __cplusplus
36
 
}
37
 
#endif
 
30
uint32_t drizzleclient_net_field_length(unsigned char **packet);
 
31
uint64_t drizzleclient_drizzleclient_net_field_length_ll(unsigned char **packet);
 
32
unsigned char *drizzleclient_net_store_length(unsigned char *pkg, uint64_t length);
 
33
 
 
34
}
 
35
}
38
36
 
39
37
#endif /* PLUGIN_DRIZZLE_PROTOCOL_PACK_H */