diff options
author | Jim Easterbrook <jim@jim-easterbrook.me.uk> | 2022-05-11 09:53:52 +0100 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2022-05-19 17:04:35 +0200 |
commit | 33d2d2e8f7705c68114dcae254c6fc319a4c3378 (patch) | |
tree | ffc24ff9da79d39bcc25ca2c4883b8c8878697ba /gphoto2 | |
parent | d1650f14bc3a69ad27dcc6c9f02b8f171adf3379 (diff) | |
download | libgphoto2-33d2d2e8f7705c68114dcae254c6fc319a4c3378.tar.gz |
Add function to initialise locale directory
The function is called from gp_abilities_list_new() so existing code
will carry on working as before. Non-standard installations of
libgphoto2 can call the initialisation function with their choice of
locale dir. The function includes code to ensure it's only run once.
Diffstat (limited to 'gphoto2')
-rw-r--r-- | gphoto2/gphoto2-abilities-list.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gphoto2/gphoto2-abilities-list.h b/gphoto2/gphoto2-abilities-list.h index 00998ca68..3e84c213e 100644 --- a/gphoto2/gphoto2-abilities-list.h +++ b/gphoto2/gphoto2-abilities-list.h @@ -186,6 +186,8 @@ int gp_abilities_list_get_abilities (CameraAbilitiesList *list, int index, const char *gp_message_codeset (const char *); +int gp_initialise_locale (const char *localedir); + /** * Name of the environment variable which may contain the path where |