Commit 3f0cd6fb authored by François Laignel's avatar François Laignel Committed by Sebastian Dröge

Toc: serde impl

parent 20834e47
......@@ -51,9 +51,6 @@ generate = [
"Gst.TagSetter",
"Gst.QOSType",
"Gst.EventType",
"Gst.TocScope",
"Gst.TocEntryType",
"Gst.TocLoopType",
"Gst.TocSetter",
"Gst.ClockType",
"Gst.ElementFlags",
......@@ -167,6 +164,27 @@ status = "generate"
name = "Serialize, Deserialize"
cfg_condition = "feature = \"ser_de\""
[[object]]
name = "Gst.TocScope"
status = "generate"
[[object.derive]]
name = "Serialize, Deserialize"
cfg_condition = "feature = \"ser_de\""
[[object]]
name = "Gst.TocEntryType"
status = "generate"
[[object.derive]]
name = "Serialize, Deserialize"
cfg_condition = "feature = \"ser_de\""
[[object]]
name = "Gst.TocLoopType"
status = "generate"
[[object.derive]]
name = "Serialize, Deserialize"
cfg_condition = "feature = \"ser_de\""
[[object]]
name = "Gst.Structure"
status = "manual"
......
......@@ -2493,6 +2493,7 @@ impl SetValue for TaskState {
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
#[cfg_attr(feature = "ser_de", derive(Serialize, Deserialize))]
pub enum TocEntryType {
Angle,
Version,
......@@ -2565,6 +2566,7 @@ impl SetValue for TocEntryType {
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
#[cfg_attr(feature = "ser_de", derive(Serialize, Deserialize))]
pub enum TocLoopType {
None,
Forward,
......@@ -2628,6 +2630,7 @@ impl SetValue for TocLoopType {
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
#[cfg_attr(feature = "ser_de", derive(Serialize, Deserialize))]
pub enum TocScope {
Global,
Current,
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment