From bb7112476532faa35984b44aecc44ed2419b94e2 Mon Sep 17 00:00:00 2001
From: Kubat <mael.martin31@gmail.com>
Date: Sat, 10 Dec 2022 00:59:26 +0100
Subject: [PATCH] MISC: Fixing values of the c enums to be sure to have the
 correct values on the rust side

---
 inc/lektor/uri.h | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/inc/lektor/uri.h b/inc/lektor/uri.h
index bffa4c22..7a48fe7d 100644
--- a/inc/lektor/uri.h
+++ b/inc/lektor/uri.h
@@ -9,20 +9,20 @@ extern "C" {
 #include <stddef.h>
 
 typedef enum {
-    URI_NULL = 0,
-    URI_ID,
-    URI_PLAYLIST,
-    URI_TYPE,
-    URI_AUTHOR,
-    URI_CATEGORY,
-    URI_LANGUAGE,
-    URI_QUERY,
+    URI_NULL     = 0,
+    URI_ID       = 1,
+    URI_PLAYLIST = 2,
+    URI_TYPE     = 3,
+    URI_AUTHOR   = 4,
+    URI_CATEGORY = 5,
+    URI_LANGUAGE = 6,
+    URI_QUERY    = 7,
 } LKT_URI_TYPE;
 
 typedef enum {
     URI_VALUE_TYPE_NULL = 0,
-    URI_VALUE_TYPE_STRING,
-    URI_VALUE_TYPE_INTEGER,
+    URI_VALUE_TYPE_STRING = 1,
+    URI_VALUE_TYPE_INTEGER = 2,
 } LKT_URI_VALUE_TYPE;
 
 struct lkt_uri;       /* Hide the implementation of the lkt_uri structure */
-- 
GitLab