/usr/include/libaacs/filesystem.h is in libaacs-dev 0.7.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | /*
* This file is part of libaacs
* Copyright (C) 2009-2010 Obliter0n
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see
* <http://www.gnu.org/licenses/>.
*/
#ifndef AACS_FILESYSTEM_H_
#define AACS_FILESYSTEM_H_
#include <stdint.h>
typedef struct aacs_file_s AACS_FILE_H;
struct aacs_file_s
{
void* internal;
void (*close)(AACS_FILE_H *file);
int64_t (*seek)(AACS_FILE_H *file, int64_t offset, int32_t origin);
int64_t (*tell)(AACS_FILE_H *file);
int (*eof)(AACS_FILE_H *file);
int64_t (*read)(AACS_FILE_H *file, uint8_t *buf, int64_t size);
int64_t (*write)(AACS_FILE_H *file, const uint8_t *buf, int64_t size);
};
typedef AACS_FILE_H* (*AACS_FILE_OPEN)(const char* filename, const char *mode);
/**
*
* Register function pointer that will be used to open a file
*
* @param p function pointer
* @return previous function pointer registered
*/
AACS_FILE_OPEN aacs_register_file(AACS_FILE_OPEN p);
#endif /* AACS_FILESYSTEM_H_ */
|