gir.core icon indicating copy to clipboard operation
gir.core copied to clipboard

[GStreamer] Some methods are missing even though they are in gir files

Open toomasz opened this issue 6 months ago • 2 comments

Some methods are not generated even though they are defined in .gir files.

Some of the missing methods:

 Gst.Message.ParseErrorDetails
 Gst.Message.ParseStateChanged
 Gst.Message.ParseBuffering
 Gst.Message.ParseProgress
 Gst.Message.ParseStreamStatus
 Gst.Message.ParseResetTime
 Gst.Message.ParseTag
 Gst.Message.ParseStreamCollection

Example:

gst_message_parse_async_done -> has correspoding Gst.Message.ParseAsyncDone method. gst_message_parse_error -> missing Gst.Message.ParseError method.

Additional context:

Gst-1.0.gir has all definitions so it looks like error in tooling <method name="parse_error" c:identifier="gst_message_parse_error"> errors visible for that methods:

message = "Did not generate method 'Message.ParseStateChanged': GirModel.AnyType: GirModel.Type: GirLoader.Output.Enumeration: Enumeration with direction != in not yet supported"

toomasz avatar Jun 27 '25 10:06 toomasz

The message says that there is no support for this parameter type yet.

The generator just skips methods with unsupported parameters.

If you need this method you can try to manually add a binding in your project. If you have something working you could post your solution here and we can try to bring it into GirCore itself.

badcel avatar Jun 27 '25 14:06 badcel

Related to https://github.com/gircore/gir.core/issues/932

toomasz avatar Jul 01 '25 19:07 toomasz