Gir_Gst.toml 6.46 KB
Newer Older
Sebastian Dröge's avatar
Sebastian Dröge committed
1 2 3 4
[options]
girs_dir = "gir-files"
library = "Gst"
version = "1.0"
5
min_cfg_version = "1.8"
Sebastian Dröge's avatar
Sebastian Dröge committed
6 7
target_path = "gstreamer"
work_mode = "normal"
8
concurrency = "send+sync"
9
generate_safety_asserts = true
Sebastian Dröge's avatar
Sebastian Dröge committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26

external_libraries = [
    "GLib",
    "GObject",
]

generate = [
    "Gst.ClockTime",
    "Gst.Pipeline",
    "Gst.State",
    "Gst.StateChangeReturn",
    "Gst.StateChange",
    "Gst.SeekFlags",
    "Gst.SeekType",
    "Gst.FlowReturn",
    "Gst.PadDirection",
    "Gst.PadTemplate",
Sebastian Dröge's avatar
Sebastian Dröge committed
27
    "Gst.PadPresence",
Sebastian Dröge's avatar
Sebastian Dröge committed
28 29 30 31
    "Gst.URIHandler",
    "Gst.URIType",
    "Gst.ElementFactoryListType",
    "Gst.Format",
32 33 34 35 36 37 38 39
    "Gst.BufferingMode",
    "Gst.CoreError",
    "Gst.ResourceError",
    "Gst.LibraryError",
    "Gst.StreamError",
    "Gst.PluginError",
    "Gst.ParseError",
    "Gst.URIError",
40 41 42 43 44 45 46 47
    "Gst.StructureChangeType",
    "Gst.StreamStatusType",
    "Gst.DeviceMonitor",
    "Gst.DeviceProvider",
    "Gst.DeviceProviderFactory",
    "Gst.StreamCollection",
    "Gst.StreamType",
    "Gst.StreamFlags",
48
    "Gst.PadLinkReturn",
49
    "Gst.ProgressType",
50
    "Gst.BusSyncReply",
Sebastian Dröge's avatar
Sebastian Dröge committed
51 52 53 54
]

manual = [
    "GLib.Error",
55
    "GLib.Source",
56
    "Gst.Message",
57
    "Gst.Structure",
Sebastian Dröge's avatar
Sebastian Dröge committed
58
]
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85

[[object]]
name = "Gst.Bin"
status = "generate"
    [[object.function]]
    name = "add"
        [object.function.return]
        bool_return_is_error = "Failed to add element"

    [[object.function]]
    name = "remove"
        [object.function.return]
        bool_return_is_error = "Failed to remove element"

    [[object.function]]
    name = "recalculate_latency"
        [object.function.return]
        bool_return_is_error = "Failed to recalculate latency"

    [[object.function]]
    name = "sync_children_states"
        [object.function.return]
        bool_return_is_error = "Failed to sync children states"

[[object]]
name = "Gst.Bus"
status = "generate"
86
trait = false
87 88 89 90 91
    [[object.function]]
    name = "remove_watch"
    # Needs manual bindings and GSource support in glib-rs
    ignore = true

92 93 94 95 96 97 98 99 100 101 102 103 104
    [[object.function]]
    name = "timed_pop_filtered"
    # Uses enum as flags
    ignore = true
    [[object.function]]
    name = "pop_filtered"
    # Uses enum as flags
    ignore = true
    [[object.function]]
    name = "poll"
    # Uses enum as flags
    ignore = true

105 106 107 108 109
    [[object.function]]
    name = "create_watch"
    # More convenient manual implementation
    ignore = true

Sebastian Dröge's avatar
Sebastian Dröge committed
110 111 112 113 114
[[object]]
name = "Gst.Caps"
status = "manual"
ref_mode = "ref"

115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
[[object]]
name = "Gst.Clock"
status = "generate"
    [[object.function]]
    name = "set_master"
        [object.function.return]
        bool_return_is_error = "Failed to set master clock"

    [[object.function]]
    name = "wait_for_sync"
        [object.function.return]
        bool_return_is_error = "Timed out waiting for sync"

[[object]]
name = "Gst.Element"
status = "generate"
    [[object.function]]
    name = "add_pad"
        [object.function.return]
        bool_return_is_error = "Failed to add pad"

    [[object.function]]
    name = "remove_pad"
        [object.function.return]
        bool_return_is_error = "Failed to remove pad"

    [[object.function]]
    name = "link"
        [object.function.return]
        bool_return_is_error = "Failed to link elements"

Sebastian Dröge's avatar
Sebastian Dröge committed
146 147 148 149 150
    [[object.function]]
    name = "link_filtered"
        [object.function.return]
        bool_return_is_error = "Failed to link elements"

151 152 153 154 155
    [[object.function]]
    name = "link_pads"
        [object.function.return]
        bool_return_is_error = "Failed to link pads"

Sebastian Dröge's avatar
Sebastian Dröge committed
156 157 158 159 160
    [[object.function]]
    name = "link_pads_filtered"
        [object.function.return]
        bool_return_is_error = "Failed to link pads"

161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
    [[object.function]]
    name = "seek"
        [object.function.return]
        bool_return_is_error = "Failed to seek"

    [[object.function]]
    name = "seek_simple"
        [object.function.return]
        bool_return_is_error = "Failed to seek"

    [[object.function]]
    name = "set_clock"
        [object.function.return]
        bool_return_is_error = "Failed to set clock"

    [[object.function]]
    name = "sync_state_with_parent"
        [object.function.return]
        bool_return_is_error = "Failed to sync state with parent"

181 182 183 184 185
[[object]]
name = "Gst.ElementFactory"
status = "generate"
trait = false

186 187 188
[[object]]
name = "Gst.Device"
status = "generate"
Sebastian Dröge's avatar
Sebastian Dröge committed
189 190
    [[object.property]]
    name = "properties"
191 192 193 194
    # Structure is not a GObject
    ignore = true

    [[object.property]]
Sebastian Dröge's avatar
Sebastian Dröge committed
195 196
    name = "caps"
    # Caps is not a GObject
197 198 199
    ignore = true


200 201 202 203 204 205 206 207
[[object]]
name = "Gst.Object"
status = "generate"
    [[object.function]]
    name = "set_name"
        [object.function.return]
        bool_return_is_error = "Failed to set object name"

208 209 210 211 212 213 214 215 216 217
    [[object.function]]
    name = "get_name"
        [object.function.return]
        nullable = false

    [[object.function]]
    name = "get_path_string"
        [object.function.return]
        nullable = false

218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
    [[object.function]]
    name = "set_parent"
        [object.function.return]
        bool_return_is_error = "Failed to set parent object"

    [[object.function]]
    name = "sync_values"
        [object.function.return]
        bool_return_is_error = "Failed to sync values"

[[object]]
name = "Gst.Pad"
status = "generate"
    [[object.function]]
    name = "link_maybe_ghosting"
        [object.function.return]
        bool_return_is_error = "Failed to link pad, possibly ghosting"

    [[object.function]]
    name = "unlink"
        [object.function.return]
        bool_return_is_error = "Failed to unlink pad"

    [[object.function]]
    name = "pause_task"
        [object.function.return]
        bool_return_is_error = "Failed to pause pad task"

    [[object.function]]
    name = "stop_task"
        [object.function.return]
        bool_return_is_error = "Failed to stop pad task"

    [[object.function]]
    name = "set_active"
        [object.function.return]
        bool_return_is_error = "Failed to activate pad"

Sebastian Dröge's avatar
Sebastian Dröge committed
256 257 258 259 260
    [[object.property]]
    name = "caps"
    # Caps is not a GObject
    ignore = true

261 262 263 264 265 266 267 268 269
[[object]]
name = "Gst.Stream"
status = "generate"

    [[object.property]]
    name = "caps"
    # Caps is not a GObject
    ignore = true

270 271 272 273 274
[[object]]
name = "Gst.Plugin"
status = "generate"
trait = false

275 276 277 278 279 280 281 282 283 284 285
[[object]]
name = "Gst.*"
status = "generate"
    [[object.function]]
    name = "update_registry"
        [object.function.return]
        bool_return_is_error = "Failed to update registry"

    [[object.function]]
    name = "util_dump_mem"
    ignore = true
286 287 288 289 290 291

    [[object.function]]
    name = "protection_select_system"
    # unsupported array type
    ignore = true