This file is indexed.

/usr/include/libwaei/dictinst.h is in libwaei-dev 3.2.0b1-1.

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
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
#ifndef LW_DICTINST_INCLUDED
#define LW_DICTINST_INCLUDED

#include <libwaei/dict.h>

#define LW_DICTINST(object) (LwDictInst*) object

#define LW_DICTINST_ERROR "gWaei Dictionary Installer Error"

typedef enum {
  LW_DICTINST_ERROR_SOURCE_PATH,
  LW_DICTINST_ERROR_TARGET_PATH,
  LW_DICTINST_ERROR_FILE_MOVE
} LwDictInstError;

typedef enum {
  LW_DICTINST_NEEDS_DOWNLOADING,
  LW_DICTINST_NEEDS_DECOMPRESSION,
  LW_DICTINST_NEEDS_TEXT_ENCODING,
  LW_DICTINST_NEEDS_POSTPROCESSING,
  LW_DICTINST_NEEDS_FINALIZATION,
  LW_DICTINST_NEEDS_NOTHING,
  LW_DICTINST_TOTAL_URIS
} LwDictInstUri;


struct _LwDictInst {
  EXTENDS_LW_DICT

  char *description;
  char *uri[LW_DICTINST_TOTAL_URIS];
  double progress;
  gboolean selected;
  LwPreferences *pm;
  char *schema;
  char *key;
  gboolean builtin;
  gulong listenerid;            //!< An id to hold the g_signal_connect value when the source copy uri pref is set
  LwCompression compression;    //!< Path to the gziped dictionary file
  LwEncoding encoding;          //!< Path to the raw unziped dictionary file
  LwDictInstUri uri_group_index;
  int uri_atom_index;
  char **current_source_uris;
  char **current_target_uris;
  gboolean split;
  gboolean merge;
  GMutex *mutex;
};
typedef struct _LwDictInst LwDictInst;

LwDictInst* lw_dictinst_new_using_pref_uri (const char*, 
                                            const char*,
                                            const char*,
                                            const char*,
                                            LwPreferences*,
                                            const char*,
                                            const char*,
                                            const LwDictType,
                                            const LwCompression,
                                            const LwEncoding,
                                            gboolean, gboolean, gboolean);

LwDictInst* lw_dictinst_new (const char*,
                             const char*,
                             const char*,
                             const char*,
                             const char*,
                             const LwDictType,
                             const LwCompression,
                             const LwEncoding,
                             gboolean, gboolean, gboolean);
void lw_dictinst_free (LwDictInst*);
void lw_dictinst_init (LwDictInst*,
                       const char*,
                       const char*,
                       const char*,
                       const char*,
                       const char*,
                       const LwDictType,
                       const LwCompression,
                       const LwEncoding,
                       gboolean, gboolean, gboolean);
void lw_dictinst_deinit (LwDictInst*);


void lw_dictinst_set_filename (LwDictInst*, const char*);
void lw_dictinst_set_type (LwDictInst*, const LwDictType);
void lw_dictinst_set_encoding (LwDictInst*, const LwEncoding);
void lw_dictinst_set_compression (LwDictInst*, const LwCompression);
void lw_dictinst_set_download_source (LwDictInst*, const char*);
void lw_dictinst_set_split (LwDictInst *di, const gboolean);
void lw_dictinst_set_merge (LwDictInst *di, const gboolean);
void lw_dictinst_set_status (LwDictInst *di, const LwDictInstUri);
gchar* lw_dictinst_get_status_string (LwDictInst*, gboolean);

void lw_dictinst_regenerate_save_target_uris (LwDictInst*);
gboolean lw_dictinst_data_is_valid (LwDictInst*);

gboolean lw_dictinst_install (LwDictInst*, LwIoProgressCallback, gpointer, GError**);
char* lw_dictinst_get_target_uri (LwDictInst*, const LwDictInstUri, const int);
char* lw_dictinst_get_source_uri (LwDictInst*, const LwDictInstUri, const int);

double lw_dictinst_get_total_progress (LwDictInst*, double);
double lw_dictinst_get_process_progress (LwDictInst*, double);

void lw_dictinst_set_cancel_operations (LwDictInst*, gboolean);

void gw_dictinst_update_source_uri_cb (GSettings*, char*, gpointer);

#endif