1 /*! 2 * \file src/strflags.h 3 * 4 * \brief Prototypes for strflags. 5 * 6 * The purpose of this interface is to make the file format able to 7 * handle more than 32 flags, and to hide the internal details of 8 * flags from the file format. 9 * 10 * <hr> 11 * 12 * <h1><b>Copyright.</b></h1>\n 13 * 14 * PCB, interactive printed circuit board design 15 * 16 * Copyright (C) 2005 DJ Delorie 17 * 18 * This program is free software; you can redistribute it and/or modify 19 * it under the terms of the GNU General Public License as published by 20 * the Free Software Foundation; either version 2 of the License, or 21 * (at your option) any later version. 22 * 23 * This program is distributed in the hope that it will be useful, 24 * but WITHOUT ANY WARRANTY; without even the implied warranty of 25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 26 * GNU General Public License for more details. 27 * 28 * You should have received a copy of the GNU General Public License along 29 * with this program; if not, write to the Free Software Foundation, Inc., 30 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 31 * 32 * Contact addresses for paper mail and Email: 33 * 34 * DJ Delorie, 334 North Road, Deerfield NH 03037-1110, USA 35 * 36 * dj@delorie.com 37 */ 38 39 #ifndef PCB_STRFLAGS_H 40 #define PCB_STRFLAGS_H 41 42 FlagType string_to_flags (const char *flagstring, 43 int (*error) (const char *msg)); 44 45 char *flags_to_string (FlagType flags, int object_type); 46 47 FlagType string_to_pcbflags (const char *flagstring, 48 int (*error) (const char *msg)); 49 char *pcbflags_to_string (FlagType flags); 50 void uninit_strflags_buf (void); 51 void uninit_strflags_layerlist (void); 52 53 #endif /* PCB_STRFLAGS_H */ 54