1
zero-epwing/book.h

40 lines
1.0 KiB
C
Raw Normal View History

2016-11-21 02:23:50 +00:00
/*
2017-04-23 19:32:22 +00:00
* Copyright (C) 2017 Alex Yatskov <alex@foosoft.net>
2016-11-21 02:23:50 +00:00
* Author: Alex Yatskov <alex@foosoft.net>
*
2017-04-23 19:32:22 +00: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.
2016-11-21 02:23:50 +00:00
*
2017-04-23 19:32:22 +00:00
* 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.
2016-11-21 02:23:50 +00:00
*
2017-04-23 19:32:22 +00:00
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
2016-11-21 02:23:50 +00:00
*/
#ifndef BOOK_H
#define BOOK_H
#include <stdio.h>
/*
* Types
*/
2017-02-12 18:42:30 +00:00
typedef struct Book Book;
2016-11-21 02:23:50 +00:00
/*
* Functions
*/
2017-02-12 18:42:30 +00:00
Book* book_create();
void book_destroy(Book* book);
int book_import(Book* book, const char path[], int flags);
2016-12-05 02:36:06 +00:00
int book_export(FILE* fp, const Book* book, int flags);
2016-11-21 02:23:50 +00:00
#endif /* BOOK_H */