libdrizzle Developer Documentation
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
libdrizzle
pack.h
Go to the documentation of this file.
1
/*
2
* Drizzle Client & Protocol Library
3
*
4
* Copyright (C) 2008 Eric Day (eday@oddments.org)
5
* All rights reserved.
6
*
7
* Use and distribution licensed under the BSD license. See
8
* the COPYING file in this directory for full text.
9
*/
10
16
#ifndef __DRIZZLE_PACK_H
17
#define __DRIZZLE_PACK_H
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
35
DRIZZLE_API
36
uint8_t *
drizzle_pack_length
(uint64_t number, uint8_t *ptr);
37
41
DRIZZLE_API
42
uint64_t
drizzle_unpack_length
(
drizzle_con_st
*con,
drizzle_return_t
*ret_ptr);
43
47
DRIZZLE_API
48
uint8_t *
drizzle_pack_string
(
char
*
string
, uint8_t *ptr);
49
53
DRIZZLE_API
54
drizzle_return_t
drizzle_unpack_string
(
drizzle_con_st
*con,
char
*buffer,
55
uint64_t max_size);
56
60
DRIZZLE_API
61
uint8_t *
drizzle_pack_auth
(
drizzle_con_st
*con, uint8_t *ptr,
62
drizzle_return_t
*ret_ptr);
63
66
#ifdef __cplusplus
67
}
68
#endif
69
70
#endif
/* __DRIZZLE_PACK_H */
Generated by
1.8.1.1