Gir_Gst.toml 28.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
10
single_version_file = true
11
generate_display_trait = false
Sebastian Dröge's avatar
Sebastian Dröge committed
12 13 14 15 16 17 18

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

generate = [
19
    "Gst.ClockTimeDiff",
Sebastian Dröge's avatar
Sebastian Dröge committed
20 21 22 23 24
    "Gst.State",
    "Gst.StateChange",
    "Gst.SeekFlags",
    "Gst.SeekType",
    "Gst.PadDirection",
25
    "Gst.PadPresence",
Sebastian Dröge's avatar
Sebastian Dröge committed
26 27 28
    "Gst.URIHandler",
    "Gst.URIType",
    "Gst.ElementFactoryListType",
29 30 31 32 33 34 35 36
    "Gst.BufferingMode",
    "Gst.CoreError",
    "Gst.ResourceError",
    "Gst.LibraryError",
    "Gst.StreamError",
    "Gst.PluginError",
    "Gst.ParseError",
    "Gst.URIError",
37 38 39 40
    "Gst.StructureChangeType",
    "Gst.StreamStatusType",
    "Gst.StreamType",
    "Gst.StreamFlags",
41
    "Gst.ProgressType",
42
    "Gst.BusSyncReply",
43
    "Gst.TagFlag",
Sebastian Dröge's avatar
Sebastian Dröge committed
44
    "Gst.TagMergeMode",
45 46
    "Gst.PadProbeType",
    "Gst.PadProbeReturn",
47
    "Gst.CapsIntersectMode",
48
    "Gst.BufferCopyFlags",
Sebastian Dröge's avatar
Sebastian Dröge committed
49 50
    "Gst.PadMode",
    "Gst.SchedulingFlags",
51
    "Gst.ChildProxy",
52
    "Gst.TagSetter",
Sebastian Dröge's avatar
Sebastian Dröge committed
53
    "Gst.QOSType",
54
    "Gst.TocSetter",
55
    "Gst.ClockType",
56
    "Gst.ElementFlags",
57 58 59 60 61
    "Gst.ObjectFlags",
    "Gst.PadFlags",
    "Gst.BinFlags",
    "Gst.PipelineFlags",
    "Gst.PluginFlags",
62
    "Gst.MemoryFlags",
63
    "Gst.Allocator",
Sebastian Dröge's avatar
Sebastian Dröge committed
64
    "Gst.PadLinkCheck",
65
    "Gst.DebugLevel",
66
    "Gst.DebugColorFlags",
67 68
    "Gst.StackTraceFlags",
    "Gst.DebugGraphDetails",
69
    "Gst.ParseFlags",
70
    "Gst.TaskState",
71
    "Gst.PluginDependencyFlags",
72
    "Gst.DateTime",
73
    "Gst.BufferPoolAcquireFlags",
Sebastian Dröge's avatar
Sebastian Dröge committed
74
    "Gst.PromiseResult",
Sebastian Dröge's avatar
Sebastian Dröge committed
75 76 77 78
]

manual = [
    "GLib.Error",
79
    "GLib.Source",
80
    "GLib.DateTime",
81
    "GObject.Object",
82
    "Gst.Segment",
83 84
    "Gst.StaticCaps",
    "Gst.StaticPadTemplate",
Sebastian Dröge's avatar
Sebastian Dröge committed
85
]
86

87 88 89 90 91
[[object]]
name = "Gst.ClockTime"
status = "manual"
conversion_type = "scalar"

92 93
[[object]]
name = "Gst.Bin"
Sebastian Dröge's avatar
Sebastian Dröge committed
94
subclassing = true
95
status = "generate"
96
trait_name = "GstBinExt"
97 98 99 100 101
    [[object.signal]]
    name = "do-latency"
    # Use Result<(), glib::BoolError>
    ignore = true

102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
    [[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"
125
final_type = true
126 127 128 129 130
    [[object.function]]
    name = "set_sync_handler"
    # Into<Option<_>> makes this hard to use
    ignore = true

131 132 133 134 135
    [[object.function]]
    name = "add_signal_watch_full"
    # Priority
    ignore = true

136 137 138 139 140 141 142 143 144 145 146 147 148
    [[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

149 150 151 152 153
    [[object.function]]
    name = "create_watch"
    # More convenient manual implementation
    ignore = true

154 155 156 157 158 159 160 161 162 163
    [[object.function]]
    name = "add_watch"
    # More specific trait bounds possible for the closure
    ignore = true

    [[object.function]]
    name = "add_watch_full"
    # More specific trait bounds possible for the closure
    ignore = true

164 165 166 167 168
    [[object.function]]
    name = "remove_watch"
        [object.function.return]
        bool_return_is_error = "Bus has no event source"

169 170 171 172
    [[object.signal]]
    name = "message"
    concurrency = "send"

173 174 175 176
    [[object.function]]
    name = "post"
        [object.function.return]
        bool_return_is_error = "Failed to post message"
177

François Laignel's avatar
François Laignel committed
178 179 180 181 182 183 184
[[object]]
name = "Gst.BufferFlags"
status = "generate"
    [[object.derive]]
    name = "Serialize, Deserialize"
    cfg_condition = "feature = \"ser_de\""

185 186 187 188 189 190
[[object]]
name = "Gst.Format"
status = "generate"
    [[object.derive]]
    name = "Serialize, Deserialize"
    cfg_condition = "feature = \"ser_de\""
191 192
    [[object.derive]]
    name = "Debug, PartialEq, Eq, PartialOrd, Ord, Hash"
193

François Laignel's avatar
François Laignel committed
194 195 196 197 198 199 200
[[object]]
name = "Gst.SegmentFlags"
status = "generate"
    [[object.derive]]
    name = "Serialize, Deserialize"
    cfg_condition = "feature = \"ser_de\""

François Laignel's avatar
François Laignel committed
201 202 203 204 205 206
[[object]]
name = "Gst.TocScope"
status = "generate"
    [[object.derive]]
    name = "Serialize, Deserialize"
    cfg_condition = "feature = \"ser_de\""
207 208
    [[object.derive]]
    name = "Debug, PartialEq, Eq, PartialOrd, Ord, Hash"
François Laignel's avatar
François Laignel committed
209 210 211 212 213 214 215

[[object]]
name = "Gst.TocEntryType"
status = "generate"
    [[object.derive]]
    name = "Serialize, Deserialize"
    cfg_condition = "feature = \"ser_de\""
216 217
    [[object.derive]]
    name = "Debug, PartialEq, Eq, PartialOrd, Ord, Hash"
François Laignel's avatar
François Laignel committed
218 219 220 221 222 223 224

[[object]]
name = "Gst.TocLoopType"
status = "generate"
    [[object.derive]]
    name = "Serialize, Deserialize"
    cfg_condition = "feature = \"ser_de\""
225 226 227 228 229 230 231
    [[object.derive]]
    name = "Debug, PartialEq, Eq, PartialOrd, Ord, Hash"

[[object]]
name = "Gst.Rank"
status = "generate"
    [[object.derive]]
232
    name = "Debug"
233 234 235 236 237

[[object]]
name = "Gst.TypeFindProbability"
status = "generate"
    [[object.derive]]
238
    name = "Debug"
239 240 241 242 243 244

[[object]]
name = "Gst.EventType"
status = "generate"
    [[object.derive]]
    name = "Debug, PartialEq, Eq, Hash"
François Laignel's avatar
François Laignel committed
245

246 247 248 249 250
[[object]]
name = "Gst.Structure"
status = "manual"
ref_mode = "ref-mut"

251 252 253 254 255
[[object]]
name = "Gst.ParseContext"
status = "manual"
ref_mode = "ref-mut"

256 257 258 259 260
[[object]]
name = "Gst.Caps"
status = "manual"
ref_mode = "ref"

261 262 263 264 265
[[object]]
name = "Gst.Buffer"
status = "manual"
ref_mode = "ref"

266 267 268 269 270 271 272 273 274 275
[[object]]
name = "Gst.BufferList"
status = "manual"
ref_mode = "ref"

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

276 277 278 279 280
[[object]]
name = "Gst.Message"
status = "manual"
ref_mode = "ref"

281 282 283 284 285
[[object]]
name = "Gst.Event"
status = "manual"
ref_mode = "ref"

286 287 288 289 290
[[object]]
name = "Gst.TagList"
status = "manual"
ref_mode = "ref"

291 292 293 294 295 296 297 298 299
[[object]]
name = "Gst.TagScope"
status = "generate"
    [[object.derive]]
    name = "Serialize, Deserialize"
    cfg_condition = "feature = \"ser_de\""
    [[object.derive]]
    name = "Debug, PartialEq, Eq, PartialOrd, Ord, Hash"

300 301 302 303 304
[[object]]
name = "Gst.Query"
status = "manual"
ref_mode = "ref"

305 306 307 308 309
[[object]]
name = "Gst.Context"
status = "manual"
ref_mode = "ref"

310 311 312 313 314
[[object]]
name = "Gst.Toc"
status = "manual"
ref_mode = "ref"

315 316 317 318 319
[[object]]
name = "Gst.TocEntry"
status = "manual"
ref_mode = "ref"

320 321 322 323 324
[[object]]
name = "Gst.Pipeline"
subclassing = true
status = "generate"

Sebastian Dröge's avatar
Sebastian Dröge committed
325 326 327 328 329
[[object]]
name = "Gst.Promise"
status = "manual"
ref_mode = "ref"

330 331 332 333 334 335 336 337 338 339 340 341 342
[[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"

343 344 345 346 347 348 349 350 351 352
    [[object.function]]
    name = "adjust_with_calibration"
    # Useless clock parameter
    ignore = true

    [[object.function]]
    name = "unadjust_with_calibration"
    # Useless clock parameter
    ignore = true

353 354 355 356 357 358 359 360
[[object]]
name = "Gst.SystemClock"
status = "generate"
    [[object.function]]
    name = "obtain"
        [object.function.return]
        nullable = false

361 362
[[object]]
name = "Gst.Element"
363
subclassing = true
364
status = "generate"
Sebastian Dröge's avatar
Sebastian Dröge committed
365 366 367 368 369 370
    [[object.function]]
    name = "make_from_uri"
        [object.function.return]
        # It is already a Result
        nullable = false

371 372 373 374 375
    [[object.function]]
    name = "call_async"
    # more specific closure type possible
    ignore = true

376 377 378 379 380 381 382 383 384 385 386 387 388 389 390
    [[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"

391 392 393 394 395
    [[object.function]]
    name = "link_filtered"
        [object.function.return]
        bool_return_is_error = "Failed to link elements"

396 397 398 399 400
    [[object.function]]
    name = "link_pads"
        [object.function.return]
        bool_return_is_error = "Failed to link pads"

401 402 403 404 405
    [[object.function]]
    name = "link_pads_filtered"
        [object.function.return]
        bool_return_is_error = "Failed to link pads"

406 407 408 409 410
    [[object.function]]
    name = "link_pads_full"
        [object.function.return]
        bool_return_is_error = "Failed to link pads"

411 412 413 414 415
    [[object.function]]
    name = "post_message"
        [object.function.return]
        bool_return_is_error = "Failed to post message"

416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435
    [[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"

436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455
    [[object.function]]
    name = "change_state"
    # Use Result<StateChangeSuccess, StateChangeError>
    ignore = true

    [[object.function]]
    name = "continue_state"
    # Use Result<StateChangeSuccess, StateChangeError>
    ignore = true

    [[object.function]]
    name = "get_state"
    # Use Result<StateChangeSuccess, StateChangeError>
    ignore = true

    [[object.function]]
    name = "set_state"
    # Use Result<StateChangeSuccess, StateChangeError>
    ignore = true

456 457 458 459 460
    [[object.function]]
    name = "query"
    # correct mutability
    ignore = true

461 462 463 464 465
    [[object.function]]
    name = "send_event"
    # Pass by value
    ignore = true

466 467 468 469 470
    [[object.function]]
    name = "get_context_unlocked"
    # Unsafe
    ignore = true

471 472 473 474 475 476 477 478 479 480 481 482 483 484 485
    [[object.function]]
    name = "add_property_deep_notify_watch"
    # ulong
    ignore = true

    [[object.function]]
    name = "add_property_notify_watch"
    # ulong
    ignore = true

    [[object.function]]
    name = "remove_property_notify_watch"
    # ulong
    ignore = true

486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510
    [[object.function]]
    name = "query_duration"
    # formatted value
    ignore = true

    [[object.function]]
    name = "query_position"
    # formatted value
    ignore = true

    [[object.function]]
    name = "query_convert"
    # formatted value
    ignore = true

    [[object.function]]
    name = "seek"
    # formatted value
    ignore = true

    [[object.function]]
    name = "seek_simple"
    # formatted value
    ignore = true

511 512 513 514 515 516 517 518 519 520
    [[object.function]]
    name = "state_change_return_get_name"
    # Wrong place
    ignore = true

    [[object.function]]
    name = "state_get_name"
    # Wrong place
    ignore = true

Sebastian Dröge's avatar
Sebastian Dröge committed
521 522 523 524 525 526 527 528 529 530 531 532 533 534 535
    [[object.function]]
    name = "get_metadata"
    # better manual function
    ignore = true

    [[object.function]]
    name = "get_pad_template"
    # better manual function
    ignore = true

    [[object.function]]
    name = "get_pad_template_list"
    # better manual function
    ignore = true

536 537 538 539 540
    [[object.function]]
    name = "register"
        [object.function.return]
        bool_return_is_error = "Failed to register element factory"

541 542 543
[[object]]
name = "Gst.ElementFactory"
status = "generate"
544
final_type = true
545

546 547 548
[[object]]
name = "Gst.TypeFindFactory"
status = "generate"
549
final_type = true
550

551 552 553
[[object]]
name = "Gst.DeviceProviderFactory"
status = "generate"
554
final_type = true
555

556 557 558 559 560 561 562 563
[[object]]
name = "Gst.DeviceProvider"
status = "generate"
    [[object.function]]
    name = "get_bus"
        [object.function.return]
        nullable = false

564 565 566 567 568
    [[object.function]]
    name = "start"
        [object.function.return]
        bool_return_is_error = "Failed to start"

569 570 571 572 573
    [[object.function]]
    name = "register"
        [object.function.return]
        bool_return_is_error = "Failed to register device provider factory"

Sebastian Dröge's avatar
Sebastian Dröge committed
574 575 576 577 578
    [[object.function]]
    name = "get_metadata"
    # better manual function
    ignore = true

579 580 581
[[object]]
name = "Gst.DeviceMonitor"
status = "generate"
582 583 584 585 586
    [[object.function]]
    name = "new"
    # Work-around for 1.14 switch from transfer-floating to transfer-full
    ignore = true

587 588 589 590 591
    [[object.function]]
    name = "add_filter"
    # Return Option<DeviceMonitorFilterId>
    ignore = true

592 593 594 595 596
    [[object.function]]
    name = "get_bus"
        [object.function.return]
        nullable = false

597 598 599 600 601
    [[object.function]]
    name = "start"
        [object.function.return]
        bool_return_is_error = "Failed to start"

602 603
    [[object.function]]
    name = "remove_filter"
604 605
    # Use DeviceMonitorFilterId and return Result<(), glib::BoolError>
    ignore = true
606

607 608 609 610 611 612 613 614 615 616 617 618 619
[[object]]
name = "Gst.Device"
status = "generate"
    [[object.function]]
    name = "get_display_name"
        [object.function.return]
        nullable = false

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

620 621 622 623 624
    [[object.function]]
    name = "reconfigure_element"
        [object.function.return]
        bool_return_is_error = "Failed to reconfigure the element to use this device"

625 626
[[object]]
name = "Gst.Object"
627
# For renaming the trait...
628 629
status = "generate"
trait_name = "GstObjectExt"
630 631 632 633 634
    [[object.function]]
    name = "set_name"
        [object.function.return]
        bool_return_is_error = "Failed to set object name"

635 636 637 638 639
    [[object.function]]
    name = "get_name"
        [object.function.return]
        nullable = false

640 641 642 643 644 645
    [[object.function]]
    name = "set_name"
        [[object.function.parameter]]
        name = "name"
        nullable = false

646 647 648 649 650
    [[object.function]]
    name = "get_path_string"
        [object.function.return]
        nullable = false

651 652 653 654 655 656 657 658 659 660 661 662
    [[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"
Sebastian Dröge's avatar
Sebastian Dröge committed
663
subclassing = true
664 665 666 667
status = "generate"
    [[object.function]]
    name = "link_maybe_ghosting"
        [object.function.return]
668 669 670 671 672 673
        bool_return_is_error = "Failed to link pads, possibly ghosting"

    [[object.function]]
    name = "link_maybe_ghosting_full"
        [object.function.return]
        bool_return_is_error = "Failed to link pads, possibly ghosting"
674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694

    [[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
695 696 697 698 699
    [[object.function]]
    name = "activate_mode"
        [object.function.return]
        bool_return_is_error = "Failed to activate mode pad"

700 701 702 703 704
    [[object.function]]
    name = "remove_probe"
    # Don't use a ulong
    ignore = true

705 706 707 708 709 710 711 712 713 714
    [[object.function]]
    name = "chain"
    # Move buffer
    ignore = true

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

715 716 717 718 719 720 721 722 723 724
    [[object.function]]
    name = "chain_list"
    # Move buffer
    ignore = true

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

725 726 727 728 729 730 731 732 733 734
    [[object.function]]
    name = "pull_range"
    # Buffer can be NULL
    ignore = true

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

735 736 737 738 739
    [[object.function]]
    name = "get_last_flow_return"
    # Use Result<FlowSuccess, FlowError>
    ignore = true

740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764
    [[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

765 766 767 768 769 770 771 772 773 774 775 776 777 778 779
    [[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

780 781 782 783 784 785 786 787 788 789 790 791 792 793 794
    [[object.function]]
    name = "link"
    # Use Result<PadLinkSuccess, PadLinkError>
    ignore = true

    [[object.function]]
    name = "link_full"
    # Use Result<PadLinkSuccess, PadLinkError>
    ignore = true

    [[object.function]]
    name = "store_sticky_event"
    # Use Result<FlowSuccess, FlowError>
    ignore = true

795 796 797 798 799
    [[object.function]]
    name = "new_from_static_template"
    # Correct mutability
    ignore = true

800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829
    [[object.function]]
    name = "query_duration"
    # formatted value
    ignore = true

    [[object.function]]
    name = "query_position"
    # formatted value
    ignore = true

    [[object.function]]
    name = "query_convert"
    # formatted value
    ignore = true

    [[object.function]]
    name = "peer_query_duration"
    # formatted value
    ignore = true

    [[object.function]]
    name = "peer_query_position"
    # formatted value
    ignore = true

    [[object.function]]
    name = "peer_query_convert"
    # formatted value
    ignore = true

830 831 832 833 834
    [[object.function]]
    name = "link_get_name"
    # Wrong place
    ignore = true

835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854
    [[object.function]]
    pattern = "set_.*_function_full"
    # More specific closure trait bounds possible
    ignore = true

    [[object.function]]
    name = "start_task"
    # More specific closure trait bounds possible
    ignore = true

    [[object.function]]
    name = "sticky_events_foreach"
    # Complex closure argument handling
    ignore = true

    [[object.function]]
    name = "add_probe"
    # Complex closure argument handling
    ignore = true

855 856 857
[[object]]
name = "Gst.PadTemplate"
status = "generate"
858
final_type = true
Sebastian Dröge's avatar
Sebastian Dröge committed
859 860 861 862
    [[object.function]]
    name = "new_from_static_pad_template_with_gtype"
    # static pad template manual
    ignore = true
863

Sebastian Dröge's avatar
Sebastian Dröge committed
864 865
[[object]]
name = "Gst.GhostPad"
866
subclassing = true
Sebastian Dröge's avatar
Sebastian Dröge committed
867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884
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

885 886 887 888 889 890 891 892 893 894
    [[object.function]]
    name = "activate_mode_default"
    # wrong instance type
    ignore = true

    [[object.function]]
    name = "internal_activate_mode_default"
    # wrong instance type
    ignore = true

Sebastian Dröge's avatar
Sebastian Dröge committed
895 896 897 898 899 900 901 902 903
[[object]]
name = "Gst.ProxyPad"
status = "generate"

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

904 905 906 907 908
    [[object.function]]
    name = "chain_list_default"
    # Buffer move
    ignore = true

Sebastian Dröge's avatar
Sebastian Dröge committed
909 910 911 912 913
    [[object.function]]
    name = "getrange_default"
    # Buffer move
    ignore = true

914 915 916
[[object]]
name = "Gst.Stream"
status = "generate"
917
final_type = true
918 919 920 921
    [[object.function]]
    name = "new"
    # Work-around for 1.14 switch from transfer-floating to transfer-full
    ignore = true
922

923 924 925
[[object]]
name = "Gst.StreamCollection"
status = "generate"
926
final_type = true
927 928 929 930
    [[object.function]]
    name = "new"
    # Work-around for 1.14 switch from transfer-floating to transfer-full
    ignore = true
931

932 933 934 935 936
    [[object.function]]
    name = "add_stream"
    # Ignore return value which is always `true`
    ignore = true

937 938 939
[[object]]
name = "Gst.Plugin"
status = "generate"
940
final_type = true
941

942 943 944 945 946
    [[object.function]]
    pattern = "register_static.*"
    # Needs manual implementation
    ignore = true

947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996
    [[object.function]]
    name = "list_free"
    # useless and unsafe
    ignore = true

    [[object.function]]
    name = "set_cache_data"
    # pass by value
    ignore = true

    [[object.function]]
    name = "get_cache_data"
    # structure ref
    ignore = true

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

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

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

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

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

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

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

997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010
[[object]]
name = "Gst.PluginFeature"
status = "generate"
    [[object.function]]
    pattern = "list_.*"
    ignore = true

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

[[object]]
name = "Gst.Registry"
status = "generate"
1011
final_type = true
1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031

    [[object.function]]
    pattern = "fork_.*"
    ignore = true

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

    [[object.function]]
    name = "add_feature"
        [object.function.return]
        bool_return_is_error = "Failed to add feature"

    [[object.function]]
    name = "add_plugin"
        [object.function.return]
        bool_return_is_error = "Failed to add plugin"

1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059
[[object]]
name = "Gst.BufferPool"
status = "generate"
    [[object.function]]
    pattern = "config_.*"
    # A different type
    ignore = true

    [[object.function]]
    name = "get_config"
    # A different type
    ignore = true

    [[object.function]]
    name = "set_config"
    # Takes ownership
    ignore = true

    [[object.function]]
    name = "acquire_buffer"
    # Params and return value
    ignore = true

    [[object.function]]
    name = "release_buffer"
    # Takes ownership
    ignore = true

1060 1061 1062 1063 1064
    [[object.function]]
    name = "new"
    # Work-around for 1.14 switch from transfer-floating to transfer-full
    ignore = true

1065 1066 1067 1068 1069
    [[object.function]]
    name = "set_active"
        [object.function.return]
        bool_return_is_error = "Failed to activate buffer pool"

1070 1071 1072 1073 1074 1075 1076 1077 1078
[[object]]
name = "Gst.Preset"
status = "generate"

    [[object.function]]
    name = "set_app_dir"
        [object.function.return]
        bool_return_is_error = "Failed to set app preset directory"

1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103
    [[object.function]]
    name = "delete_preset"
        [object.function.return]
        bool_return_is_error = "Failed to delete preset"

    [[object.function]]
    name = "load_preset"
        [object.function.return]
        bool_return_is_error = "Failed to load preset"

    [[object.function]]
    name = "save_preset"
        [object.function.return]
        bool_return_is_error = "Failed to save preset"

    [[object.function]]
    name = "rename_preset"
        [object.function.return]
        bool_return_is_error = "Failed to rename preset"

    [[object.function]]
    name = "set_meta"
        [object.function.return]
        bool_return_is_error = "Failed to set preset meta"

1104 1105 1106
[[object]]
name = "Gst.*"
status = "generate"
1107 1108 1109 1110 1111
    # We'll opt-in for constants at a later time
    [[object.constant]]
    pattern = ".+"
    ignore = true

1112 1113 1114
    [[object.function]]
    name = "util_dump_mem"
    ignore = true
1115

Sebastian Dröge's avatar
Sebastian Dröge committed
1116 1117 1118 1119 1120
    [[object.function]]
    name = "util_dump_buffer"
    # We have our Debug impl on buffers
    ignore = true

1121 1122 1123 1124 1125
    [[object.function]]
    name = "protection_select_system"
    # unsupported array type
    ignore = true

1126 1127 1128 1129
    [[object.function]]
    name = "calculate_linear_regression"
    ignore = true

1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280
    [[object.function]]
    pattern = "value_.*"
    ignore = true

    [[object.function]]
    pattern = ".*_get_type"
    ignore = true

    [[object.function]]
    pattern = "tag_.*"
    ignore = true

    [[object.function]]
    pattern = "segtrap_.*"
    ignore = true

    [[object.function]]
    pattern = "util_[g]?double_.*"
    ignore = true

    [[object.function]]
    pattern = "util_fraction_.*"
    ignore = true

    [[object.function]]
    pattern = "util_greatest_.*"
    ignore = true

    [[object.function]]
    pattern = "util_[g]?uint64.*"
    ignore = true

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    [[object.function]]
    pattern = "debug_log.*"
    ignore = true

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

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

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

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

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

    [[object.function]]
    pattern = "info_.*"
    ignore = true

    [[object.function]]
    pattern = "print.*"
    ignore = true

    [[object.function]]
    pattern = "init.*"
    ignore = true

    [[object.function]]
    pattern = "param_spec_.*"
    ignore = true

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

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

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

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

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

    [[object.function]]
    name = "util_set_value_from_string"
    ignore = true
1281 1282 1283 1284 1285

    [[object.function]]
    pattern = "parse.*full"
    # wrong mutable for context parameter
    ignore = true
1286

1287 1288 1289 1290 1291
    [[object.function]]
    name = "update_registry"
        [object.function.return]
        bool_return_is_error = "Failed to update the registry"

1292 1293 1294 1295 1296 1297 1298 1299 1300 1301
    [[object.function]]
    name = "util_group_id_next"
    # newtype wrapper
    ignore = true

    [[object.function]]
    name = "util_seqnum_next"
    # newtype wrapper
    ignore = true

Sebastian Dröge's avatar
Sebastian Dröge committed
1302 1303 1304 1305 1306
    [[object.function]]
    name = "protection_filter_systems_by_available_decryptors"
    # wrong array annotations
    ignore = true

1307 1308 1309 1310 1311
    [[object.function]]
    pattern = "clear_.*"
    # C memory management
    ignore = true

1312 1313 1314 1315 1316 1317 1318 1319 1320 1321
    [[object.function]]
    name = "debug_bin_to_dot_data"
        [object.function.return]
        nullable = false

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

1322 1323 1324 1325 1326
    [[object.function]]
    name = "parse_bin_from_description"
        [object.function.return]
        nullable = false

Sebastian Dröge's avatar
Sebastian Dröge committed
1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338
    [[object.function]]
    name = "parse_launch"
        [object.function.return]
        # Already a Result
        nullable = false

    [[object.function]]
    name = "parse_launchv"
        [object.function.return]
        # Already a Result
        nullable = false

1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357
[[object]]
name = "Gst.StateChangeReturn"
status = "generate"
must_use = true

[[object]]
name = "Gst.FlowReturn"
status = "generate"
must_use = true

[[object]]
name = "Gst.PadLinkReturn"
status = "generate"
must_use = true

[[object]]
name = "Gst.ClockReturn"
status = "generate"
must_use = true