+/**
+ * g_zlib_compressor_get_file_info:
+ * @compressor: a #GZlibCompressor
+ *
+ * Returns the #GZlibCompressor:file-info property.
+ *
+ * Returns: (transfer none): a #GFileInfo, or %NULL
+ *
+ * Since: 2.26
+ */
+GFileInfo *
+g_zlib_compressor_get_file_info (GZlibCompressor *compressor)
+{
+ g_return_val_if_fail (G_IS_ZLIB_COMPRESSOR (compressor), NULL);
+
+ return compressor->file_info;
+}
+
+/**
+ * g_zlib_compressor_set_file_info:
+ * @compressor: a #GZlibCompressor
+ * @file_info: (allow-none): a #GFileInfo
+ *
+ * Sets @file_info in @compressor. If non-%NULL, and @compressor's
+ * #GZlibCompressor:format property is %G_ZLIB_COMPRESSOR_FORMAT_GZIP,
+ * it will be used to set the file name and modification time in
+ * the GZIP header of the compressed data.
+ *
+ * Note: it is an error to call this function while a compression is in
+ * progress; it may only be called immediately after creation of @compressor,
+ * or after resetting it with g_converter_reset().
+ *
+ * Since: 2.26
+ */
+void
+g_zlib_compressor_set_file_info (GZlibCompressor *compressor,
+ GFileInfo *file_info)
+{
+ g_return_if_fail (G_IS_ZLIB_COMPRESSOR (compressor));
+
+ if (file_info == compressor->file_info)
+ return;
+
+ if (compressor->file_info)
+ g_object_unref (compressor->file_info);
+ if (file_info)
+ g_object_ref (file_info);
+ compressor->file_info = file_info;
+ g_object_notify (G_OBJECT (compressor), "file-info");
+
+ g_zlib_compressor_set_gzheader (compressor);
+}
+