Josh Coalson | 4d3b90f | 2001-02-23 21:38:26 +0000 | [diff] [blame] | 1 | /* metaflac - Command-line FLAC metadata editor |
Josh Coalson | 0395dac | 2006-04-25 06:59:33 +0000 | [diff] [blame] | 2 | * Copyright (C) 2001,2002,2003,2004,2005,2006 Josh Coalson |
Josh Coalson | 4d3b90f | 2001-02-23 21:38:26 +0000 | [diff] [blame] | 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License |
| 6 | * as published by the Free Software Foundation; either version 2 |
| 7 | * of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 17 | */ |
| 18 | |
Josh Coalson | ef0bc77 | 2002-05-17 06:26:45 +0000 | [diff] [blame] | 19 | #if HAVE_CONFIG_H |
| 20 | # include <config.h> |
| 21 | #endif |
| 22 | |
Josh Coalson | 8c40b95 | 2002-11-08 05:30:24 +0000 | [diff] [blame] | 23 | #include "operations.h" |
| 24 | #include "options.h" |
Josh Coalson | 2a42281 | 2002-09-17 05:38:08 +0000 | [diff] [blame] | 25 | #include <locale.h> |
Josh Coalson | 4d3b90f | 2001-02-23 21:38:26 +0000 | [diff] [blame] | 26 | |
| 27 | int main(int argc, char *argv[]) |
| 28 | { |
Josh Coalson | e959a5d | 2002-05-23 05:21:19 +0000 | [diff] [blame] | 29 | CommandLineOptions options; |
Josh Coalson | a894205 | 2002-05-25 02:16:52 +0000 | [diff] [blame] | 30 | int ret = 0; |
Josh Coalson | e959a5d | 2002-05-23 05:21:19 +0000 | [diff] [blame] | 31 | |
Josh Coalson | e9a638d | 2005-09-03 03:54:16 +0000 | [diff] [blame] | 32 | #ifdef __EMX__ |
| 33 | _response(&argc, &argv); |
| 34 | _wildcard(&argc, &argv); |
| 35 | #endif |
| 36 | |
Josh Coalson | 2a42281 | 2002-09-17 05:38:08 +0000 | [diff] [blame] | 37 | setlocale(LC_ALL, ""); |
Josh Coalson | e959a5d | 2002-05-23 05:21:19 +0000 | [diff] [blame] | 38 | init_options(&options); |
| 39 | |
Josh Coalson | a894205 | 2002-05-25 02:16:52 +0000 | [diff] [blame] | 40 | if(parse_options(argc, argv, &options)) |
| 41 | ret = !do_operations(&options); |
Josh Coalson | e959a5d | 2002-05-23 05:21:19 +0000 | [diff] [blame] | 42 | |
| 43 | free_options(&options); |
| 44 | |
| 45 | return ret; |
Josh Coalson | 4d3b90f | 2001-02-23 21:38:26 +0000 | [diff] [blame] | 46 | } |