Blame dmiopt.h

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