1 /* -*-pgsql-c-*- */ 2 /* 3 * $Header$ 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 #include "pg_list.h" 22 #define STRING_SIZE 128 23 24 typedef struct 25 { 26 int size; 27 int len; 28 char *data; 29 } String; 30 31 extern char *NameListToString(List *names); 32 extern String * init_string(char *str); 33 extern void string_append_string(String * string, String * append_data); 34 extern void string_append_char(String * string, char *append_data); 35 extern void free_string(String * string); 36 extern String * copy_string(String * string); 37 38 #endif /* POOL_STRING_H */ 39