libdrizzle Developer Documentation

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 
36 uint8_t *drizzle_pack_length(uint64_t number, uint8_t *ptr);
37 
43 
48 uint8_t *drizzle_pack_string(char *string, uint8_t *ptr);
49 
55  uint64_t max_size);
56 
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 */