"Fossies" - the Fresh Open Source Software Archive

Member "dmidecode-3.2/dmiopt.h" (14 Sep 2018, 1513 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 "dmiopt.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 3.1_vs_3.2.

    1 /*
    2  * Command line handling of dmidecode
    3  * This file is part of the dmidecode project.
    4  *
    5  *   Copyright (C) 2005-2008 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 "types.h"
   23 
   24 struct string_keyword
   25 {
   26     const char *keyword;
   27     u8 type;
   28     u8 offset;
   29 };
   30 
   31 struct opt
   32 {
   33     const char *devmem;
   34     unsigned int flags;
   35     u8 *type;
   36     const struct string_keyword *string;
   37     char *dumpfile;
   38     u32 handle;
   39 };
   40 extern struct opt opt;
   41 
   42 #define FLAG_VERSION            (1 << 0)
   43 #define FLAG_HELP               (1 << 1)
   44 #define FLAG_DUMP               (1 << 2)
   45 #define FLAG_QUIET              (1 << 3)
   46 #define FLAG_DUMP_BIN           (1 << 4)
   47 #define FLAG_FROM_DUMP          (1 << 5)
   48 #define FLAG_NO_SYSFS           (1 << 6)
   49 
   50 int parse_command_line(int argc, char * const argv[]);
   51 void print_help(void);