2022-10-02 17:39:25 +01:00
|
|
|
/*
|
|
|
|
|
* This file is part of the Aaru Data Preservation Suite.
|
|
|
|
|
* Copyright (c) 2019-2022 Natalia Portillo.
|
|
|
|
|
*
|
|
|
|
|
* 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 2
|
|
|
|
|
* 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, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
*/
|
|
|
|
|
#ifndef LIBAARUFORMAT_TOOL_AARUFORMATTOOL_H_
|
|
|
|
|
#define LIBAARUFORMAT_TOOL_AARUFORMATTOOL_H_
|
|
|
|
|
|
2022-10-12 13:08:54 +01:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
2022-10-04 19:44:34 +01:00
|
|
|
int identify(char* path);
|
|
|
|
|
int info(char* path);
|
|
|
|
|
char* byte_array_to_hex_string(const unsigned char* array, int array_size);
|
2022-10-12 13:09:41 +01:00
|
|
|
int read(unsigned long long sector_no, char* path);
|
2022-10-12 13:08:54 +01:00
|
|
|
int printhex(unsigned char* array, unsigned int length, int width, bool color);
|
2022-10-12 16:22:53 +01:00
|
|
|
int read_long(unsigned long long sector_no, char* path);
|
2022-10-02 17:39:25 +01:00
|
|
|
|
|
|
|
|
#endif // LIBAARUFORMAT_TOOL_AARUFORMATTOOL_H_
|