177a33467SCristian Dumitrescu /*- 277a33467SCristian Dumitrescu * BSD LICENSE 377a33467SCristian Dumitrescu * 47f64b9c0SPawel Wodkowski * Copyright(c) 2010-2015 Intel Corporation. All rights reserved. 577a33467SCristian Dumitrescu * All rights reserved. 677a33467SCristian Dumitrescu * 777a33467SCristian Dumitrescu * Redistribution and use in source and binary forms, with or without 877a33467SCristian Dumitrescu * modification, are permitted provided that the following conditions 977a33467SCristian Dumitrescu * are met: 1077a33467SCristian Dumitrescu * 1177a33467SCristian Dumitrescu * * Redistributions of source code must retain the above copyright 1277a33467SCristian Dumitrescu * notice, this list of conditions and the following disclaimer. 1377a33467SCristian Dumitrescu * * Redistributions in binary form must reproduce the above copyright 1477a33467SCristian Dumitrescu * notice, this list of conditions and the following disclaimer in 1577a33467SCristian Dumitrescu * the documentation and/or other materials provided with the 1677a33467SCristian Dumitrescu * distribution. 1777a33467SCristian Dumitrescu * * Neither the name of Intel Corporation nor the names of its 1877a33467SCristian Dumitrescu * contributors may be used to endorse or promote products derived 1977a33467SCristian Dumitrescu * from this software without specific prior written permission. 2077a33467SCristian Dumitrescu * 2177a33467SCristian Dumitrescu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 2277a33467SCristian Dumitrescu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 2377a33467SCristian Dumitrescu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 2477a33467SCristian Dumitrescu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2577a33467SCristian Dumitrescu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2677a33467SCristian Dumitrescu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2777a33467SCristian Dumitrescu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2877a33467SCristian Dumitrescu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2977a33467SCristian Dumitrescu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 3077a33467SCristian Dumitrescu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 3177a33467SCristian Dumitrescu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3277a33467SCristian Dumitrescu */ 3377a33467SCristian Dumitrescu 347f64b9c0SPawel Wodkowski #include "app.h" 3577a33467SCristian Dumitrescu 367f64b9c0SPawel Wodkowski static struct app_params app; 3777a33467SCristian Dumitrescu 3877a33467SCristian Dumitrescu int 3998a16481SDavid Marchand main(int argc, char **argv) 4077a33467SCristian Dumitrescu { 417f64b9c0SPawel Wodkowski rte_openlog_stream(stderr); 4277a33467SCristian Dumitrescu 437f64b9c0SPawel Wodkowski /* Config */ 447f64b9c0SPawel Wodkowski app_config_init(&app); 4577a33467SCristian Dumitrescu 467f64b9c0SPawel Wodkowski app_config_args(&app, argc, argv); 4777a33467SCristian Dumitrescu 487f64b9c0SPawel Wodkowski app_config_parse(&app, app.config_file); 4977a33467SCristian Dumitrescu 50f505f045SJasvinder Singh app_config_check(&app); 51f505f045SJasvinder Singh 52*eb32fe7cSMaciej Gajdzica /* Init */ 53*eb32fe7cSMaciej Gajdzica app_init(&app); 54*eb32fe7cSMaciej Gajdzica 5577a33467SCristian Dumitrescu return 0; 5677a33467SCristian Dumitrescu } 57