From 8731767251de4633b0f8d9e17f6f0e15b5d3ea18 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 27 Mar 2025 20:00:54 +0100 Subject: Add libgeome_default_geolocation_file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libgeome.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'libgeome.h') diff --git a/libgeome.h b/libgeome.h index da9b216..a4257a5 100644 --- a/libgeome.h +++ b/libgeome.h @@ -246,6 +246,14 @@ extern const struct libgeome_netservice libgeome_netservices[]; */ extern const size_t libgeome_netservices_count; +/** + * The default file for `libgeome_get_from_file` + * + * By default this is `/etc/geolocation`, but it can be + * changed at compile-time + */ +extern const char *const libgeome_default_geolocation_file; + /** * Create a basic initialisation for `struct libgeome_context` @@ -320,7 +328,7 @@ int libgeome_get_from_timezone(struct libgeome_context *ctx, struct libgeome_dat * This function will get both the latitude and * the longitude but nothing more * - * The default file is /etc/geolocation unless changed at compile time + * The default file stored in `libgeome_default_geolocation_file` * * @param ctx Library context * @param out Output parameter, `out->requested_data` must be set -- cgit v1.2.3-70-g09d2