![]() |
![]() |
![]() |
Hildon Input Method - Reference Manual | ![]() |
---|---|---|---|---|
#define CACHE_SIGNATURE #define CACHE_VERSION #define CACHE_FILE #define CACHE_START_OFFSET gchar* get_cache_file (gint mode); gint cache_get_number_of_plugins (FILE *f); HildonIMPluginInfo* cache_get_iminfo (FILE *f); GSList* cache_get_languages (FILE *f); FILE* init_cache (void); void free_language_list (GSList *list); gchar* cache_get_soname (FILE *f); void free_iminfo (HildonIMPluginInfo *info);
gchar* get_cache_file (gint mode);
Gets the location of the desired file/folder.
mode : |
One of CACHE_FILENAME , CACHE_FILENAME_TMP or CACHE_DIRECTORY .
|
Returns : | a newly allocated string with the desired location. |
gint cache_get_number_of_plugins (FILE *f);
Gets the number of plugins stored in the cache file.
f : |
the cache file |
Returns : | the number of plugins. |
GSList* cache_get_languages (FILE *f);
Gets the languages from a cache file.
f : |
the cache file |
Returns : | list with the language codes. |
void free_language_list (GSList *list);
Convenience function to free a list of gchar*.
list : |
the list to be freed |
gchar* cache_get_soname (FILE *f);
Gets the name of the .so file associated with the cache.
f : |
the cache file |
Returns : | the name of the .so file. |