]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
multi.h: add CURLMINFO_LASTENTRY
authorChristian Schmitz <support@monkeybreadsoftware.de>
Wed, 17 Sep 2025 08:11:59 +0000 (10:11 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 17 Sep 2025 21:14:38 +0000 (23:14 +0200)
For multiple enums, we use LASTENTRY values to do range checks when
receiving an option as integer. So I added LASTENTRY, so the check will
work, even if you add more options later.

Closes #18578

include/curl/multi.h

index 782541f1abbdbd961db01d2bcdaf1efd9a7f79bc..99e4413c9fe9395965f8338ae641689b0cd0fe7e 100644 (file)
@@ -464,7 +464,9 @@ typedef enum {
    * be read via `curl_multi_info_read()`. */
   CURLMINFO_XFERS_DONE = 4,
   /* The total number of easy handles added to the multi handle, ever. */
-  CURLMINFO_XFERS_ADDED = 5
+  CURLMINFO_XFERS_ADDED = 5,
+
+  CURLMINFO_LASTENTRY /* the last unused */
 } CURLMinfo_offt;
 
 /*