00001 /* 00002 * "$Id: string-list.h,v 1.5 2004/04/27 23:23:45 rlk Exp $" 00003 * 00004 * libgimpprint string list functions. 00005 * 00006 * Copyright 1997-2000 Michael Sweet (mike@easysw.com) and 00007 * Robert Krawitz (rlk@alum.mit.edu) 00008 * 00009 * This program is free software; you can redistribute it and/or modify it 00010 * under the terms of the GNU General Public License as published by the Free 00011 * Software Foundation; either version 2 of the License, or (at your option) 00012 * any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, but 00015 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00016 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00017 * for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00022 */ 00023 00024 00025 #ifndef GIMP_PRINT_STRING_LIST_H 00026 #define GIMP_PRINT_STRING_LIST_H 00027 00028 #ifdef __cplusplus 00029 extern "C" { 00030 #endif 00031 00032 00033 /**************************************************************** 00034 * * 00035 * LISTS OF STRINGS * 00036 * * 00037 ****************************************************************/ 00038 00039 /* The string_list opaque data type is defined in vars.h */ 00040 00041 extern stp_string_list_t stp_string_list_create(void); 00042 extern void stp_string_list_destroy(stp_string_list_t list); 00043 00044 extern stp_param_string_t *stp_string_list_param(stp_const_string_list_t, 00045 size_t element); 00046 00047 extern size_t stp_string_list_count(stp_const_string_list_t list); 00048 00049 extern stp_string_list_t stp_string_list_create_copy(stp_const_string_list_t); 00050 00051 extern void stp_string_list_add_string(stp_string_list_t list, 00052 const char *name, const char *text); 00053 00054 extern stp_string_list_t 00055 stp_string_list_create_from_params(const stp_param_string_t *list, 00056 size_t count); 00057 00058 extern int 00059 stp_string_list_is_present(stp_const_string_list_t list, const char *value); 00060 00061 00062 #ifdef __cplusplus 00063 } 00064 #endif 00065 00066 #endif /* GIMP_PRINT_STRING_LIST_H */ 00067 /* 00068 * End of "$Id: string-list.h,v 1.5 2004/04/27 23:23:45 rlk Exp $". 00069 */