Files
0xFFFF/src/fiasco.h
T

42 lines
1.4 KiB
C
Raw Normal View History

2012-08-08 11:44:50 +02:00
/*
0xFFFF - Open Free Fiasco Firmware Flasher
Copyright (C) 2007-2011 pancake <pancake@youterm.com>
Copyright (C) 2011-2012 Pali Rohár <pali.rohar@gmail.com>
2012-07-14 10:33:15 +02:00
2012-08-08 11:44:50 +02:00
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2012-08-07 14:01:15 +02:00
#ifndef FIASCO_H
#define FIASCO_H
2012-07-14 10:33:15 +02:00
#include "image.h"
struct fiasco {
2012-08-07 14:01:15 +02:00
char name[257];
char swver[257];
2012-07-14 10:33:15 +02:00
int fd;
char * orig_filename;
2012-07-14 10:33:15 +02:00
struct image_list * first;
2012-08-07 14:53:52 +02:00
};
2012-07-14 10:33:15 +02:00
struct fiasco * fiasco_alloc_empty(void);
struct fiasco * fiasco_alloc_from_file(const char * file);
void fiasco_free(struct fiasco * fiasco);
2012-08-07 14:53:52 +02:00
void fiasco_add_image(struct fiasco * fiasco, struct image * image);
2012-07-14 10:33:15 +02:00
int fiasco_write_to_file(struct fiasco * fiasco, const char * file);
int fiasco_unpack(struct fiasco * fiasco, const char * dir);
void fiasco_print_info(struct fiasco * fiasco);
2012-08-07 14:01:15 +02:00
#endif