/usr/include/libwaei/word.h is in libwaei-dev 3.6.2-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | #ifndef LW_WORD_INCLUDED
#define LW_WORD_INCLUDED
G_BEGIN_DECLS
typedef enum {
LW_WORD_FIELD_KANJI,
LW_WORD_FIELD_FURIGANA,
LW_WORD_FIELD_DEFINITIONS,
LW_WORD_FIELD_CORRECT_GUESSES,
LW_WORD_FIELD_INCORRECT_GUESSES,
LW_WORD_FIELD_TIMESTAMP,
TOTAL_LW_WORD_FIELDS
} LwWordField;
struct _LwWord {
gchar *fields[TOTAL_LW_WORD_FIELDS];
gchar *score;
gchar *days;
gint correct_guesses;
gint incorrect_guesses;
gint32 timestamp;
};
typedef struct _LwWord LwWord;
#define LW_WORD(obj) (LwWord*)obj
LwWord* lw_word_new (void);
LwWord* lw_word_new_from_string (const gchar*);
void lw_word_free (LwWord*);
void lw_word_set_kanji (LwWord*, const gchar*);
const gchar* lw_word_get_kanji (LwWord*);
void lw_word_set_furigana (LwWord*, const gchar*);
const gchar* lw_word_get_furigana (LwWord*);
void lw_word_set_definitions (LwWord*, const gchar*);
const gchar* lw_word_get_definitions (LwWord*);
gint lw_word_get_correct_guesses (LwWord*);
void lw_word_set_correct_guesses (LwWord*, gint);
gint lw_word_get_incorrect_guesses (LwWord*);
void lw_word_set_incorrect_guesses (LwWord*, gint);
gint lw_word_get_score (LwWord*);
const gchar* lw_word_get_score_as_string (LwWord*);
guint32 lw_word_timestamp_to_hours (gint64);
void lw_word_set_timestamp (LwWord*, gint64);
void lw_word_update_timestamp (LwWord*);
void lw_word_set_hours (LwWord*, guint32);
guint32 lw_word_get_hours (LwWord*);
const gchar* lw_word_get_timestamp_as_string (LwWord*);
gchar* lw_word_to_string (LwWord*);
void lw_word_update_timestamp (LwWord*);
gint64 lw_word_get_timestamp (LwWord*);
const gchar* lw_word_get_timestamp_as_string (LwWord*);
G_END_DECLS
#endif
|