#include <pthread.h>
#include "libdaisy.h"
#include "audio.h"
Go to the source code of this file.
Data Structures | |
struct | AuthorNode |
struct | BookInfo |
struct | DaisyData |
struct | Node |
struct | SmilNode |
Functions | |
DaisyData * | parseInit (void) |
void | parseTerminate (struct DaisyData *daisydata) |
char * | removewhitespaces (char *string) |
char * | tolowercase (const char *string) |
char * | getTime (char *time) |
void | addNewAuthor (struct DaisyData *daisydata) |
SmilNode * | addNewSmilNode (struct DaisyData *daisydata) |
Node * | addNewNode (struct DaisyData *daisydata) |
int | parse (struct DaisyData *daisydata, char *filename) |
int | seek (struct DaisyData *daisydata, int type) |
int | getSmilPos (struct DaisyData *daisydata) |
int | getNodePos (struct DaisyData *daisydata) |
int | gotoSmilPosition (struct DaisyData *daisydata, int newSmilPos) |
int | gotoNodePosition (struct DaisyData *daisydata, int newNodePos) |
|
Adds a new author to the main data structures author list.
|
|
Adds a new passage node at the end of the linked node list in the main datastructure of the loaded daisy DTB.
|
|
Adds a new SmilNode at the end of the linked smil list in the main datastructure of the loaded daisy DTB.
|
|
Function for getting the current playback position in the node list.
Referenced by daisy_get_position(). |
|
Function for getting the current playback position in the smil list.
Referenced by daisy_get_position(). |
|
Converts min:sec.frac to sec.frac.
|
|
Function to move to a spesific node in the smil list and parse it.
Referenced by daisy_goto_position(). |
|
Function to move to a spesific node in the smil list and parse it.
Referenced by daisy_goto_position(). |
|
Parses a NCC or a NCX file (*.ncc | ncx.*) and fills the smilNode list with the smil file information representing the spine of the daisy DTB.
Referenced by daisy_load(). |
|
Initializes the main datastructure of the loaded daisy DTB.
Referenced by daisy_init(). |
|
Frees all memory allocated by the parser and the main datastructure. Terminates all parsing functionality.
Referenced by daisy_term(). |
|
Removes whitespaces, newlines and tabs before and after a sentence.
|
|
Function for seeking in the data structure. It can seek paragraphs (nodes) and chapters (smilnode).
Referenced by daisy_load(), and daisy_seek(). |
|
Converts the string to lower case.
|