[libshumate/tintou/location-min-max] Location: Document and annotate MIN/MAX lontitudes and longitudes




commit a5bb0e580c32bcad3aed5e11adef3a3ad06b09ab
Author: Corentin Noël <corentin noel collabora com>
Date:   Wed Sep 8 11:36:01 2021 +0200

    Location: Document and annotate MIN/MAX lontitudes and longitudes
    
    Allows to use the right value from the introspection.

 shumate/shumate-location.h | 31 +++++++++++++++++++++++++++----
 1 file changed, 27 insertions(+), 4 deletions(-)
---
diff --git a/shumate/shumate-location.h b/shumate/shumate-location.h
index 0f29c1a..9d443f0 100644
--- a/shumate/shumate-location.h
+++ b/shumate/shumate-location.h
@@ -28,10 +28,33 @@
 
 G_BEGIN_DECLS
 
-#define SHUMATE_MIN_LATITUDE   -85.0511287798
-#define SHUMATE_MAX_LATITUDE    85.0511287798
-#define SHUMATE_MIN_LONGITUDE -180.0
-#define SHUMATE_MAX_LONGITUDE  180.0
+/**
+ * SHUMATE_MIN_LATITUDE:
+ *
+ * The minimal possible latitude value.
+ */
+#define SHUMATE_MIN_LATITUDE  (-85.0511287798)
+
+/**
+ * SHUMATE_MAX_LATITUDE:
+ *
+ * The maximal possible latitude value.
+ */
+#define SHUMATE_MAX_LATITUDE  (85.0511287798)
+
+/**
+ * SHUMATE_MIN_LONGITUDE:
+ *
+ * The minimal possible longitude value.
+ */
+#define SHUMATE_MIN_LONGITUDE (-180.0)
+
+/**
+ * SHUMATE_MAX_LONGITUDE:
+ *
+ * The maximal possible longitude value.
+ */
+#define SHUMATE_MAX_LONGITUDE (180.0)
 
 #define SHUMATE_TYPE_LOCATION (shumate_location_get_type ())
 G_DECLARE_INTERFACE (ShumateLocation, shumate_location, SHUMATE, LOCATION, GObject)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]