|
Data Structures |
| struct | _memo_translation |
| | A node in a translations' list. More...
|
| struct | memo_word |
| | Represents a word. More...
|
Typedefs |
| typedef struct memo_database | memo_database |
| typedef struct _memo_translation | memo_translation |
| | A node in a translations' list.
|
| typedef struct memo_word | memo_word |
Functions |
| int | memo_check_reply (FILE *reply, memo_database *db, char **report) |
| | Checks a reply to a test.
|
| int | memo_database_close (memo_database *db) |
| | Closes the database.
|
| memo_word * | memo_database_find_word (memo_database *db, int key) |
| | Fetches a word with a given key from the database.
|
| memo_word * | memo_database_find_word_by_value (memo_database *db, const char *value) |
| | Fetches a word with a given value from the database.
|
| memo_database * | memo_database_open (const char *filename) |
| | Prepares a memo_database.
|
| memo_word ** | memo_database_words_to_test (memo_database *db, int count) |
| | Chooses a set of words to be sent to the user.
|
| int | memo_send_test (memo_database *db, unsigned words, const char *email) |
| | Sends a test.
|
| int | memo_word_add_translation (memo_word *w1, memo_word *w2) |
| | Inserts a new translation to the database.
|
| int | memo_word_check_translation (memo_word *w1, memo_word *w2) |
| | Checks whether the given translation exists in the database.
|
| int | memo_word_copy (memo_word *dest, memo_word *src) |
| | Copies a word.
|
| int | memo_word_delete (memo_word *word) |
| | Deletes a word from the database.
|
| int | memo_word_delete_translation (memo_word *w1, memo_word *w2) |
| | Deletes an existing translation from the database.
|
| void | memo_word_free (memo_word *word) |
| | Frees the memory occupied by a given memo_word.
|
| memo_database * | memo_word_get_db (memo_word *word) |
| | Returns a pointer to a database the word's in.
|
| int | memo_word_get_key (memo_word *word) |
| | Returns word's database unique key.
|
| int | memo_word_get_negative_answers (memo_word *word) |
| | Fetches negative answers count for a given word.
|
| int | memo_word_get_positive_answers (memo_word *word) |
| | Fetches positive answers count for a given word.
|
| int | memo_word_get_translations (memo_word *word, memo_word ***translations) |
| | Returns word's translations.
|
| const char * | memo_word_get_value (memo_word *word) |
| | Returns word's value.
|
| void | memo_word_inc_negative_answers (memo_word *word) |
| | Increments words negative answers count by one.
|
| void | memo_word_inc_positive_answers (memo_word *word) |
| | Increments words positive answers count by one.
|
| memo_word * | memo_word_new (memo_database *db) |
| | Create a new, empty word.
|
| int | memo_word_reload (memo_word *word) |
| | Reloads the given word from the database.
|
| int | memo_word_reload_by_value (memo_word *word) |
| | Reloads the given word from the database using it's value.
|
| int | memo_word_save (memo_word *word) |
| | Inserts the given word to the database.
|
| void | memo_word_set_negative_answers (memo_word *word, unsigned value) |
| | Set's words negative answers count to the given value.
|
| void | memo_word_set_positive_answers (memo_word *word, unsigned value) |
| | Set's words positive answers count to the given value.
|
| int | memo_word_set_value (memo_word *word, const char *value) |
| | Sets word's value.
|
| int | memo_word_update (memo_word *word) |
| | Updates given word's row in the database.
|