1 /** 2 * @file fg_progname.h 3 * @brief Program name management 4 */ 5 6 /* 7 * Copyright (C) 2014 Alexander Zimmermann <alexander.zimmermann@netapp.com> 8 * 9 * This file is part of Flowgrind. 10 * 11 * Flowgrind is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU General Public License as published by 13 * the Free Software Foundation, either version 3 of the License, or 14 * (at your option) any later version. 15 * 16 * Flowgrind is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * You should have received a copy of the GNU General Public License 22 * along with Flowgrind. If not, see <http://www.gnu.org/licenses/>. 23 * 24 */ 25 26 #ifndef _FG_PROGNAME_H_ 27 #define _FG_PROGNAME_H_ 28 29 #ifdef HAVE_CONFIG_H 30 #include "config.h" 31 #endif /* HAVE_CONFIG_H */ 32 33 /** String containing name the program is called with. */ 34 extern const char *progname; 35 36 /** 37 * Set global variable 'progname', based on argv[0]. 38 * 39 * @param[in] argv0 the name by which the program was called (argv[0]) 40 */ 41 void set_progname(const char *argv0); 42 43 #endif /* _FG_PROGNAME_H_*/ 44