GTimeVal has been deprecated and shouldn't be used, so deprecate
soup_date_to_timeval().
https://gitlab.gnome.org/GNOME/libsoup/commit/
040593875e0193935a1141bdf21388abb4b5087b#
[libsoup/soup-date.h]
SOUP_DEPRECATED_IN_2_62 at line 65 should be SOUP_DEPRECATED_IN_2_70 according to upstream patch.
It will be fixed if libsoup is updated to 2.70.
Change-Id: I821d89000c6c796abf0469659f343530ec0e1496
return (time_t) (sizeof (time_t) == 4 ? MIN(seconds, G_MAXINT32) : seconds);
}
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/**
* soup_date_to_timeval:
* @date: a #SoupDate
*
* Converts @date to a #GTimeVal.
*
+ * Deprecated: Do not use #GTimeVal, as it's not Y2038-safe.
+ *
* Since: 2.24
*/
void
time->tv_sec = ((((time->tv_sec * 24) + date->hour) * 60) + date->minute) * 60 + date->second;
time->tv_usec = 0;
}
+G_GNUC_END_IGNORE_DEPRECATIONS
/**
* soup_date_is_past:
SOUP_AVAILABLE_IN_2_24
time_t soup_date_to_time_t (SoupDate *date);
+#ifndef SOUP_DISABLE_DEPRECATED
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
SOUP_AVAILABLE_IN_2_24
+SOUP_DEPRECATED_IN_2_62
void soup_date_to_timeval (SoupDate *date,
GTimeVal *time);
G_GNUC_END_IGNORE_DEPRECATIONS
+#endif
SOUP_AVAILABLE_IN_2_24
gboolean soup_date_is_past (SoupDate *date);