csharp: GstSdp: add API new in 1.28
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9620>
This commit is contained in:
parent
de0a6cfd20
commit
803bde32dc
@ -39,6 +39,18 @@ namespace Gst.Sdp {
|
||||
return ret;
|
||||
}
|
||||
|
||||
[DllImport("gstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int gst_sdp_media_add_media_from_structure(IntPtr structure, IntPtr media);
|
||||
|
||||
public static Gst.Sdp.SDPResult SdpMediaAddMediaFromStructure(Gst.Structure structure, out Gst.Sdp.SDPMedia media) {
|
||||
IntPtr native_media = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gst.Sdp.SDPMedia)));
|
||||
int raw_ret = gst_sdp_media_add_media_from_structure(structure == null ? IntPtr.Zero : structure.Handle, native_media);
|
||||
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
|
||||
media = Gst.Sdp.SDPMedia.New (native_media);
|
||||
Marshal.FreeHGlobal (native_media);
|
||||
return ret;
|
||||
}
|
||||
|
||||
[DllImport("gstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int gst_sdp_media_init(IntPtr media);
|
||||
|
||||
|
@ -594,6 +594,18 @@ namespace Gst.Sdp {
|
||||
return ret;
|
||||
}
|
||||
|
||||
[DllImport("gstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int gst_sdp_media_add_media_from_structure(IntPtr structure, IntPtr media);
|
||||
|
||||
public static Gst.Sdp.SDPResult AddMediaFromStructure(Gst.Structure structure, out Gst.Sdp.SDPMedia media) {
|
||||
IntPtr native_media = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gst.Sdp.SDPMedia)));
|
||||
int raw_ret = gst_sdp_media_add_media_from_structure(structure == null ? IntPtr.Zero : structure.Handle, native_media);
|
||||
Gst.Sdp.SDPResult ret = (Gst.Sdp.SDPResult) raw_ret;
|
||||
media = Gst.Sdp.SDPMedia.New (native_media);
|
||||
Marshal.FreeHGlobal (native_media);
|
||||
return ret;
|
||||
}
|
||||
|
||||
[DllImport("gstsdp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
static extern int gst_sdp_media_init(IntPtr media);
|
||||
|
||||
|
@ -27958,6 +27958,17 @@
|
||||
<return-type type="GstSDPResult" />
|
||||
<parameters />
|
||||
</method>
|
||||
<method name="AddMediaFromStructure" cname="gst_sdp_media_add_media_from_structure" shared="true" version="1.28">
|
||||
<return-type type="GstSDPResult" />
|
||||
<parameters>
|
||||
<parameter name="structure" type="GstStructure*">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</parameter>
|
||||
<parameter name="media" type="GstSDPMedia*" pass_as="out">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</parameter>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="Init" cname="gst_sdp_media_init" shared="true">
|
||||
<return-type type="GstSDPResult" />
|
||||
<parameters>
|
||||
@ -28530,6 +28541,17 @@
|
||||
<parameter name="base64" type="const-gchar*" />
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="SdpMediaAddMediaFromStructure" cname="gst_sdp_media_add_media_from_structure" shared="true" version="1.28">
|
||||
<return-type type="GstSDPResult" />
|
||||
<parameters>
|
||||
<parameter name="structure" type="GstStructure*">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</parameter>
|
||||
<parameter name="media" type="GstSDPMedia*" pass_as="out">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</parameter>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="SdpMediaInit" cname="gst_sdp_media_init" shared="true">
|
||||
<return-type type="GstSDPResult" />
|
||||
<parameters>
|
||||
|
@ -28032,6 +28032,17 @@
|
||||
<return-type type="GstSDPResult"/>
|
||||
<parameters/>
|
||||
</method>
|
||||
<method name="AddMediaFromStructure" cname="gst_sdp_media_add_media_from_structure" shared="true" version="1.28">
|
||||
<return-type type="GstSDPResult"/>
|
||||
<parameters>
|
||||
<parameter name="structure" type="GstStructure*">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</parameter>
|
||||
<parameter name="media" type="GstSDPMedia*" pass_as="out">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</parameter>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="Init" cname="gst_sdp_media_init" shared="true">
|
||||
<return-type type="GstSDPResult"/>
|
||||
<parameters>
|
||||
@ -28604,6 +28615,17 @@
|
||||
<parameter name="base64" type="const-gchar*"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="SdpMediaAddMediaFromStructure" cname="gst_sdp_media_add_media_from_structure" shared="true" version="1.28">
|
||||
<return-type type="GstSDPResult"/>
|
||||
<parameters>
|
||||
<parameter name="structure" type="GstStructure*">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</parameter>
|
||||
<parameter name="media" type="GstSDPMedia*" pass_as="out">
|
||||
<warning>missing glib:type-name</warning>
|
||||
</parameter>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="SdpMediaInit" cname="gst_sdp_media_init" shared="true">
|
||||
<return-type type="GstSDPResult"/>
|
||||
<parameters>
|
||||
|
Loading…
x
Reference in New Issue
Block a user