Gir_Gst.toml 11.2 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

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

generate = [
    "Gst.ClockTime",
18
    "Gst.ClockTimeDiff",
Sebastian Dröge's avatar
Sebastian Dröge committed
19 20 21 22 23 24 25 26
    "Gst.Pipeline",
    "Gst.State",
    "Gst.StateChangeReturn",
    "Gst.StateChange",
    "Gst.SeekFlags",
    "Gst.SeekType",
    "Gst.FlowReturn",
    "Gst.PadDirection",
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
    "Gst.StructureChangeType",
    "Gst.StreamStatusType",
    "Gst.DeviceProvider",
    "Gst.StreamType",
    "Gst.StreamFlags",
45
    "Gst.PadLinkReturn",
46
    "Gst.ProgressType",
47
    "Gst.BusSyncReply",
Sebastian Dröge's avatar
Sebastian Dröge committed
48
    "Gst.TagMergeMode",
49 50
    "Gst.PadProbeType",
    "Gst.PadProbeReturn",
51
    "Gst.CapsIntersectMode",
52
    "Gst.BufferFlags",
53
    "Gst.SegmentFlags",
Sebastian Dröge's avatar
Sebastian Dröge committed
54 55
    "Gst.PadMode",
    "Gst.SchedulingFlags",
Sebastian Dröge's avatar
Sebastian Dröge committed
56
    "Gst.IteratorResult",
Sebastian Dröge's avatar
Sebastian Dröge committed
57
    "Gst.ChildProxy",
58 59
    "Gst.Preset",
    "Gst.TagSetter",
Sebastian Dröge's avatar
Sebastian Dröge committed
60
    "Gst.QOSType",
61
    "Gst.EventType",
62 63 64 65
    "Gst.TocScope",
    "Gst.TocEntryType",
    "Gst.TocLoopType",
    "Gst.TocSetter",
66 67
    "Gst.ClockType",
    "Gst.ClockReturn",
68
    "Gst.ElementFlags",
Sebastian Dröge's avatar
Sebastian Dröge committed
69
    "Gst.Rank",
Sebastian Dröge's avatar
Sebastian Dröge committed
70
    "Gst.PadLinkCheck",
Sebastian Dröge's avatar
Sebastian Dröge committed
71 72 73 74
]

manual = [
    "GLib.Error",
75
    "GLib.Source",
76
    "GLib.DateTime",
Sebastian Dröge's avatar
Sebastian Dröge committed
77
    "GObject.Object",
Sebastian Dröge's avatar
Sebastian Dröge committed
78
    "Gst.Iterator",
79
    "Gst.Segment",
Sebastian Dröge's avatar
Sebastian Dröge committed
80
]
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107

[[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"
108
trait = false
109 110 111 112 113
    [[object.function]]
    name = "remove_watch"
    # Needs manual bindings and GSource support in glib-rs
    ignore = true

114 115 116 117 118 119 120 121 122 123 124 125 126
    [[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

127 128 129 130 131
    [[object.function]]
    name = "create_watch"
    # More convenient manual implementation
    ignore = true

132 133 134 135
    [[object.signal]]
    name = "message"
    concurrency = "send"

136 137 138 139 140 141

[[object]]
name = "Gst.Structure"
status = "manual"
ref_mode = "ref-mut"

Sebastian Dröge's avatar
Sebastian Dröge committed
142 143 144 145 146
[[object]]
name = "Gst.Caps"
status = "manual"
ref_mode = "ref"

147 148 149 150 151 152 153 154 155 156
[[object]]
name = "Gst.Buffer"
status = "manual"
ref_mode = "ref"

[[object]]
name = "Gst.Message"
status = "manual"
ref_mode = "ref"

157 158 159 160 161
[[object]]
name = "Gst.Event"
status = "manual"
ref_mode = "ref"

162 163 164 165 166
[[object]]
name = "Gst.TagList"
status = "manual"
ref_mode = "ref"

167 168 169 170 171
[[object]]
name = "Gst.Query"
status = "manual"
ref_mode = "ref"

172 173 174 175 176
[[object]]
name = "Gst.Context"
status = "manual"
ref_mode = "ref"

177 178 179 180 181
[[object]]
name = "Gst.Toc"
status = "manual"
ref_mode = "ref"

Sebastian Dröge's avatar
Sebastian Dröge committed
182 183 184 185 186
[[object]]
name = "Gst.DateTime"
status = "generate"
concurrency = "send"

187 188 189 190 191 192 193 194 195 196 197 198 199
[[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"

200 201 202 203 204 205 206 207
[[object]]
name = "Gst.SystemClock"
status = "generate"
    [[object.function]]
    name = "obtain"
        [object.function.return]
        nullable = false

208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
[[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
226 227 228 229 230
    [[object.function]]
    name = "link_filtered"
        [object.function.return]
        bool_return_is_error = "Failed to link elements"

231 232 233 234 235
    [[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
236 237 238 239 240
    [[object.function]]
    name = "link_pads_filtered"
        [object.function.return]
        bool_return_is_error = "Failed to link pads"

241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260
    [[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"

261 262 263 264 265
    [[object.function]]
    name = "query"
    # correct mutability
    ignore = true

266 267 268 269 270
    [[object.function]]
    name = "send_event"
    # Pass by value
    ignore = true

271 272 273 274 275
    [[object.function]]
    name = "get_context_unlocked"
    # Unsafe
    ignore = true

276 277 278 279 280
[[object]]
name = "Gst.ElementFactory"
status = "generate"
trait = false

281 282 283 284 285
[[object]]
name = "Gst.DeviceProviderFactory"
status = "generate"
trait = false

286 287 288
[[object]]
name = "Gst.Device"
status = "generate"
Sebastian Dröge's avatar
Sebastian Dröge committed
289 290
    [[object.property]]
    name = "properties"
291 292 293 294
    # Structure is not a GObject
    ignore = true

    [[object.property]]
Sebastian Dröge's avatar
Sebastian Dröge committed
295 296
    name = "caps"
    # Caps is not a GObject
297 298
    ignore = true

299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316
    [[object.property]]
    name = "device-class"
    # Has getter/setter functions
    ignore = true

    [[object.property]]
    name = "display-name"
    # Has getter/setter functions
    ignore = true

[[object]]
name = "Gst.DeviceMonitor"
status = "generate"

    [[object.property]]
    name = "show-all"
    # Has getter/setter functions
    ignore = true
317

318 319
[[object]]
name = "Gst.Object"
320
# For renaming the trait...
321 322
status = "generate"
trait_name = "GstObjectExt"
323 324 325 326 327
    [[object.function]]
    name = "set_name"
        [object.function.return]
        bool_return_is_error = "Failed to set object name"

328 329 330 331 332 333 334 335 336 337
    [[object.function]]
    name = "get_name"
        [object.function.return]
        nullable = false

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

338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375
    [[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
376 377 378 379 380
    [[object.function]]
    name = "activate_mode"
        [object.function.return]
        bool_return_is_error = "Failed to activate mode pad"

Sebastian Dröge's avatar
Sebastian Dröge committed
381 382 383 384 385
    [[object.property]]
    name = "caps"
    # Caps is not a GObject
    ignore = true

386 387 388 389 390
    [[object.function]]
    name = "remove_probe"
    # Don't use a ulong
    ignore = true

391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410
    [[object.function]]
    name = "chain"
    # Move buffer
    ignore = true

    [[object.function]]
    name = "push"
    # Move buffer
    ignore = true

    [[object.function]]
    name = "pull_range"
    # Buffer can be NULL
    ignore = true

    [[object.function]]
    name = "get_range"
    # Buffer can be NULL
    ignore = true

411 412 413 414 415
    [[object.property]]
    name = "template"
    # Has getter/setter functions
    ignore = true

416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440
    [[object.function]]
    name = "query"
    # Correct mutability
    ignore = true

    [[object.function]]
    name = "peer_query"
    # Correct mutability
    ignore = true

    [[object.function]]
    name = "query_default"
    # Correct mutability
    ignore = true

    [[object.function]]
    name = "proxy_query_caps"
    # Correct mutability
    ignore = true

    [[object.function]]
    name = "proxy_query_accept_caps"
    # Correct mutability
    ignore = true

441 442 443 444 445 446 447 448 449 450 451 452 453 454 455
    [[object.function]]
    name = "event_default"
    # Pass by value
    ignore = true

    [[object.function]]
    name = "push_event"
    # Pass by value
    ignore = true

    [[object.function]]
    name = "send_event"
    # Pass by value
    ignore = true

456 457 458 459 460
[[object]]
name = "Gst.PadTemplate"
status = "generate"
trait = false

Sebastian Dröge's avatar
Sebastian Dröge committed
461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494
[[object]]
name = "Gst.GhostPad"
status = "generate"
    [[object.function]]
    name = "set_target"
        [object.function.return]
        bool_return_is_error = "Failed to set target"

    [[object.function]]
    name = "new"
    ignore = true

    [[object.function]]
    name = "new_from_template"
    ignore = true

    [[object.function]]
    name = "construct"
    ignore = true

[[object]]
name = "Gst.ProxyPad"
status = "generate"

    [[object.function]]
    name = "chain_default"
    # Buffer move
    ignore = true

    [[object.function]]
    name = "getrange_default"
    # Buffer move
    ignore = true

495 496 497
[[object]]
name = "Gst.Stream"
status = "generate"
498
trait = false
499 500 501 502 503 504

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

505 506 507 508 509
    [[object.property]]
    name = "tags"
    # TagList is not a GObject
    ignore = true

510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527
    [[object.property]]
    name = "stream-flags"
    # Has setter/getter functions
    ignore = true

    [[object.property]]
    name = "stream-id"
    # Has setter/getter functions
    ignore = true

    [[object.property]]
    name = "stream-type"
    # Has setter/getter functions
    ignore = true

[[object]]
name = "Gst.StreamCollection"
status = "generate"
528
trait = false
529 530 531 532 533 534

    [[object.property]]
    name = "upstream-id"
    # Has setter/getter functions
    ignore = true

535 536 537 538 539
[[object]]
name = "Gst.Plugin"
status = "generate"
trait = false

540 541 542 543 544 545 546 547 548 549 550
[[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
551 552 553 554 555 556

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

557 558 559 560
    [[object.function]]
    name = "calculate_linear_regression"
    ignore = true