gnutls_str.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef GNUTLS_STR_H
00026 #define GNUTLS_STR_H
00027
00028 #include <gnutls_int.h>
00029
00030 void MHD_gtls_str_cpy (char *dest, size_t dest_tot_size, const char *src);
00031 void MHD_gtls_str_cat (char *dest, size_t dest_tot_size, const char *src);
00032
00033 typedef struct
00034 {
00035 opaque *data;
00036 size_t max_length;
00037 size_t length;
00038 MHD_gnutls_realloc_function realloc_func;
00039 MHD_gnutls_alloc_function alloc_func;
00040 MHD_gnutls_free_function free_func;
00041 } MHD_gtls_string;
00042
00043 void MHD_gtls_string_init (MHD_gtls_string *, MHD_gnutls_alloc_function,
00044 MHD_gnutls_realloc_function,
00045 MHD_gnutls_free_function);
00046 void MHD_gtls_string_clear (MHD_gtls_string *);
00047
00048 int MHD_gtls_string_append_data (MHD_gtls_string *, const void *data,
00049 size_t data_size);
00050 char *MHD_gtls_bin2hex (const void *old, size_t oldlen, char *buffer,
00051 size_t buffer_size);
00052
00053 #endif