"Fossies" - the Fresh Open Source Software Archive

Member "dmidecode-3.2/vpdopt.h" (14 Sep 2018, 1359 Bytes) of package /linux/privat/dmidecode-3.2.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "vpdopt.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 2.12_vs_3.0.

    1 /*
    2  * Command line handling of vpddecode
    3  * This file is part of the dmidecode project.
    4  *
    5  *   Copyright (C) 2005-2006 Jean Delvare <jdelvare@suse.de>
    6  *
    7  *   This program is free software; you can redistribute it and/or modify
    8  *   it under the terms of the GNU General Public License as published by
    9  *   the Free Software Foundation; either version 2 of the License, or
   10  *   (at your option) any later version.
   11  *
   12  *   This program is distributed in the hope that it will be useful,
   13  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
   14  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   15  *   GNU General Public License for more details.
   16  *
   17  *   You should have received a copy of the GNU General Public License
   18  *   along with this program; if not, write to the Free Software
   19  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
   20  */
   21 
   22 #include <sys/types.h>
   23 
   24 struct string_keyword
   25 {
   26     const char *keyword;
   27     off_t offset;
   28     size_t len;
   29 };
   30 
   31 struct opt
   32 {
   33     const char *devmem;
   34     unsigned int flags;
   35     const struct string_keyword *string;
   36 };
   37 extern struct opt opt;
   38 
   39 #define FLAG_VERSION            (1 << 0)
   40 #define FLAG_HELP               (1 << 1)
   41 #define FLAG_DUMP               (1 << 2)
   42 #define FLAG_QUIET              (1 << 3)
   43 
   44 int parse_command_line(int argc, char * const argv[]);
   45 void print_help(void);