Source

/* GNU fdisk - a clone of Linux fdisk. This file originally from GNU Parted. Copyright (C) 1999, 2000, 2001, 2002, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA*/#ifndef STRLIST_H_INCLUDED#define STRLIST_H_INCLUDED#include <wchar.h>typedefstruct_StrListStrList;struct_StrList{StrList*next;constwchar_t*str;};externchar*language;externchar*gettext_charset;externchar*term_charset;externStrList*str_list_create(constchar*first,...);externStrList*str_list_create_unique(constchar*first,...);externvoidstr_list_destroy(StrList*list);externvoidstr_list_destroy_node(StrList*list);externStrList*str_list_duplicate(constStrList*list);externStrList*str_list_duplicate_node(constStrList*list);externStrList*str_list_insert(StrList*list,constchar*str);externStrList*str_list_append(StrList*list,constchar*str);externStrList*str_list_append_unique(StrList*list,constchar*str);externStrList*str_list_join(StrList*a,StrList*b);externchar*str_list_convert(constStrList*list);externchar*str_list_convert_node(constStrList*list);externvoidstr_list_print(constStrList*list);externvoidstr_list_print_wrap(constStrList*list,intline_length,intoffset,intindent);externintstr_list_match_any(constStrList*list,constchar*str);externintstr_list_match_node(constStrList*list,constchar*str);externStrList*str_list_match(constStrList*list,constchar*str);externintstr_list_length(constStrList*list);#endif /* STRLIST_H_INCLUDED */