[gcab: 2/6] Ignore deprecation of GTimeVal in public function
- From: Marc-André Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcab: 2/6] Ignore deprecation of GTimeVal in public function
- Date: Wed, 11 Dec 2019 13:42:49 +0000 (UTC)
commit 91780bf3d6d2bd8d9904792b1d44056ce005782c
Author: Marc-André Lureau <marcandre lureau redhat com>
Date: Wed Nov 27 11:57:03 2019 +0400
Ignore deprecation of GTimeVal in public function
Following commits are going to provide GDateTime replacement &
deprecation.
Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>
libgcab/gcab-file.c | 4 ++++
libgcab/gcab-file.h | 7 +++++--
2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/libgcab/gcab-file.c b/libgcab/gcab-file.c
index cbf8a22..0ff8e0f 100644
--- a/libgcab/gcab-file.c
+++ b/libgcab/gcab-file.c
@@ -180,6 +180,7 @@ gcab_file_class_init (GCabFileClass *klass)
G_PARAM_STATIC_STRINGS));
}
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/**
* gcab_file_set_date:
* @file: a #GCabFile
@@ -200,6 +201,7 @@ gcab_file_set_date (GCabFile *self, const GTimeVal *tv)
(g_date_time_get_minute (dt) << 5) +
(g_date_time_get_second (dt) / 2);
}
+G_GNUC_END_IGNORE_DEPRECATIONS
G_GNUC_INTERNAL gboolean
gcab_file_update_info (GCabFile *self, GFileInfo *info)
@@ -280,6 +282,7 @@ gcab_file_get_size (GCabFile *self)
return self->cfile->usize;
}
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/**
* gcab_file_get_date:
* @file: a #GCabFile
@@ -312,6 +315,7 @@ gcab_file_get_date (GCabFile *self, GTimeVal *tv)
return FALSE;
return g_date_time_to_timeval (dt, tv);
}
+G_GNUC_END_IGNORE_DEPRECATIONS
/**
* gcab_file_get_attributes:
diff --git a/libgcab/gcab-file.h b/libgcab/gcab-file.h
index bb03bf0..0b72c9b 100644
--- a/libgcab/gcab-file.h
+++ b/libgcab/gcab-file.h
@@ -72,12 +72,15 @@ GBytes * gcab_file_get_bytes (GCabFile *file);
const gchar * gcab_file_get_name (GCabFile *file);
guint32 gcab_file_get_size (GCabFile *file);
guint32 gcab_file_get_attributes (GCabFile *file);
-gboolean gcab_file_get_date (GCabFile *file, GTimeVal *result);
const gchar * gcab_file_get_extract_name (GCabFile *file);
void gcab_file_set_extract_name (GCabFile *file, const gchar *name);
-void gcab_file_set_date (GCabFile *file, const GTimeVal *tv);
void gcab_file_set_attributes (GCabFile *file, guint32 attr);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+gboolean gcab_file_get_date (GCabFile *file, GTimeVal *result);
+void gcab_file_set_date (GCabFile *file, const GTimeVal *tv);
+G_GNUC_END_IGNORE_DEPRECATIONS
+
G_END_DECLS
#endif /* _GCAB_FILE_H_ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]