libmobi
C library for handling MOBI format ebook documents
Macros | Functions | Variables
mobitool.c File Reference

mobitool More...

#include <string.h>
#include <stdbool.h>
#include <stdlib.h>
#include <ctype.h>
#include <time.h>
#include <errno.h>
#include <mobi.h>
#include "common.h"

Macros

#define PRINT_RUSAGE_ARG   ""
 
#define PRINT_ENC_USG   ""
 
#define PRINT_ENC_ARG   ""
 
#define PRINT_EPUB_ARG   ""
 
#define EPUB_CONTAINER   "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\<container version=\"1.0\" xmlns=\"urn:oasis:names:tc:opendocument:xmlns:container\">\n\ <rootfiles>\n\ <rootfile full-path=\"OEBPS/content.opf\" media-type=\"application/oebps-package+xml\"/>\n\ </rootfiles>\n\</container>"
 
#define EPUB_MIMETYPE   "application/epub+zip"
 

Functions

int main (int argc, char *argv[])
 Main. More...
 

Variables

bool dump_cover_opt = false
 
bool dump_rawml_opt = false
 
bool create_epub_opt = false
 
bool print_extended_meta_opt = false
 
bool print_rec_meta_opt = false
 
bool dump_rec_opt = false
 
bool parse_kf7_opt = false
 
bool dump_parts_opt = false
 
bool print_rusage_opt = false
 
bool extract_source_opt = false
 
bool split_opt = false
 

Detailed Description

mobitool

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Main.

Parameters
[in]argcArguments count
[in]argvArguments array
Returns
SUCCESS (0) or ERROR (1)
Examples
mobitool.c.