Blame dmiopt.h

Packit Service e18529
/*
Packit Service e18529
 * Command line handling of dmidecode
Packit Service e18529
 * This file is part of the dmidecode project.
Packit Service e18529
 *
Packit Service e18529
 *   Copyright (C) 2005-2008 Jean Delvare <jdelvare@suse.de>
Packit Service e18529
 *
Packit Service e18529
 *   This program is free software; you can redistribute it and/or modify
Packit Service e18529
 *   it under the terms of the GNU General Public License as published by
Packit Service e18529
 *   the Free Software Foundation; either version 2 of the License, or
Packit Service e18529
 *   (at your option) any later version.
Packit Service e18529
 *
Packit Service e18529
 *   This program is distributed in the hope that it will be useful,
Packit Service e18529
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service e18529
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service e18529
 *   GNU General Public License for more details.
Packit Service e18529
 *
Packit Service e18529
 *   You should have received a copy of the GNU General Public License
Packit Service e18529
 *   along with this program; if not, write to the Free Software
Packit Service e18529
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
Packit Service e18529
 */
Packit Service e18529
Packit Service e18529
#include "types.h"
Packit Service e18529
Packit Service e18529
struct string_keyword
Packit Service e18529
{
Packit Service e18529
	const char *keyword;
Packit Service e18529
	u8 type;
Packit Service e18529
	u8 offset;
Packit Service e18529
};
Packit Service e18529
Packit Service e18529
struct opt
Packit Service e18529
{
Packit Service e18529
	const char *devmem;
Packit Service e18529
	unsigned int flags;
Packit Service e18529
	u8 *type;
Packit Service e18529
	const struct string_keyword *string;
Packit Service e18529
	char *dumpfile;
Packit Service e18529
	u32 handle;
Packit Service e18529
};
Packit Service e18529
extern struct opt opt;
Packit Service e18529
Packit Service e18529
#define FLAG_VERSION            (1 << 0)
Packit Service e18529
#define FLAG_HELP               (1 << 1)
Packit Service e18529
#define FLAG_DUMP               (1 << 2)
Packit Service e18529
#define FLAG_QUIET              (1 << 3)
Packit Service e18529
#define FLAG_DUMP_BIN           (1 << 4)
Packit Service e18529
#define FLAG_FROM_DUMP          (1 << 5)
Packit Service e18529
#define FLAG_NO_SYSFS           (1 << 6)
Packit Service e18529
Packit Service e18529
int parse_command_line(int argc, char * const argv[]);
Packit Service e18529
void print_help(void);