Go to the source code of this file.
|
Creates a new, empty lingConfig for usage. The lingConfig has to be freed by the user.
|
|
Sets the application name in a lingConfig.
|
|
Sets the full qualified path to the language file in a lingConfig.
|
|
Frees the memory hold by a pointer, which was previously allocated using ling_malloc().
|
|
Frees a previously allocated array of languages.
|
|
Gets a NULL terminated list of available languages (based on the language file set in the lingConfig). The return value should to be freed using ling_lang_free_languages().
|
|
Gets the count of languages contained in a lingConfig.
|
|
Prepares and adds a lesson file to an existing list of lessons.
|
|
Creates a new template lesson with optional empty meanings.
|
|
Creates a linked list of meanings, which are available in the given file.
|
|
Returns the last meaning id of the given lesson.
|
|
Removes a lesson from the list of used ones and frees all its internal references.
|
|
Returns the full qualified file path of the matching lesson entry.
|
|
Returns a random lesson of the lesson list, which is passed as argument. Lessons which are not used are ignored. The function tries to determine an used lesson twenty times. If none is found, NULL will be returned.
|
|
Returns the status of the use-flag of a lesson.
|
|
Saves a lesson into the passed file. If the file does not exist, it will be automatically created, else its contents will be completely overwritten.
|
|
Modifies the usage flag of a lesson, so that it will be automatically used by the different meaning access functions.
|
|
Allocates a chunk of memory for usage
|
|
Adds a new meaning at the end of the given list.
|
|
Returns the path to the sound snippet for the given meaning.
|
|
Frees the memory used by a list of lingMeaning and the lingMeanings itself
|
|
Frees the memory used by a lingMeaning and the lingMeaning itself
|
|
Gets another lingMeaning from a lesson file. The lingMeaning has to be freed by the user.
|
|
Gets a specific lingMeaning from the given lesson. The lingMeaning has to be freed by the user.
|
|
Creates a new lingMeaning and returns it. The lingMeaning has to be freed by the user.
|
|
Inserts a meaning after specific meaning into a meaning list.
|
|
Modifies a meaning of the given list of meanings
|
|
Saves a list of meanings into a given lesson file. The format is the standard lingoteach lesson format.
|