~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/pack.h

  • Committer: Brian Aker
  • Date: 2009-01-24 09:43:35 UTC
  • Revision ID: brian@gir-3.local-20090124094335-6qdtvc35gl5fvivz
Adding in an example singe thread scheduler

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef PLUGIN_DRIZZLE_PROTOCOL_PACK_H
21
 
#define PLUGIN_DRIZZLE_PROTOCOL_PACK_H
22
 
 
23
 
namespace drizzle_protocol
24
 
{
25
 
 
26
 
#define NULL_LENGTH UINT32_MAX
27
 
 
28
 
uint32_t drizzleclient_net_field_length(unsigned char **packet);
29
 
uint64_t drizzleclient_drizzleclient_net_field_length_ll(unsigned char **packet);
30
 
unsigned char *drizzleclient_net_store_length(unsigned char *pkg, uint64_t length);
31
 
 
32
 
} /* namespace drizzle_protocol */
33
 
 
34
 
#endif /* PLUGIN_DRIZZLE_PROTOCOL_PACK_H */
 
20
#ifndef LIBDRIZZLE_PACK_H
 
21
#define LIBDRIZZLE_PACK_H
 
22
 
 
23
#include <stdint.h>
 
24
 
 
25
#ifdef __cplusplus
 
26
extern "C" {
 
27
#endif
 
28
 
 
29
  uint32_t net_field_length(unsigned char **packet);
 
30
  uint64_t net_field_length_ll(unsigned char **packet);
 
31
  unsigned char *net_store_length(unsigned char *pkg, uint64_t length);
 
32
 
 
33
#ifdef __cplusplus
 
34
}
 
35
#endif
 
36
 
 
37
#endif /* LIBDRIZZLE_PACK_H */