mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-26 03:21:03 +00:00
Fix gst::DebugColorFlags type
It's a flags and not enum type
This commit is contained in:
parent
84a7a0ff6a
commit
15d893e556
2 changed files with 35 additions and 51 deletions
|
@ -10221,10 +10221,10 @@ debugging message.
|
|||
</parameters>
|
||||
</method>
|
||||
</record>
|
||||
<enumeration name="DebugColorFlags"
|
||||
glib:type-name="GstDebugColorFlags"
|
||||
glib:get-type="gst_debug_color_flags_get_type"
|
||||
c:type="GstDebugColorFlags">
|
||||
<bitfield name="DebugColorFlags"
|
||||
glib:type-name="GstDebugColorFlags"
|
||||
glib:get-type="gst_debug_color_flags_get_type"
|
||||
c:type="GstDebugColorFlags">
|
||||
<doc xml:space="preserve">These are some terminal style flags you can use when creating your
|
||||
debugging categories to make them stand out in debugging output.</doc>
|
||||
<member name="fg_black"
|
||||
|
@ -10335,7 +10335,7 @@ debugging categories to make them stand out in debugging output.</doc>
|
|||
glib:nick="underline">
|
||||
<doc xml:space="preserve">Underline the output.</doc>
|
||||
</member>
|
||||
</enumeration>
|
||||
</bitfield>
|
||||
<enumeration name="DebugColorMode"
|
||||
glib:type-name="GstDebugColorMode"
|
||||
glib:get-type="gst_debug_color_mode_get_type"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file was generated by gir (9bd51ed) from gir-files (???)
|
||||
// This file was generated by gir (6a48033) from gir-files (???)
|
||||
// DO NOT EDIT
|
||||
|
||||
#![allow(non_camel_case_types, non_upper_case_globals)]
|
||||
|
@ -132,46 +132,6 @@ pub const GST_CORE_ERROR_CLOCK: GstCoreError = GstCoreError::Clock;
|
|||
pub const GST_CORE_ERROR_DISABLED: GstCoreError = GstCoreError::Disabled;
|
||||
pub const GST_CORE_ERROR_NUM_ERRORS: GstCoreError = GstCoreError::NumErrors;
|
||||
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
||||
#[repr(C)]
|
||||
pub enum GstDebugColorFlags {
|
||||
FgBlack = 0,
|
||||
FgRed = 1,
|
||||
FgGreen = 2,
|
||||
FgYellow = 3,
|
||||
FgBlue = 4,
|
||||
FgMagenta = 5,
|
||||
FgCyan = 6,
|
||||
FgWhite = 7,
|
||||
BgRed = 16,
|
||||
BgGreen = 32,
|
||||
BgYellow = 48,
|
||||
BgBlue = 64,
|
||||
BgMagenta = 80,
|
||||
BgCyan = 96,
|
||||
BgWhite = 112,
|
||||
Bold = 256,
|
||||
Underline = 512,
|
||||
}
|
||||
pub const GST_DEBUG_FG_BLACK: GstDebugColorFlags = GstDebugColorFlags::FgBlack;
|
||||
pub const GST_DEBUG_FG_RED: GstDebugColorFlags = GstDebugColorFlags::FgRed;
|
||||
pub const GST_DEBUG_FG_GREEN: GstDebugColorFlags = GstDebugColorFlags::FgGreen;
|
||||
pub const GST_DEBUG_FG_YELLOW: GstDebugColorFlags = GstDebugColorFlags::FgYellow;
|
||||
pub const GST_DEBUG_FG_BLUE: GstDebugColorFlags = GstDebugColorFlags::FgBlue;
|
||||
pub const GST_DEBUG_FG_MAGENTA: GstDebugColorFlags = GstDebugColorFlags::FgMagenta;
|
||||
pub const GST_DEBUG_FG_CYAN: GstDebugColorFlags = GstDebugColorFlags::FgCyan;
|
||||
pub const GST_DEBUG_FG_WHITE: GstDebugColorFlags = GstDebugColorFlags::FgWhite;
|
||||
pub const GST_DEBUG_BG_BLACK: GstDebugColorFlags = GstDebugColorFlags::FgBlack;
|
||||
pub const GST_DEBUG_BG_RED: GstDebugColorFlags = GstDebugColorFlags::BgRed;
|
||||
pub const GST_DEBUG_BG_GREEN: GstDebugColorFlags = GstDebugColorFlags::BgGreen;
|
||||
pub const GST_DEBUG_BG_YELLOW: GstDebugColorFlags = GstDebugColorFlags::BgYellow;
|
||||
pub const GST_DEBUG_BG_BLUE: GstDebugColorFlags = GstDebugColorFlags::BgBlue;
|
||||
pub const GST_DEBUG_BG_MAGENTA: GstDebugColorFlags = GstDebugColorFlags::BgMagenta;
|
||||
pub const GST_DEBUG_BG_CYAN: GstDebugColorFlags = GstDebugColorFlags::BgCyan;
|
||||
pub const GST_DEBUG_BG_WHITE: GstDebugColorFlags = GstDebugColorFlags::BgWhite;
|
||||
pub const GST_DEBUG_BOLD: GstDebugColorFlags = GstDebugColorFlags::Bold;
|
||||
pub const GST_DEBUG_UNDERLINE: GstDebugColorFlags = GstDebugColorFlags::Underline;
|
||||
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
||||
#[repr(C)]
|
||||
pub enum GstDebugColorMode {
|
||||
|
@ -1132,6 +1092,30 @@ bitflags! {
|
|||
}
|
||||
}
|
||||
|
||||
bitflags! {
|
||||
#[repr(C)]
|
||||
pub struct GstDebugColorFlags: c_uint {
|
||||
const GST_DEBUG_FG_BLACK = 0;
|
||||
const GST_DEBUG_FG_RED = 1;
|
||||
const GST_DEBUG_FG_GREEN = 2;
|
||||
const GST_DEBUG_FG_YELLOW = 3;
|
||||
const GST_DEBUG_FG_BLUE = 4;
|
||||
const GST_DEBUG_FG_MAGENTA = 5;
|
||||
const GST_DEBUG_FG_CYAN = 6;
|
||||
const GST_DEBUG_FG_WHITE = 7;
|
||||
const GST_DEBUG_BG_BLACK = 0;
|
||||
const GST_DEBUG_BG_RED = 16;
|
||||
const GST_DEBUG_BG_GREEN = 32;
|
||||
const GST_DEBUG_BG_YELLOW = 48;
|
||||
const GST_DEBUG_BG_BLUE = 64;
|
||||
const GST_DEBUG_BG_MAGENTA = 80;
|
||||
const GST_DEBUG_BG_CYAN = 96;
|
||||
const GST_DEBUG_BG_WHITE = 112;
|
||||
const GST_DEBUG_BOLD = 256;
|
||||
const GST_DEBUG_UNDERLINE = 512;
|
||||
}
|
||||
}
|
||||
|
||||
bitflags! {
|
||||
#[repr(C)]
|
||||
pub struct GstDebugGraphDetails: c_uint {
|
||||
|
@ -2583,11 +2567,6 @@ extern "C" {
|
|||
pub fn gst_core_error_get_type() -> GType;
|
||||
pub fn gst_core_error_quark() -> glib::GQuark;
|
||||
|
||||
//=========================================================================
|
||||
// GstDebugColorFlags
|
||||
//=========================================================================
|
||||
pub fn gst_debug_color_flags_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
// GstDebugColorMode
|
||||
//=========================================================================
|
||||
|
@ -2844,6 +2823,11 @@ extern "C" {
|
|||
//=========================================================================
|
||||
pub fn gst_clock_flags_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
// GstDebugColorFlags
|
||||
//=========================================================================
|
||||
pub fn gst_debug_color_flags_get_type() -> GType;
|
||||
|
||||
//=========================================================================
|
||||
// GstDebugGraphDetails
|
||||
//=========================================================================
|
||||
|
|
Loading…
Reference in a new issue