2 * This file is part of the bayou project.
4 * Copyright (C) 2008 Advanced Micro Devices, Inc.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
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
28 #define warn(fmt, args...) fprintf(stderr, fmt, ##args)
29 #define die(fmt, args...) \
30 do { fprintf(stderr, fmt, ##args); exit(-1); } \
46 struct pentry **entries;
65 #define BPT_ID 0x30545042
66 #define BPT_TYPE_CHOOSER 0x01
67 #define BPT_TYPE_CHAIN 0x02
68 #define BPT_TYPE_SUBCHAIN 0x03
70 #define BPT_FLAG_DEFAULT 0x01
71 #define BPT_FLAG_NOSHOW 0x02
73 int pbuilder_show_lar(const char *input);
74 int create_lar_from_config(const char *input, const char *output);
75 void parseconfig(FILE * stream, struct config *config);