diff options
author | Seonah Moon <seonah1.moon@samsung.com> | 2020-02-04 21:44:03 +0900 |
---|---|---|
committer | Seonah Moon <seonah1.moon@samsung.com> | 2020-02-04 21:45:18 +0900 |
commit | 88ea598667b311507eae04bc74ac7fd83eb7b97b (patch) | |
tree | 4bb0adf83c621398a3a0d030e42d6cf84bc2972b | |
parent | 81ffa387b505b79ea9d9a7b638df134f6a806d25 (diff) | |
download | libsoup-88ea598667b311507eae04bc74ac7fd83eb7b97b.tar.gz libsoup-88ea598667b311507eae04bc74ac7fd83eb7b97b.tar.bz2 libsoup-88ea598667b311507eae04bc74ac7fd83eb7b97b.zip |
SoupDate: deprecate soup_date_to_timeval()submit/tizen/20200217.011016submit/tizen/20200203.160801accepted/tizen/unified/20200224.081355
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
-rw-r--r-- | libsoup/soup-date.c | 4 | ||||
-rw-r--r-- | libsoup/soup-date.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/libsoup/soup-date.c b/libsoup/soup-date.c index 98aa95ff..824ddc17 100644 --- a/libsoup/soup-date.c +++ b/libsoup/soup-date.c @@ -722,6 +722,7 @@ soup_date_to_time_t (SoupDate *date) return (time_t) (sizeof (time_t) == 4 ? MIN(seconds, G_MAXINT32) : seconds); } +G_GNUC_BEGIN_IGNORE_DEPRECATIONS /** * soup_date_to_timeval: * @date: a #SoupDate @@ -729,6 +730,8 @@ soup_date_to_time_t (SoupDate *date) * * Converts @date to a #GTimeVal. * + * Deprecated: Do not use #GTimeVal, as it's not Y2038-safe. + * * Since: 2.24 */ void @@ -743,6 +746,7 @@ soup_date_to_timeval (SoupDate *date, GTimeVal *time) 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: diff --git a/libsoup/soup-date.h b/libsoup/soup-date.h index d15c907c..45cfd41a 100644 --- a/libsoup/soup-date.h +++ b/libsoup/soup-date.h @@ -59,11 +59,14 @@ char *soup_date_to_string (SoupDate *date, 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); |