]> git.8kb.co.uk Git - pgpool-ii/pgpool-ii_2.2.5/blob - parser/pool_string.h
Attempt to send a proper failure message to frontend when authentication
[pgpool-ii/pgpool-ii_2.2.5] / parser / pool_string.h
1 /* -*-pgsql-c-*- */
2 /*
3  * $Header: /cvsroot/pgpool/pgpool-II/parser/pool_string.h,v 1.4 2008/01/29 01:56:39 y-asaba Exp $
4  *
5  * Copyright (c) 2006-2008, pgpool Global Development Group
6  *
7  * Permission to use, copy, modify, and distribute this software and
8  * its documentation for any purpose and without fee is hereby
9  * granted, provided that the above copyright notice appear in all
10  * copies and that both that copyright notice and this permission
11  * notice appear in supporting documentation, and that the name of the
12  * author not be used in advertising or publicity pertaining to
13  * distribution of the software without specific, written prior
14  * permission. The author makes no representations about the
15  * suitability of this software for any purpose.  It is provided "as
16  * is" without express or implied warranty.
17  */
18
19 #ifndef POOL_STRING_H
20 #define POOL_STRING_H
21
22 #define STRING_SIZE 128
23
24 typedef struct
25 {
26         int size;
27         int len;
28         char *data;
29 } String;
30
31 extern String *init_string(char *str);
32 extern void string_append_string(String *string, String *append_data);
33 extern void string_append_char(String *string, char *append_data);
34 extern void free_string(String *string);
35 extern String *copy_string(String *string);
36
37 #endif /* POOL_STRING_H */