2 parted - a frontend to libparted
3 Copyright (C) 1999, 2000, 2001, 2007 Free Software Foundation, Inc.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #ifndef STRLIST_H_INCLUDED
21 #define STRLIST_H_INCLUDED
35 typedef struct _StrList StrList;
41 extern char* language;
42 extern char* gettext_charset;
43 extern char* term_charset;
45 extern StrList* str_list_create (const char* first, ...);
46 extern StrList* str_list_create_unique (const char* first, ...);
47 extern void str_list_destroy (StrList* list);
48 extern void str_list_destroy_node (StrList* list);
50 extern StrList* str_list_duplicate (const StrList* list);
51 extern StrList* str_list_duplicate_node (const StrList* list);
52 extern StrList* str_list_insert (StrList* list, const char* str);
53 extern StrList* str_list_append (StrList* list, const char* str);
54 extern StrList* str_list_append_unique (StrList* list, const char* str);
55 extern StrList* str_list_join (StrList* a, StrList* b);
56 extern char* str_list_convert (const StrList* list);
57 extern char* str_list_convert_node (const StrList* list);
59 extern void str_list_print (const StrList* list);
60 extern void str_list_print_wrap (const StrList* list, int line_length,
61 int offset, int indent);
62 extern int str_list_match_any (const StrList* list, const char* str);
63 extern int str_list_match_node (const StrList* list, const char* str);
64 extern StrList* str_list_match (const StrList* list, const char* str);
66 extern int str_list_length (const StrList* list);
68 #endif /* STRLIST_H_INCLUDED */