Skip to content

Commit d2a1817

Browse files
gio: Add missing since annotations
1 parent 2ca01cd commit d2a1817

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

gio/Gir.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,9 @@ status = "generate"
825825
name = "set_attribute_stringv"
826826
# use strv
827827
manual = true
828+
[[object.function]]
829+
pattern = "[s|g]et_attribute_file_path"
830+
version = "2.78"
828831

829832
[[object]]
830833
name = "Gio.FilterOutputStream"

gio/src/auto/file_info.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ impl FileInfo {
8989
// unsafe { TODO: call ffi:g_file_info_get_attribute_data() }
9090
//}
9191

92+
#[cfg(feature = "v2_78")]
93+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
9294
#[doc(alias = "g_file_info_get_attribute_file_path")]
9395
#[doc(alias = "get_attribute_file_path")]
9496
pub fn attribute_file_path(&self, attribute: &str) -> glib::GString {
@@ -363,6 +365,8 @@ impl FileInfo {
363365
}
364366
}
365367

368+
#[cfg(feature = "v2_78")]
369+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
366370
#[doc(alias = "g_file_info_set_attribute_file_path")]
367371
pub fn set_attribute_file_path(&self, attribute: &str, attr_value: &str) {
368372
unsafe {

gio/sys/Gir.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ external_libraries = [
1111
"GObject",
1212
]
1313

14+
[[object]]
15+
name = "Gio.FileInfo"
16+
status = "generate"
17+
[[object.function]]
18+
pattern = "[s|g]et_attribute_file_path"
19+
version = "2.78"
20+
1421
[[object]]
1522
name = "Gio.UnixMountEntry"
1623
status = "generate"

gio/sys/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11618,6 +11618,8 @@ extern "C" {
1161811618
value_pp: *mut gpointer,
1161911619
status: *mut GFileAttributeStatus,
1162011620
) -> gboolean;
11621+
#[cfg(feature = "v2_78")]
11622+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
1162111623
pub fn g_file_info_get_attribute_file_path(
1162211624
info: *mut GFileInfo,
1162311625
attribute: *const c_char,
@@ -11694,6 +11696,8 @@ extern "C" {
1169411696
attribute: *const c_char,
1169511697
attr_value: *const c_char,
1169611698
);
11699+
#[cfg(feature = "v2_78")]
11700+
#[cfg_attr(docsrs, doc(cfg(feature = "v2_78")))]
1169711701
pub fn g_file_info_set_attribute_file_path(
1169811702
info: *mut GFileInfo,
1169911703
attribute: *const c_char,

0 commit comments

Comments
 (0)