csharp: Add GstRtspServer bindings

With a few unnecessary gst_rtsp_stream_transport_* methods manually disabled to avoid compilation errors.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5961>
This commit is contained in:
Piotr Brzeziński 2024-01-22 21:07:40 +01:00 committed by GStreamer Marge Bot
parent 2bc9abd60b
commit 4e31f2def5
106 changed files with 21200 additions and 2 deletions

View file

@ -77,6 +77,7 @@ gst_deps_defs = [
['gstreamer-tag', ['gst-plugins-base', 'tag_dep'], 'gsttag'],
['gstreamer-video', ['gst-plugins-base', 'video_dep'], 'gstvideo'],
['gstreamer-webrtc', ['gst-plugins-bad', 'gstwebrtc_dep'], 'gstwebrtc'],
['gstreamer-rtsp-server', ['gst-rtsp-server', 'gst_rtsp_server_dep'], 'gst_rtsp_server'],
]
foreach dep: gst_deps_defs
@ -177,7 +178,7 @@ endif
if codegen_enabled
env = environment()
env.set('GI_TYPELIB_PATH', girs_dir)
merge_with = '--merge-with=GstApp-1.0,GstAudio-1.0,GstBase-1.0,GstController-1.0,GstNet-1.0,GstPbutils-1.0,GstRtp-1.0,GstRtsp-1.0,GstSdp-1.0,GstTag-1.0,GstVideo-1.0,GstWebRTC-1.0'
merge_with = '--merge-with=GstApp-1.0,GstAudio-1.0,GstBase-1.0,GstController-1.0,GstNet-1.0,GstPbutils-1.0,GstRtp-1.0,GstRtsp-1.0,GstSdp-1.0,GstTag-1.0,GstVideo-1.0,GstWebRTC-1.0,GstRtspServer-1.0'
run_target('bindinate_gstreamer',
command: ['sh', '-c',
'''@0@ --name=gstreamer --regenerate=true @3@ --gir=Gst-1.0 --out=@1@ && mv @1@/sources/gstreamer-sharp-api.raw @2@/sources/gstreamer-sharp-api.raw '''.format(

View file

@ -0,0 +1,30 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void AcceptCertificateHandler(object o, AcceptCertificateArgs args);
public class AcceptCertificateArgs : GLib.SignalArgs {
public GLib.TlsConnection Connection{
get {
return (GLib.TlsConnection) Args [0];
}
}
public GLib.TlsCertificate PeerCert{
get {
return (GLib.TlsCertificate) Args [1];
}
}
public GLib.TlsCertificateFlags Errors{
get {
return (GLib.TlsCertificateFlags) Args [2];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void AnnounceRequestHandler(object o, AnnounceRequestArgs args);
public class AnnounceRequestArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPContext Ctx{
get {
return (Gst.RtspServer.RTSPContext) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void ClientConnectedHandler(object o, ClientConnectedArgs args);
public class ClientConnectedArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPClient Object{
get {
return (Gst.RtspServer.RTSPClient) Args [0];
}
}
}
}

View file

@ -0,0 +1,29 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class Constants {
public const string RTSP_ADDRESS_POOL_ANY_IPV4 = @"0.0.0.0";
public const string RTSP_ADDRESS_POOL_ANY_IPV6 = @"::";
public const string RTSP_AUTH_CHECK_CONNECT = @"auth.check.connect";
public const string RTSP_AUTH_CHECK_MEDIA_FACTORY_ACCESS = @"auth.check.media.factory.access";
public const string RTSP_AUTH_CHECK_MEDIA_FACTORY_CONSTRUCT = @"auth.check.media.factory.construct";
public const string RTSP_AUTH_CHECK_TRANSPORT_CLIENT_SETTINGS = @"auth.check.transport.client-settings";
public const string RTSP_AUTH_CHECK_URL = @"auth.check.url";
public const string RTSP_ONVIF_BACKCHANNEL_REQUIREMENT = @"www.onvif.org/ver20/backchannel";
public const string RTSP_ONVIF_REPLAY_REQUIREMENT = @"onvif-replay";
public const string RTSP_PERM_MEDIA_FACTORY_ACCESS = @"media.factory.access";
public const string RTSP_PERM_MEDIA_FACTORY_CONSTRUCT = @"media.factory.construct";
public const string RTSP_TOKEN_MEDIA_FACTORY_ROLE = @"media.factory.role";
public const string RTSP_TOKEN_TRANSPORT_CLIENT_SETTINGS = @"transport.client-settings";
#endregion
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void DescribeRequestHandler(object o, DescribeRequestArgs args);
public class DescribeRequestArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPContext Ctx{
get {
return (Gst.RtspServer.RTSPContext) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void GetParameterRequestHandler(object o, GetParameterRequestArgs args);
public class GetParameterRequestArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPContext Ctx{
get {
return (Gst.RtspServer.RTSPContext) Args [0];
}
}
}
}

View file

@ -0,0 +1,80 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class Global {
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_context_get_type();
public static GLib.GType RtspContextGetType() {
IntPtr raw_ret = gst_rtsp_context_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_params_get(IntPtr client, IntPtr ctx);
public static Gst.Rtsp.RTSPResult RtspParamsGet(Gst.RtspServer.RTSPClient client, Gst.RtspServer.RTSPContext ctx) {
IntPtr native_ctx = GLib.Marshaller.StructureToPtrAlloc (ctx);
int raw_ret = gst_rtsp_params_get(client == null ? IntPtr.Zero : client.Handle, native_ctx);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
Marshal.FreeHGlobal (native_ctx);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_params_set(IntPtr client, IntPtr ctx);
public static Gst.Rtsp.RTSPResult RtspParamsSet(Gst.RtspServer.RTSPClient client, Gst.RtspServer.RTSPContext ctx) {
IntPtr native_ctx = GLib.Marshaller.StructureToPtrAlloc (ctx);
int raw_ret = gst_rtsp_params_set(client == null ? IntPtr.Zero : client.Handle, native_ctx);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
Marshal.FreeHGlobal (native_ctx);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_sdp_from_media(IntPtr sdp, IntPtr info, IntPtr media);
public static bool RtspSdpFromMedia(Gst.Sdp.SDPMessage sdp, Gst.RtspServer.SDPInfo info, Gst.RtspServer.RTSPMedia media) {
IntPtr native_info = GLib.Marshaller.StructureToPtrAlloc (info);
bool raw_ret = gst_rtsp_sdp_from_media(sdp == null ? IntPtr.Zero : sdp.Handle, native_info, media == null ? IntPtr.Zero : media.Handle);
bool ret = raw_ret;
Marshal.FreeHGlobal (native_info);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_sdp_from_stream(IntPtr sdp, IntPtr info, IntPtr stream);
public static bool RtspSdpFromStream(Gst.Sdp.SDPMessage sdp, Gst.RtspServer.SDPInfo info, Gst.RtspServer.RTSPStream stream) {
IntPtr native_info = GLib.Marshaller.StructureToPtrAlloc (info);
bool raw_ret = gst_rtsp_sdp_from_stream(sdp == null ? IntPtr.Zero : sdp.Handle, native_info, stream == null ? IntPtr.Zero : stream.Handle);
bool ret = raw_ret;
Marshal.FreeHGlobal (native_info);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_sdp_make_media(IntPtr sdp, IntPtr info, IntPtr stream, IntPtr caps, int profile);
public static bool RtspSdpMakeMedia(Gst.Sdp.SDPMessage sdp, Gst.RtspServer.SDPInfo info, Gst.RtspServer.RTSPStream stream, Gst.Caps caps, Gst.Rtsp.RTSPProfile profile) {
IntPtr native_info = GLib.Marshaller.StructureToPtrAlloc (info);
bool raw_ret = gst_rtsp_sdp_make_media(sdp == null ? IntPtr.Zero : sdp.Handle, native_info, stream == null ? IntPtr.Zero : stream.Handle, caps == null ? IntPtr.Zero : caps.Handle, (int) profile);
bool ret = raw_ret;
Marshal.FreeHGlobal (native_info);
return ret;
}
#endregion
}
}

View file

@ -0,0 +1,97 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServerSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate bool RTSPClientSendFuncNative(IntPtr client, IntPtr message, bool close, IntPtr user_data);
internal class RTSPClientSendFuncInvoker {
RTSPClientSendFuncNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~RTSPClientSendFuncInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal RTSPClientSendFuncInvoker (RTSPClientSendFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal RTSPClientSendFuncInvoker (RTSPClientSendFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal RTSPClientSendFuncInvoker (RTSPClientSendFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Gst.RtspServer.RTSPClientSendFunc Handler {
get {
return new Gst.RtspServer.RTSPClientSendFunc(InvokeNative);
}
}
bool InvokeNative (Gst.RtspServer.RTSPClient client, Gst.Rtsp.RTSPMessage message, bool close)
{
IntPtr native_message = GLib.Marshaller.StructureToPtrAlloc (message);
bool __result = native_cb (client == null ? IntPtr.Zero : client.Handle, native_message, close, __data);
Marshal.FreeHGlobal (native_message);
return __result;
}
}
internal class RTSPClientSendFuncWrapper {
public bool NativeCallback (IntPtr client, IntPtr message, bool close, IntPtr user_data)
{
try {
bool __ret = managed (GLib.Object.GetObject(client) as Gst.RtspServer.RTSPClient, Gst.Rtsp.RTSPMessage.New (message), close);
if (release_on_call)
gch.Free ();
return __ret;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
return false;
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal RTSPClientSendFuncNative NativeDelegate;
Gst.RtspServer.RTSPClientSendFunc managed;
public RTSPClientSendFuncWrapper (Gst.RtspServer.RTSPClientSendFunc managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new RTSPClientSendFuncNative (NativeCallback);
}
public static Gst.RtspServer.RTSPClientSendFunc GetManagedDelegate (RTSPClientSendFuncNative native)
{
if (native == null)
return null;
RTSPClientSendFuncWrapper wrapper = (RTSPClientSendFuncWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View file

@ -0,0 +1,97 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServerSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate bool RTSPClientSendMessagesFuncNative(IntPtr client, IntPtr messages, uint n_messages, bool close, IntPtr user_data);
internal class RTSPClientSendMessagesFuncInvoker {
RTSPClientSendMessagesFuncNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~RTSPClientSendMessagesFuncInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal RTSPClientSendMessagesFuncInvoker (RTSPClientSendMessagesFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal RTSPClientSendMessagesFuncInvoker (RTSPClientSendMessagesFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal RTSPClientSendMessagesFuncInvoker (RTSPClientSendMessagesFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Gst.RtspServer.RTSPClientSendMessagesFunc Handler {
get {
return new Gst.RtspServer.RTSPClientSendMessagesFunc(InvokeNative);
}
}
bool InvokeNative (Gst.RtspServer.RTSPClient client, Gst.Rtsp.RTSPMessage messages, uint n_messages, bool close)
{
IntPtr native_messages = GLib.Marshaller.StructureToPtrAlloc (messages);
bool __result = native_cb (client == null ? IntPtr.Zero : client.Handle, native_messages, n_messages, close, __data);
Marshal.FreeHGlobal (native_messages);
return __result;
}
}
internal class RTSPClientSendMessagesFuncWrapper {
public bool NativeCallback (IntPtr client, IntPtr messages, uint n_messages, bool close, IntPtr user_data)
{
try {
bool __ret = managed (GLib.Object.GetObject(client) as Gst.RtspServer.RTSPClient, Gst.Rtsp.RTSPMessage.New (messages), n_messages, close);
if (release_on_call)
gch.Free ();
return __ret;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
return false;
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal RTSPClientSendMessagesFuncNative NativeDelegate;
Gst.RtspServer.RTSPClientSendMessagesFunc managed;
public RTSPClientSendMessagesFuncWrapper (Gst.RtspServer.RTSPClientSendMessagesFunc managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new RTSPClientSendMessagesFuncNative (NativeCallback);
}
public static Gst.RtspServer.RTSPClientSendMessagesFunc GetManagedDelegate (RTSPClientSendMessagesFuncNative native)
{
if (native == null)
return null;
RTSPClientSendMessagesFuncWrapper wrapper = (RTSPClientSendMessagesFuncWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View file

@ -0,0 +1,96 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServerSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate int RTSPClientSessionFilterFuncNative(IntPtr client, IntPtr sess, IntPtr user_data);
internal class RTSPClientSessionFilterFuncInvoker {
RTSPClientSessionFilterFuncNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~RTSPClientSessionFilterFuncInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal RTSPClientSessionFilterFuncInvoker (RTSPClientSessionFilterFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal RTSPClientSessionFilterFuncInvoker (RTSPClientSessionFilterFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal RTSPClientSessionFilterFuncInvoker (RTSPClientSessionFilterFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Gst.RtspServer.RTSPClientSessionFilterFunc Handler {
get {
return new Gst.RtspServer.RTSPClientSessionFilterFunc(InvokeNative);
}
}
Gst.RtspServer.RTSPFilterResult InvokeNative (Gst.RtspServer.RTSPClient client, Gst.RtspServer.RTSPSession sess)
{
Gst.RtspServer.RTSPFilterResult __result = (Gst.RtspServer.RTSPFilterResult) native_cb (client == null ? IntPtr.Zero : client.Handle, sess == null ? IntPtr.Zero : sess.Handle, __data);
return __result;
}
}
internal class RTSPClientSessionFilterFuncWrapper {
public int NativeCallback (IntPtr client, IntPtr sess, IntPtr user_data)
{
try {
Gst.RtspServer.RTSPFilterResult __ret = managed (GLib.Object.GetObject(client) as Gst.RtspServer.RTSPClient, GLib.Object.GetObject(sess) as Gst.RtspServer.RTSPSession);
if (release_on_call)
gch.Free ();
return (int) __ret;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: Above call does not return.
throw e;
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal RTSPClientSessionFilterFuncNative NativeDelegate;
Gst.RtspServer.RTSPClientSessionFilterFunc managed;
public RTSPClientSessionFilterFuncWrapper (Gst.RtspServer.RTSPClientSessionFilterFunc managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new RTSPClientSessionFilterFuncNative (NativeCallback);
}
public static Gst.RtspServer.RTSPClientSessionFilterFunc GetManagedDelegate (RTSPClientSessionFilterFuncNative native)
{
if (native == null)
return null;
RTSPClientSessionFilterFuncWrapper wrapper = (RTSPClientSessionFilterFuncWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View file

@ -0,0 +1,92 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServerSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void RTSPKeepAliveFuncNative(IntPtr user_data);
internal class RTSPKeepAliveFuncInvoker {
RTSPKeepAliveFuncNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~RTSPKeepAliveFuncInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal RTSPKeepAliveFuncInvoker (RTSPKeepAliveFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal RTSPKeepAliveFuncInvoker (RTSPKeepAliveFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal RTSPKeepAliveFuncInvoker (RTSPKeepAliveFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Gst.RtspServer.RTSPKeepAliveFunc Handler {
get {
return new Gst.RtspServer.RTSPKeepAliveFunc(InvokeNative);
}
}
void InvokeNative ()
{
native_cb (__data);
}
}
internal class RTSPKeepAliveFuncWrapper {
public void NativeCallback (IntPtr user_data)
{
try {
managed ();
if (release_on_call)
gch.Free ();
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal RTSPKeepAliveFuncNative NativeDelegate;
Gst.RtspServer.RTSPKeepAliveFunc managed;
public RTSPKeepAliveFuncWrapper (Gst.RtspServer.RTSPKeepAliveFunc managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new RTSPKeepAliveFuncNative (NativeCallback);
}
public static Gst.RtspServer.RTSPKeepAliveFunc GetManagedDelegate (RTSPKeepAliveFuncNative native)
{
if (native == null)
return null;
RTSPKeepAliveFuncWrapper wrapper = (RTSPKeepAliveFuncWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View file

@ -0,0 +1,92 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServerSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void RTSPMessageSentFuncFullNative(IntPtr trans, IntPtr user_data);
internal class RTSPMessageSentFuncFullInvoker {
RTSPMessageSentFuncFullNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~RTSPMessageSentFuncFullInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal RTSPMessageSentFuncFullInvoker (RTSPMessageSentFuncFullNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal RTSPMessageSentFuncFullInvoker (RTSPMessageSentFuncFullNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal RTSPMessageSentFuncFullInvoker (RTSPMessageSentFuncFullNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Gst.RtspServer.RTSPMessageSentFuncFull Handler {
get {
return new Gst.RtspServer.RTSPMessageSentFuncFull(InvokeNative);
}
}
void InvokeNative (Gst.RtspServer.RTSPStreamTransport trans)
{
native_cb (trans == null ? IntPtr.Zero : trans.Handle, __data);
}
}
internal class RTSPMessageSentFuncFullWrapper {
public void NativeCallback (IntPtr trans, IntPtr user_data)
{
try {
managed (GLib.Object.GetObject(trans) as Gst.RtspServer.RTSPStreamTransport);
if (release_on_call)
gch.Free ();
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal RTSPMessageSentFuncFullNative NativeDelegate;
Gst.RtspServer.RTSPMessageSentFuncFull managed;
public RTSPMessageSentFuncFullWrapper (Gst.RtspServer.RTSPMessageSentFuncFull managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new RTSPMessageSentFuncFullNative (NativeCallback);
}
public static Gst.RtspServer.RTSPMessageSentFuncFull GetManagedDelegate (RTSPMessageSentFuncFullNative native)
{
if (native == null)
return null;
RTSPMessageSentFuncFullWrapper wrapper = (RTSPMessageSentFuncFullWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View file

@ -0,0 +1,92 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServerSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate void RTSPMessageSentFuncNative(IntPtr user_data);
internal class RTSPMessageSentFuncInvoker {
RTSPMessageSentFuncNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~RTSPMessageSentFuncInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal RTSPMessageSentFuncInvoker (RTSPMessageSentFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal RTSPMessageSentFuncInvoker (RTSPMessageSentFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal RTSPMessageSentFuncInvoker (RTSPMessageSentFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Gst.RtspServer.RTSPMessageSentFunc Handler {
get {
return new Gst.RtspServer.RTSPMessageSentFunc(InvokeNative);
}
}
void InvokeNative ()
{
native_cb (__data);
}
}
internal class RTSPMessageSentFuncWrapper {
public void NativeCallback (IntPtr user_data)
{
try {
managed ();
if (release_on_call)
gch.Free ();
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal RTSPMessageSentFuncNative NativeDelegate;
Gst.RtspServer.RTSPMessageSentFunc managed;
public RTSPMessageSentFuncWrapper (Gst.RtspServer.RTSPMessageSentFunc managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new RTSPMessageSentFuncNative (NativeCallback);
}
public static Gst.RtspServer.RTSPMessageSentFunc GetManagedDelegate (RTSPMessageSentFuncNative native)
{
if (native == null)
return null;
RTSPMessageSentFuncWrapper wrapper = (RTSPMessageSentFuncWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View file

@ -0,0 +1,95 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServerSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate bool RTSPSendFuncNative(IntPtr buffer, byte channel, IntPtr user_data);
internal class RTSPSendFuncInvoker {
RTSPSendFuncNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~RTSPSendFuncInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal RTSPSendFuncInvoker (RTSPSendFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal RTSPSendFuncInvoker (RTSPSendFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal RTSPSendFuncInvoker (RTSPSendFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Gst.RtspServer.RTSPSendFunc Handler {
get {
return new Gst.RtspServer.RTSPSendFunc(InvokeNative);
}
}
bool InvokeNative (Gst.Buffer buffer, byte channel)
{
bool __result = native_cb (buffer == null ? IntPtr.Zero : buffer.Handle, channel, __data);
return __result;
}
}
internal class RTSPSendFuncWrapper {
public bool NativeCallback (IntPtr buffer, byte channel, IntPtr user_data)
{
try {
bool __ret = managed (buffer == IntPtr.Zero ? null : (Gst.Buffer) GLib.Opaque.GetOpaque (buffer, typeof (Gst.Buffer), false), channel);
if (release_on_call)
gch.Free ();
return __ret;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
return false;
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal RTSPSendFuncNative NativeDelegate;
Gst.RtspServer.RTSPSendFunc managed;
public RTSPSendFuncWrapper (Gst.RtspServer.RTSPSendFunc managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new RTSPSendFuncNative (NativeCallback);
}
public static Gst.RtspServer.RTSPSendFunc GetManagedDelegate (RTSPSendFuncNative native)
{
if (native == null)
return null;
RTSPSendFuncWrapper wrapper = (RTSPSendFuncWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View file

@ -0,0 +1,95 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServerSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate bool RTSPSendListFuncNative(IntPtr buffer_list, byte channel, IntPtr user_data);
internal class RTSPSendListFuncInvoker {
RTSPSendListFuncNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~RTSPSendListFuncInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal RTSPSendListFuncInvoker (RTSPSendListFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal RTSPSendListFuncInvoker (RTSPSendListFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal RTSPSendListFuncInvoker (RTSPSendListFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Gst.RtspServer.RTSPSendListFunc Handler {
get {
return new Gst.RtspServer.RTSPSendListFunc(InvokeNative);
}
}
bool InvokeNative (Gst.BufferList buffer_list, byte channel)
{
bool __result = native_cb (buffer_list == null ? IntPtr.Zero : buffer_list.Handle, channel, __data);
return __result;
}
}
internal class RTSPSendListFuncWrapper {
public bool NativeCallback (IntPtr buffer_list, byte channel, IntPtr user_data)
{
try {
bool __ret = managed (buffer_list == IntPtr.Zero ? null : (Gst.BufferList) GLib.Opaque.GetOpaque (buffer_list, typeof (Gst.BufferList), false), channel);
if (release_on_call)
gch.Free ();
return __ret;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
return false;
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal RTSPSendListFuncNative NativeDelegate;
Gst.RtspServer.RTSPSendListFunc managed;
public RTSPSendListFuncWrapper (Gst.RtspServer.RTSPSendListFunc managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new RTSPSendListFuncNative (NativeCallback);
}
public static Gst.RtspServer.RTSPSendListFunc GetManagedDelegate (RTSPSendListFuncNative native)
{
if (native == null)
return null;
RTSPSendListFuncWrapper wrapper = (RTSPSendListFuncWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View file

@ -0,0 +1,96 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServerSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate int RTSPServerClientFilterFuncNative(IntPtr server, IntPtr client, IntPtr user_data);
internal class RTSPServerClientFilterFuncInvoker {
RTSPServerClientFilterFuncNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~RTSPServerClientFilterFuncInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal RTSPServerClientFilterFuncInvoker (RTSPServerClientFilterFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal RTSPServerClientFilterFuncInvoker (RTSPServerClientFilterFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal RTSPServerClientFilterFuncInvoker (RTSPServerClientFilterFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Gst.RtspServer.RTSPServerClientFilterFunc Handler {
get {
return new Gst.RtspServer.RTSPServerClientFilterFunc(InvokeNative);
}
}
Gst.RtspServer.RTSPFilterResult InvokeNative (Gst.RtspServer.RTSPServer server, Gst.RtspServer.RTSPClient client)
{
Gst.RtspServer.RTSPFilterResult __result = (Gst.RtspServer.RTSPFilterResult) native_cb (server == null ? IntPtr.Zero : server.Handle, client == null ? IntPtr.Zero : client.Handle, __data);
return __result;
}
}
internal class RTSPServerClientFilterFuncWrapper {
public int NativeCallback (IntPtr server, IntPtr client, IntPtr user_data)
{
try {
Gst.RtspServer.RTSPFilterResult __ret = managed (GLib.Object.GetObject(server) as Gst.RtspServer.RTSPServer, GLib.Object.GetObject(client) as Gst.RtspServer.RTSPClient);
if (release_on_call)
gch.Free ();
return (int) __ret;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: Above call does not return.
throw e;
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal RTSPServerClientFilterFuncNative NativeDelegate;
Gst.RtspServer.RTSPServerClientFilterFunc managed;
public RTSPServerClientFilterFuncWrapper (Gst.RtspServer.RTSPServerClientFilterFunc managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new RTSPServerClientFilterFuncNative (NativeCallback);
}
public static Gst.RtspServer.RTSPServerClientFilterFunc GetManagedDelegate (RTSPServerClientFilterFuncNative native)
{
if (native == null)
return null;
RTSPServerClientFilterFuncWrapper wrapper = (RTSPServerClientFilterFuncWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View file

@ -0,0 +1,96 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServerSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate int RTSPSessionFilterFuncNative(IntPtr sess, IntPtr media, IntPtr user_data);
internal class RTSPSessionFilterFuncInvoker {
RTSPSessionFilterFuncNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~RTSPSessionFilterFuncInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal RTSPSessionFilterFuncInvoker (RTSPSessionFilterFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal RTSPSessionFilterFuncInvoker (RTSPSessionFilterFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal RTSPSessionFilterFuncInvoker (RTSPSessionFilterFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Gst.RtspServer.RTSPSessionFilterFunc Handler {
get {
return new Gst.RtspServer.RTSPSessionFilterFunc(InvokeNative);
}
}
Gst.RtspServer.RTSPFilterResult InvokeNative (Gst.RtspServer.RTSPSession sess, Gst.RtspServer.RTSPSessionMedia media)
{
Gst.RtspServer.RTSPFilterResult __result = (Gst.RtspServer.RTSPFilterResult) native_cb (sess == null ? IntPtr.Zero : sess.Handle, media == null ? IntPtr.Zero : media.Handle, __data);
return __result;
}
}
internal class RTSPSessionFilterFuncWrapper {
public int NativeCallback (IntPtr sess, IntPtr media, IntPtr user_data)
{
try {
Gst.RtspServer.RTSPFilterResult __ret = managed (GLib.Object.GetObject(sess) as Gst.RtspServer.RTSPSession, GLib.Object.GetObject(media) as Gst.RtspServer.RTSPSessionMedia);
if (release_on_call)
gch.Free ();
return (int) __ret;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: Above call does not return.
throw e;
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal RTSPSessionFilterFuncNative NativeDelegate;
Gst.RtspServer.RTSPSessionFilterFunc managed;
public RTSPSessionFilterFuncWrapper (Gst.RtspServer.RTSPSessionFilterFunc managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new RTSPSessionFilterFuncNative (NativeCallback);
}
public static Gst.RtspServer.RTSPSessionFilterFunc GetManagedDelegate (RTSPSessionFilterFuncNative native)
{
if (native == null)
return null;
RTSPSessionFilterFuncWrapper wrapper = (RTSPSessionFilterFuncWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View file

@ -0,0 +1,96 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServerSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate int RTSPSessionPoolFilterFuncNative(IntPtr pool, IntPtr session, IntPtr user_data);
internal class RTSPSessionPoolFilterFuncInvoker {
RTSPSessionPoolFilterFuncNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~RTSPSessionPoolFilterFuncInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal RTSPSessionPoolFilterFuncInvoker (RTSPSessionPoolFilterFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal RTSPSessionPoolFilterFuncInvoker (RTSPSessionPoolFilterFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal RTSPSessionPoolFilterFuncInvoker (RTSPSessionPoolFilterFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Gst.RtspServer.RTSPSessionPoolFilterFunc Handler {
get {
return new Gst.RtspServer.RTSPSessionPoolFilterFunc(InvokeNative);
}
}
Gst.RtspServer.RTSPFilterResult InvokeNative (Gst.RtspServer.RTSPSessionPool pool, Gst.RtspServer.RTSPSession session)
{
Gst.RtspServer.RTSPFilterResult __result = (Gst.RtspServer.RTSPFilterResult) native_cb (pool == null ? IntPtr.Zero : pool.Handle, session == null ? IntPtr.Zero : session.Handle, __data);
return __result;
}
}
internal class RTSPSessionPoolFilterFuncWrapper {
public int NativeCallback (IntPtr pool, IntPtr session, IntPtr user_data)
{
try {
Gst.RtspServer.RTSPFilterResult __ret = managed (GLib.Object.GetObject(pool) as Gst.RtspServer.RTSPSessionPool, GLib.Object.GetObject(session) as Gst.RtspServer.RTSPSession);
if (release_on_call)
gch.Free ();
return (int) __ret;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: Above call does not return.
throw e;
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal RTSPSessionPoolFilterFuncNative NativeDelegate;
Gst.RtspServer.RTSPSessionPoolFilterFunc managed;
public RTSPSessionPoolFilterFuncWrapper (Gst.RtspServer.RTSPSessionPoolFilterFunc managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new RTSPSessionPoolFilterFuncNative (NativeCallback);
}
public static Gst.RtspServer.RTSPSessionPoolFilterFunc GetManagedDelegate (RTSPSessionPoolFilterFuncNative native)
{
if (native == null)
return null;
RTSPSessionPoolFilterFuncWrapper wrapper = (RTSPSessionPoolFilterFuncWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View file

@ -0,0 +1,95 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServerSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate bool RTSPSessionPoolFuncNative(IntPtr pool, IntPtr user_data);
internal class RTSPSessionPoolFuncInvoker {
RTSPSessionPoolFuncNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~RTSPSessionPoolFuncInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal RTSPSessionPoolFuncInvoker (RTSPSessionPoolFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal RTSPSessionPoolFuncInvoker (RTSPSessionPoolFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal RTSPSessionPoolFuncInvoker (RTSPSessionPoolFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Gst.RtspServer.RTSPSessionPoolFunc Handler {
get {
return new Gst.RtspServer.RTSPSessionPoolFunc(InvokeNative);
}
}
bool InvokeNative (Gst.RtspServer.RTSPSessionPool pool)
{
bool __result = native_cb (pool == null ? IntPtr.Zero : pool.Handle, __data);
return __result;
}
}
internal class RTSPSessionPoolFuncWrapper {
public bool NativeCallback (IntPtr pool, IntPtr user_data)
{
try {
bool __ret = managed (GLib.Object.GetObject(pool) as Gst.RtspServer.RTSPSessionPool);
if (release_on_call)
gch.Free ();
return __ret;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
return false;
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal RTSPSessionPoolFuncNative NativeDelegate;
Gst.RtspServer.RTSPSessionPoolFunc managed;
public RTSPSessionPoolFuncWrapper (Gst.RtspServer.RTSPSessionPoolFunc managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new RTSPSessionPoolFuncNative (NativeCallback);
}
public static Gst.RtspServer.RTSPSessionPoolFunc GetManagedDelegate (RTSPSessionPoolFuncNative native)
{
if (native == null)
return null;
RTSPSessionPoolFuncWrapper wrapper = (RTSPSessionPoolFuncWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View file

@ -0,0 +1,96 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServerSharp {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
internal delegate int RTSPStreamTransportFilterFuncNative(IntPtr stream, IntPtr trans, IntPtr user_data);
internal class RTSPStreamTransportFilterFuncInvoker {
RTSPStreamTransportFilterFuncNative native_cb;
IntPtr __data;
GLib.DestroyNotify __notify;
~RTSPStreamTransportFilterFuncInvoker ()
{
if (__notify == null)
return;
__notify (__data);
}
internal RTSPStreamTransportFilterFuncInvoker (RTSPStreamTransportFilterFuncNative native_cb) : this (native_cb, IntPtr.Zero, null) {}
internal RTSPStreamTransportFilterFuncInvoker (RTSPStreamTransportFilterFuncNative native_cb, IntPtr data) : this (native_cb, data, null) {}
internal RTSPStreamTransportFilterFuncInvoker (RTSPStreamTransportFilterFuncNative native_cb, IntPtr data, GLib.DestroyNotify notify)
{
this.native_cb = native_cb;
__data = data;
__notify = notify;
}
internal Gst.RtspServer.RTSPStreamTransportFilterFunc Handler {
get {
return new Gst.RtspServer.RTSPStreamTransportFilterFunc(InvokeNative);
}
}
Gst.RtspServer.RTSPFilterResult InvokeNative (Gst.RtspServer.RTSPStream stream, Gst.RtspServer.RTSPStreamTransport trans)
{
Gst.RtspServer.RTSPFilterResult __result = (Gst.RtspServer.RTSPFilterResult) native_cb (stream == null ? IntPtr.Zero : stream.Handle, trans == null ? IntPtr.Zero : trans.Handle, __data);
return __result;
}
}
internal class RTSPStreamTransportFilterFuncWrapper {
public int NativeCallback (IntPtr stream, IntPtr trans, IntPtr user_data)
{
try {
Gst.RtspServer.RTSPFilterResult __ret = managed (GLib.Object.GetObject(stream) as Gst.RtspServer.RTSPStream, GLib.Object.GetObject(trans) as Gst.RtspServer.RTSPStreamTransport);
if (release_on_call)
gch.Free ();
return (int) __ret;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: Above call does not return.
throw e;
}
}
bool release_on_call = false;
GCHandle gch;
public void PersistUntilCalled ()
{
release_on_call = true;
gch = GCHandle.Alloc (this);
}
internal RTSPStreamTransportFilterFuncNative NativeDelegate;
Gst.RtspServer.RTSPStreamTransportFilterFunc managed;
public RTSPStreamTransportFilterFuncWrapper (Gst.RtspServer.RTSPStreamTransportFilterFunc managed)
{
this.managed = managed;
if (managed != null)
NativeDelegate = new RTSPStreamTransportFilterFuncNative (NativeCallback);
}
public static Gst.RtspServer.RTSPStreamTransportFilterFunc GetManagedDelegate (RTSPStreamTransportFilterFuncNative native)
{
if (native == null)
return null;
RTSPStreamTransportFilterFuncWrapper wrapper = (RTSPStreamTransportFilterFuncWrapper) native.Target;
if (wrapper == null)
return null;
return wrapper.managed;
}
}
#endregion
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void HandleMessageHandler(object o, HandleMessageArgs args);
public class HandleMessageArgs : GLib.SignalArgs {
public Gst.Message Message{
get {
return (Gst.Message) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void HandleResponseHandler(object o, HandleResponseArgs args);
public class HandleResponseArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPContext Ctx{
get {
return (Gst.RtspServer.RTSPContext) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void MediaConfigureHandler(object o, MediaConfigureArgs args);
public class MediaConfigureArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPMedia Object{
get {
return (Gst.RtspServer.RTSPMedia) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void MediaConstructedHandler(object o, MediaConstructedArgs args);
public class MediaConstructedArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPMedia Object{
get {
return (Gst.RtspServer.RTSPMedia) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void NewRtcpEncoderHandler(object o, NewRtcpEncoderArgs args);
public class NewRtcpEncoderArgs : GLib.SignalArgs {
public Gst.Element Object{
get {
return (Gst.Element) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void NewRtpEncoderHandler(object o, NewRtpEncoderArgs args);
public class NewRtpEncoderArgs : GLib.SignalArgs {
public Gst.Element Object{
get {
return (Gst.Element) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void NewRtpRtcpDecoderHandler(object o, NewRtpRtcpDecoderArgs args);
public class NewRtpRtcpDecoderArgs : GLib.SignalArgs {
public Gst.Element Object{
get {
return (Gst.Element) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void NewSessionHandler(object o, NewSessionArgs args);
public class NewSessionArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPSession Object{
get {
return (Gst.RtspServer.RTSPSession) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void NewStateHandler(object o, NewStateArgs args);
public class NewStateArgs : GLib.SignalArgs {
public int Object{
get {
return (int) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void NewStreamHandler(object o, NewStreamArgs args);
public class NewStreamArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPStream Object{
get {
return (Gst.RtspServer.RTSPStream) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void OptionsRequestHandler(object o, OptionsRequestArgs args);
public class OptionsRequestArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPContext Ctx{
get {
return (Gst.RtspServer.RTSPContext) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void PauseRequestHandler(object o, PauseRequestArgs args);
public class PauseRequestArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPContext Ctx{
get {
return (Gst.RtspServer.RTSPContext) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void PlayRequestHandler(object o, PlayRequestArgs args);
public class PlayRequestArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPContext Ctx{
get {
return (Gst.RtspServer.RTSPContext) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void PreAnnounceRequestHandler(object o, PreAnnounceRequestArgs args);
public class PreAnnounceRequestArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPContext Ctx{
get {
return (Gst.RtspServer.RTSPContext) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void PreDescribeRequestHandler(object o, PreDescribeRequestArgs args);
public class PreDescribeRequestArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPContext Ctx{
get {
return (Gst.RtspServer.RTSPContext) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void PreGetParameterRequestHandler(object o, PreGetParameterRequestArgs args);
public class PreGetParameterRequestArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPContext Ctx{
get {
return (Gst.RtspServer.RTSPContext) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void PreOptionsRequestHandler(object o, PreOptionsRequestArgs args);
public class PreOptionsRequestArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPContext Ctx{
get {
return (Gst.RtspServer.RTSPContext) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void PrePauseRequestHandler(object o, PrePauseRequestArgs args);
public class PrePauseRequestArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPContext Ctx{
get {
return (Gst.RtspServer.RTSPContext) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void PrePlayRequestHandler(object o, PrePlayRequestArgs args);
public class PrePlayRequestArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPContext Ctx{
get {
return (Gst.RtspServer.RTSPContext) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void PreRecordRequestHandler(object o, PreRecordRequestArgs args);
public class PreRecordRequestArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPContext Ctx{
get {
return (Gst.RtspServer.RTSPContext) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void PreSetParameterRequestHandler(object o, PreSetParameterRequestArgs args);
public class PreSetParameterRequestArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPContext Ctx{
get {
return (Gst.RtspServer.RTSPContext) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void PreSetupRequestHandler(object o, PreSetupRequestArgs args);
public class PreSetupRequestArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPContext Ctx{
get {
return (Gst.RtspServer.RTSPContext) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void PreTeardownRequestHandler(object o, PreTeardownRequestArgs args);
public class PreTeardownRequestArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPContext Ctx{
get {
return (Gst.RtspServer.RTSPContext) Args [0];
}
}
}
}

View file

@ -0,0 +1,78 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct RTSPAddress : IEquatable<RTSPAddress> {
private IntPtr _pool;
public Gst.RtspServer.RTSPAddressPool Pool {
get {
return GLib.Object.GetObject(_pool) as Gst.RtspServer.RTSPAddressPool;
}
set {
_pool = value == null ? IntPtr.Zero : value.Handle;
}
}
public string Address;
public ushort Port;
public int NPorts;
public byte Ttl;
private IntPtr _priv;
public static Gst.RtspServer.RTSPAddress Zero = new Gst.RtspServer.RTSPAddress ();
public static Gst.RtspServer.RTSPAddress New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Gst.RtspServer.RTSPAddress.Zero;
return (Gst.RtspServer.RTSPAddress) Marshal.PtrToStructure (raw, typeof (Gst.RtspServer.RTSPAddress));
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_address_get_type();
public static GLib.GType GType {
get {
IntPtr raw_ret = gst_rtsp_address_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
public bool Equals (RTSPAddress other)
{
return true && Pool.Equals (other.Pool) && Address.Equals (other.Address) && Port.Equals (other.Port) && NPorts.Equals (other.NPorts) && Ttl.Equals (other.Ttl) && _priv.Equals (other._priv);
}
public override bool Equals (object other)
{
return other is RTSPAddress && Equals ((RTSPAddress) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ Pool.GetHashCode () ^ Address.GetHashCode () ^ Port.GetHashCode () ^ NPorts.GetHashCode () ^ Ttl.GetHashCode () ^ _priv.GetHashCode ();
}
public static explicit operator GLib.Value (Gst.RtspServer.RTSPAddress boxed)
{
GLib.Value val = GLib.Value.Empty;
val.Init (Gst.RtspServer.RTSPAddress.GType);
val.Val = boxed;
return val;
}
public static explicit operator Gst.RtspServer.RTSPAddress (GLib.Value val)
{
return (Gst.RtspServer.RTSPAddress) val.Val;
}
#endregion
}
}

View file

@ -0,0 +1,21 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[Flags]
public enum RTSPAddressFlags : uint {
None = 0,
Ipv4 = 1,
Ipv6 = 2,
EvenPort = 4,
Multicast = 8,
Unicast = 16,
}
#endregion
}

View file

@ -0,0 +1,163 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class RTSPAddressPool : GLib.Object {
public RTSPAddressPool (IntPtr raw) : base(raw) {}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_address_pool_new();
public RTSPAddressPool () : base (IntPtr.Zero)
{
if (GetType () != typeof (RTSPAddressPool)) {
CreateNativeObject (new string [0], new GLib.Value[0]);
return;
}
Raw = gst_rtsp_address_pool_new();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("_gst_reserved"
, GLib.Object.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, null
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_address_pool_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gst_rtsp_address_pool_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_address_pool_acquire_address(IntPtr raw, int flags, int n_ports);
public Gst.RtspServer.RTSPAddress AcquireAddress(Gst.RtspServer.RTSPAddressFlags flags, int n_ports) {
IntPtr raw_ret = gst_rtsp_address_pool_acquire_address(Handle, (int) flags, n_ports);
Gst.RtspServer.RTSPAddress ret = Gst.RtspServer.RTSPAddress.New (raw_ret);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_address_pool_add_range(IntPtr raw, IntPtr min_address, IntPtr max_address, ushort min_port, ushort max_port, byte ttl);
public bool AddRange(string min_address, string max_address, ushort min_port, ushort max_port, byte ttl) {
IntPtr native_min_address = GLib.Marshaller.StringToPtrGStrdup (min_address);
IntPtr native_max_address = GLib.Marshaller.StringToPtrGStrdup (max_address);
bool raw_ret = gst_rtsp_address_pool_add_range(Handle, native_min_address, native_max_address, min_port, max_port, ttl);
bool ret = raw_ret;
GLib.Marshaller.Free (native_min_address);
GLib.Marshaller.Free (native_max_address);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_address_pool_clear(IntPtr raw);
public void Clear() {
gst_rtsp_address_pool_clear(Handle);
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_address_pool_dump(IntPtr raw);
public void Dump() {
gst_rtsp_address_pool_dump(Handle);
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_address_pool_has_unicast_addresses(IntPtr raw);
public bool HasUnicastAddresses {
get {
bool raw_ret = gst_rtsp_address_pool_has_unicast_addresses(Handle);
bool ret = raw_ret;
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_address_pool_reserve_address(IntPtr raw, IntPtr ip_address, uint port, uint n_ports, uint ttl, IntPtr address);
public Gst.RtspServer.RTSPAddressPoolResult ReserveAddress(string ip_address, uint port, uint n_ports, uint ttl, out Gst.RtspServer.RTSPAddress address) {
IntPtr native_ip_address = GLib.Marshaller.StringToPtrGStrdup (ip_address);
IntPtr native_address = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gst.RtspServer.RTSPAddress)));
int raw_ret = gst_rtsp_address_pool_reserve_address(Handle, native_ip_address, port, n_ports, ttl, native_address);
Gst.RtspServer.RTSPAddressPoolResult ret = (Gst.RtspServer.RTSPAddressPoolResult) raw_ret;
GLib.Marshaller.Free (native_ip_address);
address = Gst.RtspServer.RTSPAddress.New (native_address);
Marshal.FreeHGlobal (native_address);
return ret;
}
static RTSPAddressPool ()
{
GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("priv"
, GLib.Object.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
, null
, "_gst_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, "priv"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View file

@ -0,0 +1,19 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
public enum RTSPAddressPoolResult {
Elast = -4,
Erange = -3,
Ereserved = -2,
Einval = -1,
Ok = 0,
}
#endregion
}

View file

@ -0,0 +1,556 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class RTSPAuth : GLib.Object {
public RTSPAuth (IntPtr raw) : base(raw) {}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_auth_new();
public RTSPAuth () : base (IntPtr.Zero)
{
if (GetType () != typeof (RTSPAuth)) {
CreateNativeObject (new string [0], new GLib.Value[0]);
return;
}
Raw = gst_rtsp_auth_new();
}
[GLib.Signal("accept-certificate")]
public event Gst.RtspServer.AcceptCertificateHandler AcceptCertificate {
add {
this.AddSignalHandler ("accept-certificate", value, typeof (Gst.RtspServer.AcceptCertificateArgs));
}
remove {
this.RemoveSignalHandler ("accept-certificate", value);
}
}
static AuthenticateNativeDelegate Authenticate_cb_delegate;
static AuthenticateNativeDelegate AuthenticateVMCallback {
get {
if (Authenticate_cb_delegate == null)
Authenticate_cb_delegate = new AuthenticateNativeDelegate (Authenticate_cb);
return Authenticate_cb_delegate;
}
}
static void OverrideAuthenticate (GLib.GType gtype)
{
OverrideAuthenticate (gtype, AuthenticateVMCallback);
}
static void OverrideAuthenticate (GLib.GType gtype, AuthenticateNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("authenticate"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool AuthenticateNativeDelegate (IntPtr inst, IntPtr ctx);
static bool Authenticate_cb (IntPtr inst, IntPtr ctx)
{
try {
RTSPAuth __obj = GLib.Object.GetObject (inst, false) as RTSPAuth;
bool __result;
__result = __obj.OnAuthenticate (Gst.RtspServer.RTSPContext.New (ctx));
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gst.RtspServer.RTSPAuth), ConnectionMethod="OverrideAuthenticate")]
protected virtual bool OnAuthenticate (Gst.RtspServer.RTSPContext ctx)
{
return InternalAuthenticate (ctx);
}
private bool InternalAuthenticate (Gst.RtspServer.RTSPContext ctx)
{
AuthenticateNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("authenticate"));
unmanaged = (AuthenticateNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(AuthenticateNativeDelegate));
}
if (unmanaged == null) return false;
IntPtr native_ctx = GLib.Marshaller.StructureToPtrAlloc (ctx);
bool __result = unmanaged (this.Handle, native_ctx);
Marshal.FreeHGlobal (native_ctx);
return __result;
}
static CheckNativeDelegate Check_cb_delegate;
static CheckNativeDelegate CheckVMCallback {
get {
if (Check_cb_delegate == null)
Check_cb_delegate = new CheckNativeDelegate (Check_cb);
return Check_cb_delegate;
}
}
static void OverrideCheck (GLib.GType gtype)
{
OverrideCheck (gtype, CheckVMCallback);
}
static void OverrideCheck (GLib.GType gtype, CheckNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("check"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool CheckNativeDelegate (IntPtr inst, IntPtr ctx, IntPtr check);
static bool Check_cb (IntPtr inst, IntPtr ctx, IntPtr check)
{
try {
RTSPAuth __obj = GLib.Object.GetObject (inst, false) as RTSPAuth;
bool __result;
__result = __obj.OnCheck (Gst.RtspServer.RTSPContext.New (ctx), GLib.Marshaller.Utf8PtrToString (check));
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gst.RtspServer.RTSPAuth), ConnectionMethod="OverrideCheck")]
protected virtual bool OnCheck (Gst.RtspServer.RTSPContext ctx, string check)
{
return InternalCheck (ctx, check);
}
private bool InternalCheck (Gst.RtspServer.RTSPContext ctx, string check)
{
CheckNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("check"));
unmanaged = (CheckNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(CheckNativeDelegate));
}
if (unmanaged == null) return false;
IntPtr native_ctx = GLib.Marshaller.StructureToPtrAlloc (ctx);
IntPtr native_check = GLib.Marshaller.StringToPtrGStrdup (check);
bool __result = unmanaged (this.Handle, native_ctx, native_check);
Marshal.FreeHGlobal (native_ctx);
GLib.Marshaller.Free (native_check);
return __result;
}
static GenerateAuthenticateHeaderNativeDelegate GenerateAuthenticateHeader_cb_delegate;
static GenerateAuthenticateHeaderNativeDelegate GenerateAuthenticateHeaderVMCallback {
get {
if (GenerateAuthenticateHeader_cb_delegate == null)
GenerateAuthenticateHeader_cb_delegate = new GenerateAuthenticateHeaderNativeDelegate (GenerateAuthenticateHeader_cb);
return GenerateAuthenticateHeader_cb_delegate;
}
}
static void OverrideGenerateAuthenticateHeader (GLib.GType gtype)
{
OverrideGenerateAuthenticateHeader (gtype, GenerateAuthenticateHeaderVMCallback);
}
static void OverrideGenerateAuthenticateHeader (GLib.GType gtype, GenerateAuthenticateHeaderNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("generate_authenticate_header"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void GenerateAuthenticateHeaderNativeDelegate (IntPtr inst, IntPtr ctx);
static void GenerateAuthenticateHeader_cb (IntPtr inst, IntPtr ctx)
{
try {
RTSPAuth __obj = GLib.Object.GetObject (inst, false) as RTSPAuth;
__obj.OnGenerateAuthenticateHeader (Gst.RtspServer.RTSPContext.New (ctx));
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gst.RtspServer.RTSPAuth), ConnectionMethod="OverrideGenerateAuthenticateHeader")]
protected virtual void OnGenerateAuthenticateHeader (Gst.RtspServer.RTSPContext ctx)
{
InternalGenerateAuthenticateHeader (ctx);
}
private void InternalGenerateAuthenticateHeader (Gst.RtspServer.RTSPContext ctx)
{
GenerateAuthenticateHeaderNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("generate_authenticate_header"));
unmanaged = (GenerateAuthenticateHeaderNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GenerateAuthenticateHeaderNativeDelegate));
}
if (unmanaged == null) return;
IntPtr native_ctx = GLib.Marshaller.StructureToPtrAlloc (ctx);
unmanaged (this.Handle, native_ctx);
Marshal.FreeHGlobal (native_ctx);
}
static AcceptCertificateNativeDelegate AcceptCertificate_cb_delegate;
static AcceptCertificateNativeDelegate AcceptCertificateVMCallback {
get {
if (AcceptCertificate_cb_delegate == null)
AcceptCertificate_cb_delegate = new AcceptCertificateNativeDelegate (AcceptCertificate_cb);
return AcceptCertificate_cb_delegate;
}
}
static void OverrideAcceptCertificate (GLib.GType gtype)
{
OverrideAcceptCertificate (gtype, AcceptCertificateVMCallback);
}
static void OverrideAcceptCertificate (GLib.GType gtype, AcceptCertificateNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("accept_certificate"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool AcceptCertificateNativeDelegate (IntPtr inst, IntPtr connection, IntPtr peer_cert, int errors);
static bool AcceptCertificate_cb (IntPtr inst, IntPtr connection, IntPtr peer_cert, int errors)
{
try {
RTSPAuth __obj = GLib.Object.GetObject (inst, false) as RTSPAuth;
bool __result;
__result = __obj.OnAcceptCertificate (GLib.Object.GetObject(connection) as GLib.TlsConnection, GLib.Object.GetObject(peer_cert) as GLib.TlsCertificate, (GLib.TlsCertificateFlags) errors);
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gst.RtspServer.RTSPAuth), ConnectionMethod="OverrideAcceptCertificate")]
protected virtual bool OnAcceptCertificate (GLib.TlsConnection connection, GLib.TlsCertificate peer_cert, GLib.TlsCertificateFlags errors)
{
return InternalAcceptCertificate (connection, peer_cert, errors);
}
private bool InternalAcceptCertificate (GLib.TlsConnection connection, GLib.TlsCertificate peer_cert, GLib.TlsCertificateFlags errors)
{
AcceptCertificateNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("accept_certificate"));
unmanaged = (AcceptCertificateNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(AcceptCertificateNativeDelegate));
}
if (unmanaged == null) return false;
bool __result = unmanaged (this.Handle, connection == null ? IntPtr.Zero : connection.Handle, peer_cert == null ? IntPtr.Zero : peer_cert.Handle, (int) errors);
return __result;
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("authenticate"
, GLib.Object.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // authenticate
, null
, "check"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("check"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // check
, "authenticate"
, "generate_authenticate_header"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("generate_authenticate_header"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // generate_authenticate_header
, "check"
, "accept_certificate"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("accept_certificate"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // accept_certificate
, "generate_authenticate_header"
, "_gst_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 3 // _gst_reserved
, "accept_certificate"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_auth_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gst_rtsp_auth_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_auth_check(IntPtr check);
public static bool Check(string check) {
IntPtr native_check = GLib.Marshaller.StringToPtrGStrdup (check);
bool raw_ret = gst_rtsp_auth_check(native_check);
bool ret = raw_ret;
GLib.Marshaller.Free (native_check);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_auth_make_basic(IntPtr user, IntPtr pass);
public static string MakeBasic(string user, string pass) {
IntPtr native_user = GLib.Marshaller.StringToPtrGStrdup (user);
IntPtr native_pass = GLib.Marshaller.StringToPtrGStrdup (pass);
IntPtr raw_ret = gst_rtsp_auth_make_basic(native_user, native_pass);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
GLib.Marshaller.Free (native_user);
GLib.Marshaller.Free (native_pass);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_auth_add_basic(IntPtr raw, IntPtr basic, IntPtr token);
public void AddBasic(string basic, Gst.RtspServer.RTSPToken token) {
IntPtr native_basic = GLib.Marshaller.StringToPtrGStrdup (basic);
gst_rtsp_auth_add_basic(Handle, native_basic, token == null ? IntPtr.Zero : token.Handle);
GLib.Marshaller.Free (native_basic);
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_auth_add_digest(IntPtr raw, IntPtr user, IntPtr pass, IntPtr token);
public void AddDigest(string user, string pass, Gst.RtspServer.RTSPToken token) {
IntPtr native_user = GLib.Marshaller.StringToPtrGStrdup (user);
IntPtr native_pass = GLib.Marshaller.StringToPtrGStrdup (pass);
gst_rtsp_auth_add_digest(Handle, native_user, native_pass, token == null ? IntPtr.Zero : token.Handle);
GLib.Marshaller.Free (native_user);
GLib.Marshaller.Free (native_pass);
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_auth_get_default_token(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_auth_set_default_token(IntPtr raw, IntPtr token);
public Gst.RtspServer.RTSPToken DefaultToken {
get {
IntPtr raw_ret = gst_rtsp_auth_get_default_token(Handle);
Gst.RtspServer.RTSPToken ret = raw_ret == IntPtr.Zero ? null : (Gst.RtspServer.RTSPToken) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.RtspServer.RTSPToken), true);
return ret;
}
set {
gst_rtsp_auth_set_default_token(Handle, value == null ? IntPtr.Zero : value.Handle);
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_auth_get_realm(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_auth_set_realm(IntPtr raw, IntPtr realm);
public string Realm {
get {
IntPtr raw_ret = gst_rtsp_auth_get_realm(Handle);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
return ret;
}
set {
IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
gst_rtsp_auth_set_realm(Handle, native_value);
GLib.Marshaller.Free (native_value);
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_auth_get_supported_methods(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_auth_set_supported_methods(IntPtr raw, int methods);
public Gst.Rtsp.RTSPAuthMethod SupportedMethods {
get {
int raw_ret = gst_rtsp_auth_get_supported_methods(Handle);
Gst.Rtsp.RTSPAuthMethod ret = (Gst.Rtsp.RTSPAuthMethod) raw_ret;
return ret;
}
set {
gst_rtsp_auth_set_supported_methods(Handle, (int) value);
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_auth_get_tls_authentication_mode(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_auth_set_tls_authentication_mode(IntPtr raw, int mode);
public GLib.TlsAuthenticationMode TlsAuthenticationMode {
get {
int raw_ret = gst_rtsp_auth_get_tls_authentication_mode(Handle);
GLib.TlsAuthenticationMode ret = (GLib.TlsAuthenticationMode) raw_ret;
return ret;
}
set {
gst_rtsp_auth_set_tls_authentication_mode(Handle, (int) value);
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_auth_get_tls_certificate(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_auth_set_tls_certificate(IntPtr raw, IntPtr cert);
public GLib.TlsCertificate TlsCertificate {
get {
IntPtr raw_ret = gst_rtsp_auth_get_tls_certificate(Handle);
GLib.TlsCertificate ret = GLib.Object.GetObject(raw_ret, true) as GLib.TlsCertificate;
return ret;
}
set {
gst_rtsp_auth_set_tls_certificate(Handle, value == null ? IntPtr.Zero : value.Handle);
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_auth_get_tls_database(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_auth_set_tls_database(IntPtr raw, IntPtr database);
public GLib.TlsDatabase TlsDatabase {
get {
IntPtr raw_ret = gst_rtsp_auth_get_tls_database(Handle);
GLib.TlsDatabase ret = GLib.Object.GetObject(raw_ret, true) as GLib.TlsDatabase;
return ret;
}
set {
gst_rtsp_auth_set_tls_database(Handle, value == null ? IntPtr.Zero : value.Handle);
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_auth_parse_htdigest(IntPtr raw, IntPtr path, IntPtr token);
public bool ParseHtdigest(string path, Gst.RtspServer.RTSPToken token) {
IntPtr native_path = GLib.Marshaller.StringToFilenamePtr (path);
bool raw_ret = gst_rtsp_auth_parse_htdigest(Handle, native_path, token == null ? IntPtr.Zero : token.Handle);
bool ret = raw_ret;
GLib.Marshaller.Free (native_path);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_auth_remove_basic(IntPtr raw, IntPtr basic);
public void RemoveBasic(string basic) {
IntPtr native_basic = GLib.Marshaller.StringToPtrGStrdup (basic);
gst_rtsp_auth_remove_basic(Handle, native_basic);
GLib.Marshaller.Free (native_basic);
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_auth_remove_digest(IntPtr raw, IntPtr user);
public void RemoveDigest(string user) {
IntPtr native_user = GLib.Marshaller.StringToPtrGStrdup (user);
gst_rtsp_auth_remove_digest(Handle, native_user);
GLib.Marshaller.Free (native_user);
}
static RTSPAuth ()
{
GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("priv"
, GLib.Object.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
, null
, "_gst_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, "priv"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate bool RTSPClientSendFunc(Gst.RtspServer.RTSPClient client, Gst.Rtsp.RTSPMessage message, bool close);
}

View file

@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate bool RTSPClientSendMessagesFunc(Gst.RtspServer.RTSPClient client, Gst.Rtsp.RTSPMessage messages, uint n_messages, bool close);
}

View file

@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate Gst.RtspServer.RTSPFilterResult RTSPClientSessionFilterFunc(Gst.RtspServer.RTSPClient client, Gst.RtspServer.RTSPSession sess);
}

View file

@ -0,0 +1,188 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct RTSPContext : IEquatable<RTSPContext> {
private IntPtr _server;
public Gst.RtspServer.RTSPServer Server {
get {
return GLib.Object.GetObject(_server) as Gst.RtspServer.RTSPServer;
}
set {
_server = value == null ? IntPtr.Zero : value.Handle;
}
}
private IntPtr _conn;
public Gst.Rtsp.RTSPConnection Conn {
get {
return _conn == IntPtr.Zero ? null : (Gst.Rtsp.RTSPConnection) GLib.Opaque.GetOpaque (_conn, typeof (Gst.Rtsp.RTSPConnection), false);
}
set {
_conn = value == null ? IntPtr.Zero : value.Handle;
}
}
private IntPtr _client;
public Gst.RtspServer.RTSPClient Client {
get {
return GLib.Object.GetObject(_client) as Gst.RtspServer.RTSPClient;
}
set {
_client = value == null ? IntPtr.Zero : value.Handle;
}
}
private IntPtr _request;
public Gst.Rtsp.RTSPMessage request {
get { return Gst.Rtsp.RTSPMessage.New (_request); }
}
private IntPtr _uri;
public Gst.Rtsp.RTSPUrl uri {
get { return Gst.Rtsp.RTSPUrl.New (_uri); }
}
public Gst.Rtsp.RTSPMethod Method;
private IntPtr _auth;
public Gst.RtspServer.RTSPAuth Auth {
get {
return GLib.Object.GetObject(_auth) as Gst.RtspServer.RTSPAuth;
}
set {
_auth = value == null ? IntPtr.Zero : value.Handle;
}
}
private IntPtr _token;
public Gst.RtspServer.RTSPToken Token {
get {
return _token == IntPtr.Zero ? null : (Gst.RtspServer.RTSPToken) GLib.Opaque.GetOpaque (_token, typeof (Gst.RtspServer.RTSPToken), false);
}
set {
_token = value == null ? IntPtr.Zero : value.Handle;
}
}
private IntPtr _session;
public Gst.RtspServer.RTSPSession Session {
get {
return GLib.Object.GetObject(_session) as Gst.RtspServer.RTSPSession;
}
set {
_session = value == null ? IntPtr.Zero : value.Handle;
}
}
private IntPtr _sessmedia;
public Gst.RtspServer.RTSPSessionMedia Sessmedia {
get {
return GLib.Object.GetObject(_sessmedia) as Gst.RtspServer.RTSPSessionMedia;
}
set {
_sessmedia = value == null ? IntPtr.Zero : value.Handle;
}
}
private IntPtr _factory;
public Gst.RtspServer.RTSPMediaFactory Factory {
get {
return GLib.Object.GetObject(_factory) as Gst.RtspServer.RTSPMediaFactory;
}
set {
_factory = value == null ? IntPtr.Zero : value.Handle;
}
}
private IntPtr _media;
public Gst.RtspServer.RTSPMedia Media {
get {
return GLib.Object.GetObject(_media) as Gst.RtspServer.RTSPMedia;
}
set {
_media = value == null ? IntPtr.Zero : value.Handle;
}
}
private IntPtr _stream;
public Gst.RtspServer.RTSPStream Stream {
get {
return GLib.Object.GetObject(_stream) as Gst.RtspServer.RTSPStream;
}
set {
_stream = value == null ? IntPtr.Zero : value.Handle;
}
}
private IntPtr _response;
public Gst.Rtsp.RTSPMessage response {
get { return Gst.Rtsp.RTSPMessage.New (_response); }
}
private IntPtr _trans;
public Gst.RtspServer.RTSPStreamTransport Trans {
get {
return GLib.Object.GetObject(_trans) as Gst.RtspServer.RTSPStreamTransport;
}
set {
_trans = value == null ? IntPtr.Zero : value.Handle;
}
}
[MarshalAs (UnmanagedType.ByValArray, SizeConst=3)]
private IntPtr[] _gstGstReserved;
public static Gst.RtspServer.RTSPContext Zero = new Gst.RtspServer.RTSPContext ();
public static Gst.RtspServer.RTSPContext New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Gst.RtspServer.RTSPContext.Zero;
return (Gst.RtspServer.RTSPContext) Marshal.PtrToStructure (raw, typeof (Gst.RtspServer.RTSPContext));
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_context_pop_current(IntPtr raw);
public void PopCurrent() {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
gst_rtsp_context_pop_current(this_as_native);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_context_push_current(IntPtr raw);
public void PushCurrent() {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
gst_rtsp_context_push_current(this_as_native);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
}
static void ReadNative (IntPtr native, ref Gst.RtspServer.RTSPContext target)
{
target = New (native);
}
public bool Equals (RTSPContext other)
{
return true && Server.Equals (other.Server) && Conn.Equals (other.Conn) && Client.Equals (other.Client) && request.Equals (other.request) && uri.Equals (other.uri) && Method.Equals (other.Method) && Auth.Equals (other.Auth) && Token.Equals (other.Token) && Session.Equals (other.Session) && Sessmedia.Equals (other.Sessmedia) && Factory.Equals (other.Factory) && Media.Equals (other.Media) && Stream.Equals (other.Stream) && response.Equals (other.response) && Trans.Equals (other.Trans);
}
public override bool Equals (object other)
{
return other is RTSPContext && Equals ((RTSPContext) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ Server.GetHashCode () ^ Conn.GetHashCode () ^ Client.GetHashCode () ^ request.GetHashCode () ^ uri.GetHashCode () ^ Method.GetHashCode () ^ Auth.GetHashCode () ^ Token.GetHashCode () ^ Session.GetHashCode () ^ Sessmedia.GetHashCode () ^ Factory.GetHashCode () ^ Media.GetHashCode () ^ Stream.GetHashCode () ^ response.GetHashCode () ^ Trans.GetHashCode ();
}
private static GLib.GType GType {
get { return GLib.GType.Pointer; }
}
#endregion
}
}

View file

@ -0,0 +1,17 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
public enum RTSPFilterResult {
Remove = 0,
Keep = 1,
Ref = 2,
}
#endregion
}

View file

@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void RTSPKeepAliveFunc();
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,137 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class RTSPMediaFactoryURI : Gst.RtspServer.RTSPMediaFactory {
public RTSPMediaFactoryURI (IntPtr raw) : base(raw) {}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_media_factory_uri_new();
public RTSPMediaFactoryURI () : base (IntPtr.Zero)
{
if (GetType () != typeof (RTSPMediaFactoryURI)) {
CreateNativeObject (new string [0], new GLib.Value[0]);
return;
}
Raw = gst_rtsp_media_factory_uri_new();
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_media_factory_uri_get_uri(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_media_factory_uri_set_uri(IntPtr raw, IntPtr uri);
[GLib.Property ("uri")]
public string Uri {
get {
IntPtr raw_ret = gst_rtsp_media_factory_uri_get_uri(Handle);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
return ret;
}
set {
IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
gst_rtsp_media_factory_uri_set_uri(Handle, native_value);
GLib.Marshaller.Free (native_value);
}
}
[GLib.Property ("use-gstpay")]
public bool UseGstpay {
get {
GLib.Value val = GetProperty ("use-gstpay");
bool ret = (bool) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("use-gstpay", val);
val.Dispose ();
}
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("_gst_reserved"
, Gst.RtspServer.RTSPMediaFactory.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, null
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_media_factory_uri_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gst_rtsp_media_factory_uri_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
static RTSPMediaFactoryURI ()
{
GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("priv"
, Gst.RtspServer.RTSPMediaFactory.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
, null
, "_gst_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, "priv"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View file

@ -0,0 +1,20 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
public enum RTSPMediaStatus {
Unprepared = 0,
Unpreparing = 1,
Preparing = 2,
Prepared = 3,
Suspended = 4,
Error = 5,
}
#endregion
}

View file

@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void RTSPMessageSentFunc();
}

View file

@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void RTSPMessageSentFuncFull(Gst.RtspServer.RTSPStreamTransport trans);
}

View file

@ -0,0 +1,210 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class RTSPMountPoints : GLib.Object {
public RTSPMountPoints (IntPtr raw) : base(raw) {}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_mount_points_new();
public RTSPMountPoints () : base (IntPtr.Zero)
{
if (GetType () != typeof (RTSPMountPoints)) {
CreateNativeObject (new string [0], new GLib.Value[0]);
return;
}
Raw = gst_rtsp_mount_points_new();
}
static MakePathNativeDelegate MakePath_cb_delegate;
static MakePathNativeDelegate MakePathVMCallback {
get {
if (MakePath_cb_delegate == null)
MakePath_cb_delegate = new MakePathNativeDelegate (MakePath_cb);
return MakePath_cb_delegate;
}
}
static void OverrideMakePath (GLib.GType gtype)
{
OverrideMakePath (gtype, MakePathVMCallback);
}
static void OverrideMakePath (GLib.GType gtype, MakePathNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("make_path"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr MakePathNativeDelegate (IntPtr inst, IntPtr url);
static IntPtr MakePath_cb (IntPtr inst, IntPtr url)
{
try {
RTSPMountPoints __obj = GLib.Object.GetObject (inst, false) as RTSPMountPoints;
string __result;
__result = __obj.OnMakePath (Gst.Rtsp.RTSPUrl.New (url));
return GLib.Marshaller.StringToPtrGStrdup(__result);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gst.RtspServer.RTSPMountPoints), ConnectionMethod="OverrideMakePath")]
protected virtual string OnMakePath (Gst.Rtsp.RTSPUrl url)
{
return InternalMakePath (url);
}
private string InternalMakePath (Gst.Rtsp.RTSPUrl url)
{
MakePathNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("make_path"));
unmanaged = (MakePathNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(MakePathNativeDelegate));
}
if (unmanaged == null) return null;
IntPtr native_url = GLib.Marshaller.StructureToPtrAlloc (url);
IntPtr __result = unmanaged (this.Handle, native_url);
Marshal.FreeHGlobal (native_url);
return GLib.Marshaller.PtrToStringGFree(__result);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("make_path"
, GLib.Object.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // make_path
, null
, "_gst_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, "make_path"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_mount_points_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gst_rtsp_mount_points_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_mount_points_add_factory(IntPtr raw, IntPtr path, IntPtr factory);
public void AddFactory(string path, Gst.RtspServer.RTSPMediaFactory factory) {
IntPtr native_path = GLib.Marshaller.StringToPtrGStrdup (path);
gst_rtsp_mount_points_add_factory(Handle, native_path, factory == null ? IntPtr.Zero : factory.OwnedHandle);
GLib.Marshaller.Free (native_path);
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_mount_points_make_path(IntPtr raw, IntPtr url);
public string MakePath(Gst.Rtsp.RTSPUrl url) {
IntPtr native_url = GLib.Marshaller.StructureToPtrAlloc (url);
IntPtr raw_ret = gst_rtsp_mount_points_make_path(Handle, native_url);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
Marshal.FreeHGlobal (native_url);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_mount_points_match(IntPtr raw, IntPtr path, out int matched);
public Gst.RtspServer.RTSPMediaFactory Match(string path, out int matched) {
IntPtr native_path = GLib.Marshaller.StringToPtrGStrdup (path);
IntPtr raw_ret = gst_rtsp_mount_points_match(Handle, native_path, out matched);
Gst.RtspServer.RTSPMediaFactory ret = GLib.Object.GetObject(raw_ret, true) as Gst.RtspServer.RTSPMediaFactory;
GLib.Marshaller.Free (native_path);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_mount_points_remove_factory(IntPtr raw, IntPtr path);
public void RemoveFactory(string path) {
IntPtr native_path = GLib.Marshaller.StringToPtrGStrdup (path);
gst_rtsp_mount_points_remove_factory(Handle, native_path);
GLib.Marshaller.Free (native_path);
}
static RTSPMountPoints ()
{
GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("priv"
, GLib.Object.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
, null
, "_gst_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, "priv"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View file

@ -0,0 +1,94 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class RTSPOnvifClient : Gst.RtspServer.RTSPClient {
public RTSPOnvifClient (IntPtr raw) : base(raw) {}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_onvif_client_new();
public RTSPOnvifClient () : base (IntPtr.Zero)
{
if (GetType () != typeof (RTSPOnvifClient)) {
CreateNativeObject (new string [0], new GLib.Value[0]);
return;
}
Raw = gst_rtsp_onvif_client_new();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("_gst_reserved"
, Gst.RtspServer.RTSPClient.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 20 // _gst_reserved
, null
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_onvif_client_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gst_rtsp_onvif_client_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
static RTSPOnvifClient ()
{
GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("_gst_reserved"
, Gst.RtspServer.RTSPClient.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, null
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View file

@ -0,0 +1,121 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class RTSPOnvifMedia : Gst.RtspServer.RTSPMedia {
public RTSPOnvifMedia (IntPtr raw) : base(raw) {}
protected RTSPOnvifMedia() : base(IntPtr.Zero)
{
CreateNativeObject (new string [0], new GLib.Value [0]);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("_gst_reserved"
, Gst.RtspServer.RTSPMedia.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 20 // _gst_reserved
, null
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_onvif_media_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gst_rtsp_onvif_media_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_onvif_media_collect_backchannel(IntPtr raw);
public bool CollectBackchannel() {
bool raw_ret = gst_rtsp_onvif_media_collect_backchannel(Handle);
bool ret = raw_ret;
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_rtsp_onvif_media_get_backchannel_bandwidth(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_onvif_media_set_backchannel_bandwidth(IntPtr raw, uint bandwidth);
public uint BackchannelBandwidth {
get {
uint raw_ret = gst_rtsp_onvif_media_get_backchannel_bandwidth(Handle);
uint ret = raw_ret;
return ret;
}
set {
gst_rtsp_onvif_media_set_backchannel_bandwidth(Handle, value);
}
}
static RTSPOnvifMedia ()
{
GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("priv"
, Gst.RtspServer.RTSPMedia.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
, null
, "_gst_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, "priv"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View file

@ -0,0 +1,246 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class RTSPOnvifMediaFactory : Gst.RtspServer.RTSPMediaFactory {
public RTSPOnvifMediaFactory (IntPtr raw) : base(raw) {}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_onvif_media_factory_new();
public RTSPOnvifMediaFactory () : base (IntPtr.Zero)
{
if (GetType () != typeof (RTSPOnvifMediaFactory)) {
CreateNativeObject (new string [0], new GLib.Value[0]);
return;
}
Raw = gst_rtsp_onvif_media_factory_new();
}
static HasBackchannelSupportNativeDelegate HasBackchannelSupport_cb_delegate;
static HasBackchannelSupportNativeDelegate HasBackchannelSupportVMCallback {
get {
if (HasBackchannelSupport_cb_delegate == null)
HasBackchannelSupport_cb_delegate = new HasBackchannelSupportNativeDelegate (HasBackchannelSupport_cb);
return HasBackchannelSupport_cb_delegate;
}
}
static void OverrideHasBackchannelSupport (GLib.GType gtype)
{
OverrideHasBackchannelSupport (gtype, HasBackchannelSupportVMCallback);
}
static void OverrideHasBackchannelSupport (GLib.GType gtype, HasBackchannelSupportNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("has_backchannel_support"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool HasBackchannelSupportNativeDelegate (IntPtr inst);
static bool HasBackchannelSupport_cb (IntPtr inst)
{
try {
RTSPOnvifMediaFactory __obj = GLib.Object.GetObject (inst, false) as RTSPOnvifMediaFactory;
bool __result;
__result = __obj.OnHasBackchannelSupport ();
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gst.RtspServer.RTSPOnvifMediaFactory), ConnectionMethod="OverrideHasBackchannelSupport")]
protected virtual bool OnHasBackchannelSupport ()
{
return InternalHasBackchannelSupport ();
}
private bool InternalHasBackchannelSupport ()
{
HasBackchannelSupportNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("has_backchannel_support"));
unmanaged = (HasBackchannelSupportNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(HasBackchannelSupportNativeDelegate));
}
if (unmanaged == null) return false;
bool __result = unmanaged (this.Handle);
return __result;
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("has_backchannel_support"
, Gst.RtspServer.RTSPMediaFactory.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // has_backchannel_support
, null
, "_gst_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 20 // _gst_reserved
, "has_backchannel_support"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_onvif_media_factory_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gst_rtsp_onvif_media_factory_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_onvif_media_factory_requires_backchannel(IntPtr factory, IntPtr ctx);
public static bool RequiresBackchannel(Gst.RtspServer.RTSPMediaFactory factory, Gst.RtspServer.RTSPContext ctx) {
IntPtr native_ctx = GLib.Marshaller.StructureToPtrAlloc (ctx);
bool raw_ret = gst_rtsp_onvif_media_factory_requires_backchannel(factory == null ? IntPtr.Zero : factory.Handle, native_ctx);
bool ret = raw_ret;
Marshal.FreeHGlobal (native_ctx);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_rtsp_onvif_media_factory_get_backchannel_bandwidth(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_onvif_media_factory_set_backchannel_bandwidth(IntPtr raw, uint bandwidth);
public uint BackchannelBandwidth {
get {
uint raw_ret = gst_rtsp_onvif_media_factory_get_backchannel_bandwidth(Handle);
uint ret = raw_ret;
return ret;
}
set {
gst_rtsp_onvif_media_factory_set_backchannel_bandwidth(Handle, value);
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_onvif_media_factory_get_backchannel_launch(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_onvif_media_factory_set_backchannel_launch(IntPtr raw, IntPtr launch);
public string BackchannelLaunch {
get {
IntPtr raw_ret = gst_rtsp_onvif_media_factory_get_backchannel_launch(Handle);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
return ret;
}
set {
IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
gst_rtsp_onvif_media_factory_set_backchannel_launch(Handle, native_value);
GLib.Marshaller.Free (native_value);
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_onvif_media_factory_has_backchannel_support(IntPtr raw);
public bool HasBackchannelSupport {
get {
bool raw_ret = gst_rtsp_onvif_media_factory_has_backchannel_support(Handle);
bool ret = raw_ret;
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_onvif_media_factory_has_replay_support(IntPtr raw);
public bool HasReplaySupport {
get {
bool raw_ret = gst_rtsp_onvif_media_factory_has_replay_support(Handle);
bool ret = raw_ret;
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_onvif_media_factory_set_replay_support(IntPtr raw, bool has_replay_support);
public bool ReplaySupport {
set {
gst_rtsp_onvif_media_factory_set_replay_support(Handle, value);
}
}
static RTSPOnvifMediaFactory ()
{
GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("priv"
, Gst.RtspServer.RTSPMediaFactory.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
, null
, "_gst_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, "priv"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View file

@ -0,0 +1,94 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class RTSPOnvifServer : Gst.RtspServer.RTSPServer {
public RTSPOnvifServer (IntPtr raw) : base(raw) {}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_onvif_server_new();
public RTSPOnvifServer () : base (IntPtr.Zero)
{
if (GetType () != typeof (RTSPOnvifServer)) {
CreateNativeObject (new string [0], new GLib.Value[0]);
return;
}
Raw = gst_rtsp_onvif_server_new();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("_gst_reserved"
, Gst.RtspServer.RTSPServer.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 20 // _gst_reserved
, null
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_onvif_server_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gst_rtsp_onvif_server_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
static RTSPOnvifServer ()
{
GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("_gst_reserved"
, Gst.RtspServer.RTSPServer.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, null
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View file

@ -0,0 +1,112 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class RTSPPermissions : Gst.MiniObject {
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_permissions_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gst_rtsp_permissions_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_permissions_add_permission_for_role(IntPtr raw, IntPtr role, IntPtr permission, bool allowed);
public void AddPermissionForRole(string role, string permission, bool allowed) {
IntPtr native_role = GLib.Marshaller.StringToPtrGStrdup (role);
IntPtr native_permission = GLib.Marshaller.StringToPtrGStrdup (permission);
gst_rtsp_permissions_add_permission_for_role(Handle, native_role, native_permission, allowed);
GLib.Marshaller.Free (native_role);
GLib.Marshaller.Free (native_permission);
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_permissions_add_role_empty(IntPtr raw, IntPtr role);
public void AddRoleEmpty(string role) {
IntPtr native_role = GLib.Marshaller.StringToPtrGStrdup (role);
gst_rtsp_permissions_add_role_empty(Handle, native_role);
GLib.Marshaller.Free (native_role);
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_permissions_add_role_from_structure(IntPtr raw, IntPtr structure);
public void AddRoleFromStructure(Gst.Structure structure) {
gst_rtsp_permissions_add_role_from_structure(Handle, structure == null ? IntPtr.Zero : structure.Handle);
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_permissions_get_role(IntPtr raw, IntPtr role);
public Gst.Structure GetRole(string role) {
IntPtr native_role = GLib.Marshaller.StringToPtrGStrdup (role);
IntPtr raw_ret = gst_rtsp_permissions_get_role(Handle, native_role);
Gst.Structure ret = raw_ret == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Structure), false);
GLib.Marshaller.Free (native_role);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_permissions_is_allowed(IntPtr raw, IntPtr role, IntPtr permission);
public bool IsAllowed(string role, string permission) {
IntPtr native_role = GLib.Marshaller.StringToPtrGStrdup (role);
IntPtr native_permission = GLib.Marshaller.StringToPtrGStrdup (permission);
bool raw_ret = gst_rtsp_permissions_is_allowed(Handle, native_role, native_permission);
bool ret = raw_ret;
GLib.Marshaller.Free (native_role);
GLib.Marshaller.Free (native_permission);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_permissions_remove_role(IntPtr raw, IntPtr role);
public void RemoveRole(string role) {
IntPtr native_role = GLib.Marshaller.StringToPtrGStrdup (role);
gst_rtsp_permissions_remove_role(Handle, native_role);
GLib.Marshaller.Free (native_role);
}
public RTSPPermissions(IntPtr raw) : base(raw) {}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_permissions_new();
public RTSPPermissions () : base (IntPtr.Zero)
{
Raw = gst_rtsp_permissions_new();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (Gst.MiniObject.abi_info.Fields);
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View file

@ -0,0 +1,29 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[GLib.GType (typeof (Gst.RtspServer.RTSPPublishClockModeGType))]
public enum RTSPPublishClockMode {
None = 0,
Clock = 1,
ClockAndOffset = 2,
}
internal class RTSPPublishClockModeGType {
[DllImport ("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_publish_clock_mode_get_type ();
public static GLib.GType GType {
get {
return new GLib.GType (gst_rtsp_publish_clock_mode_get_type ());
}
}
}
#endregion
}

View file

@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate bool RTSPSendFunc(Gst.Buffer buffer, byte channel);
}

View file

@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate bool RTSPSendListFunc(Gst.BufferList buffer_list, byte channel);
}

View file

@ -0,0 +1,423 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class RTSPServer : GLib.Object {
public RTSPServer (IntPtr raw) : base(raw) {}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_server_new();
public RTSPServer () : base (IntPtr.Zero)
{
if (GetType () != typeof (RTSPServer)) {
CreateNativeObject (new string [0], new GLib.Value[0]);
return;
}
Raw = gst_rtsp_server_new();
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_server_get_address(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_server_set_address(IntPtr raw, IntPtr address);
[GLib.Property ("address")]
public string Address {
get {
IntPtr raw_ret = gst_rtsp_server_get_address(Handle);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
return ret;
}
set {
IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
gst_rtsp_server_set_address(Handle, native_value);
GLib.Marshaller.Free (native_value);
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_server_get_backlog(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_server_set_backlog(IntPtr raw, int backlog);
[GLib.Property ("backlog")]
public int Backlog {
get {
int raw_ret = gst_rtsp_server_get_backlog(Handle);
int ret = raw_ret;
return ret;
}
set {
gst_rtsp_server_set_backlog(Handle, value);
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_server_get_bound_port(IntPtr raw);
[GLib.Property ("bound-port")]
public int BoundPort {
get {
int raw_ret = gst_rtsp_server_get_bound_port(Handle);
int ret = raw_ret;
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_rtsp_server_get_content_length_limit(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_server_set_content_length_limit(IntPtr raw, uint limit);
[GLib.Property ("content-length-limit")]
public uint ContentLengthLimit {
get {
uint raw_ret = gst_rtsp_server_get_content_length_limit(Handle);
uint ret = raw_ret;
return ret;
}
set {
gst_rtsp_server_set_content_length_limit(Handle, value);
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_server_get_mount_points(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_server_set_mount_points(IntPtr raw, IntPtr mounts);
[GLib.Property ("mount-points")]
public Gst.RtspServer.RTSPMountPoints MountPoints {
get {
IntPtr raw_ret = gst_rtsp_server_get_mount_points(Handle);
Gst.RtspServer.RTSPMountPoints ret = GLib.Object.GetObject(raw_ret, true) as Gst.RtspServer.RTSPMountPoints;
return ret;
}
set {
gst_rtsp_server_set_mount_points(Handle, value == null ? IntPtr.Zero : value.Handle);
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_server_get_service(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_server_set_service(IntPtr raw, IntPtr service);
[GLib.Property ("service")]
public string Service {
get {
IntPtr raw_ret = gst_rtsp_server_get_service(Handle);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
return ret;
}
set {
IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
gst_rtsp_server_set_service(Handle, native_value);
GLib.Marshaller.Free (native_value);
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_server_get_session_pool(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_server_set_session_pool(IntPtr raw, IntPtr pool);
[GLib.Property ("session-pool")]
public Gst.RtspServer.RTSPSessionPool SessionPool {
get {
IntPtr raw_ret = gst_rtsp_server_get_session_pool(Handle);
Gst.RtspServer.RTSPSessionPool ret = GLib.Object.GetObject(raw_ret, true) as Gst.RtspServer.RTSPSessionPool;
return ret;
}
set {
gst_rtsp_server_set_session_pool(Handle, value == null ? IntPtr.Zero : value.Handle);
}
}
[GLib.Signal("client-connected")]
public event Gst.RtspServer.ClientConnectedHandler ClientConnected {
add {
this.AddSignalHandler ("client-connected", value, typeof (Gst.RtspServer.ClientConnectedArgs));
}
remove {
this.RemoveSignalHandler ("client-connected", value);
}
}
static ClientConnectedNativeDelegate ClientConnected_cb_delegate;
static ClientConnectedNativeDelegate ClientConnectedVMCallback {
get {
if (ClientConnected_cb_delegate == null)
ClientConnected_cb_delegate = new ClientConnectedNativeDelegate (ClientConnected_cb);
return ClientConnected_cb_delegate;
}
}
static void OverrideClientConnected (GLib.GType gtype)
{
OverrideClientConnected (gtype, ClientConnectedVMCallback);
}
static void OverrideClientConnected (GLib.GType gtype, ClientConnectedNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("client_connected"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void ClientConnectedNativeDelegate (IntPtr inst, IntPtr _object);
static void ClientConnected_cb (IntPtr inst, IntPtr _object)
{
try {
RTSPServer __obj = GLib.Object.GetObject (inst, false) as RTSPServer;
__obj.OnClientConnected (GLib.Object.GetObject(_object) as Gst.RtspServer.RTSPClient);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gst.RtspServer.RTSPServer), ConnectionMethod="OverrideClientConnected")]
protected virtual void OnClientConnected (Gst.RtspServer.RTSPClient _object)
{
InternalClientConnected (_object);
}
private void InternalClientConnected (Gst.RtspServer.RTSPClient _object)
{
ClientConnectedNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("client_connected"));
unmanaged = (ClientConnectedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ClientConnectedNativeDelegate));
}
if (unmanaged == null) return;
unmanaged (this.Handle, _object == null ? IntPtr.Zero : _object.Handle);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("create_client"
, GLib.Object.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // create_client
, null
, "client_connected"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("client_connected"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // client_connected
, "create_client"
, "_gst_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 20 // _gst_reserved
, "client_connected"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_server_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gst_rtsp_server_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_server_io_func(IntPtr socket, int condition, IntPtr server);
public static bool IoFunc(GLib.Socket socket, GLib.IOCondition condition, Gst.RtspServer.RTSPServer server) {
bool raw_ret = gst_rtsp_server_io_func(socket == null ? IntPtr.Zero : socket.Handle, (int) condition, server == null ? IntPtr.Zero : server.Handle);
bool ret = raw_ret;
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_rtsp_server_attach(IntPtr raw, IntPtr context);
public uint Attach(GLib.MainContext context) {
uint raw_ret = gst_rtsp_server_attach(Handle, context == null ? IntPtr.Zero : context.Handle);
uint ret = raw_ret;
return ret;
}
public uint Attach() {
return Attach (null);
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_server_client_filter(IntPtr raw, Gst.RtspServerSharp.RTSPServerClientFilterFuncNative func, IntPtr user_data);
public Gst.RtspServer.RTSPClient[] ClientFilter(Gst.RtspServer.RTSPServerClientFilterFunc func) {
Gst.RtspServerSharp.RTSPServerClientFilterFuncWrapper func_wrapper = new Gst.RtspServerSharp.RTSPServerClientFilterFuncWrapper (func);
IntPtr raw_ret = gst_rtsp_server_client_filter(Handle, func_wrapper.NativeDelegate, IntPtr.Zero);
Gst.RtspServer.RTSPClient[] ret = (Gst.RtspServer.RTSPClient[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(Gst.RtspServer.RTSPClient));
return ret;
}
public Gst.RtspServer.RTSPClient[] ClientFilter() {
return ClientFilter (null);
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe IntPtr gst_rtsp_server_create_socket(IntPtr raw, IntPtr cancellable, out IntPtr error);
public unsafe GLib.Socket CreateSocket(GLib.Cancellable cancellable) {
IntPtr error = IntPtr.Zero;
IntPtr raw_ret = gst_rtsp_server_create_socket(Handle, cancellable == null ? IntPtr.Zero : cancellable.Handle, out error);
GLib.Socket ret = raw_ret == IntPtr.Zero ? null : (GLib.Socket) GLib.Opaque.GetOpaque (raw_ret, typeof (GLib.Socket), true);
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
public GLib.Socket CreateSocket() {
return CreateSocket (null);
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe IntPtr gst_rtsp_server_create_source(IntPtr raw, IntPtr cancellable, out IntPtr error);
public unsafe GLib.Source CreateSource(GLib.Cancellable cancellable) {
IntPtr error = IntPtr.Zero;
IntPtr raw_ret = gst_rtsp_server_create_source(Handle, cancellable == null ? IntPtr.Zero : cancellable.Handle, out error);
GLib.Source ret = new GLib.Source(raw_ret);
if (error != IntPtr.Zero) throw new GLib.GException (error);
return ret;
}
public GLib.Source CreateSource() {
return CreateSource (null);
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_server_get_auth(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_server_set_auth(IntPtr raw, IntPtr auth);
public Gst.RtspServer.RTSPAuth Auth {
get {
IntPtr raw_ret = gst_rtsp_server_get_auth(Handle);
Gst.RtspServer.RTSPAuth ret = GLib.Object.GetObject(raw_ret, true) as Gst.RtspServer.RTSPAuth;
return ret;
}
set {
gst_rtsp_server_set_auth(Handle, value == null ? IntPtr.Zero : value.Handle);
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_server_get_thread_pool(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_server_set_thread_pool(IntPtr raw, IntPtr pool);
public Gst.RtspServer.RTSPThreadPool ThreadPool {
get {
IntPtr raw_ret = gst_rtsp_server_get_thread_pool(Handle);
Gst.RtspServer.RTSPThreadPool ret = GLib.Object.GetObject(raw_ret, true) as Gst.RtspServer.RTSPThreadPool;
return ret;
}
set {
gst_rtsp_server_set_thread_pool(Handle, value == null ? IntPtr.Zero : value.Handle);
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_server_transfer_connection(IntPtr raw, IntPtr socket, IntPtr ip, int port, IntPtr initial_buffer);
public bool TransferConnection(GLib.Socket socket, string ip, int port, string initial_buffer) {
socket.Owned = false;
IntPtr native_ip = GLib.Marshaller.StringToPtrGStrdup (ip);
IntPtr native_initial_buffer = GLib.Marshaller.StringToPtrGStrdup (initial_buffer);
bool raw_ret = gst_rtsp_server_transfer_connection(Handle, socket == null ? IntPtr.Zero : socket.Handle, native_ip, port, native_initial_buffer);
bool ret = raw_ret;
GLib.Marshaller.Free (native_ip);
GLib.Marshaller.Free (native_initial_buffer);
return ret;
}
public bool TransferConnection(GLib.Socket socket, string ip, int port) {
return TransferConnection (socket, ip, port, null);
}
static RTSPServer ()
{
GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("priv"
, GLib.Object.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
, null
, "_gst_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, "priv"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View file

@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate Gst.RtspServer.RTSPFilterResult RTSPServerClientFilterFunc(Gst.RtspServer.RTSPServer server, Gst.RtspServer.RTSPClient client);
}

View file

@ -0,0 +1,294 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class RTSPSession : GLib.Object {
public RTSPSession (IntPtr raw) : base(raw) {}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_session_new(IntPtr sessionid);
public RTSPSession (string sessionid) : base (IntPtr.Zero)
{
if (GetType () != typeof (RTSPSession)) {
var vals = new List<GLib.Value> ();
var names = new List<string> ();
names.Add ("sessionid");
vals.Add (new GLib.Value (sessionid));
CreateNativeObject (names.ToArray (), vals.ToArray ());
return;
}
IntPtr native_sessionid = GLib.Marshaller.StringToPtrGStrdup (sessionid);
Raw = gst_rtsp_session_new(native_sessionid);
GLib.Marshaller.Free (native_sessionid);
}
[GLib.Property ("extra-timeout")]
public uint ExtraTimeout {
get {
GLib.Value val = GetProperty ("extra-timeout");
uint ret = (uint) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("extra-timeout", val);
val.Dispose ();
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_session_get_sessionid(IntPtr raw);
[GLib.Property ("sessionid")]
public string Sessionid {
get {
IntPtr raw_ret = gst_rtsp_session_get_sessionid(Handle);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_rtsp_session_get_timeout(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_session_set_timeout(IntPtr raw, uint timeout);
[GLib.Property ("timeout")]
public uint Timeout {
get {
uint raw_ret = gst_rtsp_session_get_timeout(Handle);
uint ret = raw_ret;
return ret;
}
set {
gst_rtsp_session_set_timeout(Handle, value);
}
}
[GLib.Property ("timeout-always-visible")]
public bool TimeoutAlwaysVisible {
get {
GLib.Value val = GetProperty ("timeout-always-visible");
bool ret = (bool) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("timeout-always-visible", val);
val.Dispose ();
}
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("_gst_reserved"
, GLib.Object.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, null
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_session_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gst_rtsp_session_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_session_allow_expire(IntPtr raw);
public void AllowExpire() {
gst_rtsp_session_allow_expire(Handle);
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_session_dup_media(IntPtr raw, IntPtr path, out int matched);
public Gst.RtspServer.RTSPSessionMedia DupMedia(string path, out int matched) {
IntPtr native_path = GLib.Marshaller.StringToPtrGStrdup (path);
IntPtr raw_ret = gst_rtsp_session_dup_media(Handle, native_path, out matched);
Gst.RtspServer.RTSPSessionMedia ret = GLib.Object.GetObject(raw_ret, true) as Gst.RtspServer.RTSPSessionMedia;
GLib.Marshaller.Free (native_path);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_session_filter(IntPtr raw, Gst.RtspServerSharp.RTSPSessionFilterFuncNative func, IntPtr user_data);
public Gst.RtspServer.RTSPSessionMedia[] Filter(Gst.RtspServer.RTSPSessionFilterFunc func) {
Gst.RtspServerSharp.RTSPSessionFilterFuncWrapper func_wrapper = new Gst.RtspServerSharp.RTSPSessionFilterFuncWrapper (func);
IntPtr raw_ret = gst_rtsp_session_filter(Handle, func_wrapper.NativeDelegate, IntPtr.Zero);
Gst.RtspServer.RTSPSessionMedia[] ret = (Gst.RtspServer.RTSPSessionMedia[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(Gst.RtspServer.RTSPSessionMedia));
return ret;
}
public Gst.RtspServer.RTSPSessionMedia[] Filter() {
return Filter (null);
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_session_get_header(IntPtr raw);
public string Header {
get {
IntPtr raw_ret = gst_rtsp_session_get_header(Handle);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_session_get_media(IntPtr raw, IntPtr path, out int matched);
public Gst.RtspServer.RTSPSessionMedia GetMedia(string path, out int matched) {
IntPtr native_path = GLib.Marshaller.StringToPtrGStrdup (path);
IntPtr raw_ret = gst_rtsp_session_get_media(Handle, native_path, out matched);
Gst.RtspServer.RTSPSessionMedia ret = GLib.Object.GetObject(raw_ret) as Gst.RtspServer.RTSPSessionMedia;
GLib.Marshaller.Free (native_path);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_session_is_expired(IntPtr raw, IntPtr now);
[Obsolete]
public bool IsExpired(IntPtr now) {
bool raw_ret = gst_rtsp_session_is_expired(Handle, now);
bool ret = raw_ret;
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_session_is_expired_usec(IntPtr raw, long now);
public bool IsExpiredUsec(long now) {
bool raw_ret = gst_rtsp_session_is_expired_usec(Handle, now);
bool ret = raw_ret;
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_session_manage_media(IntPtr raw, IntPtr path, IntPtr media);
public Gst.RtspServer.RTSPSessionMedia ManageMedia(string path, Gst.RtspServer.RTSPMedia media) {
IntPtr native_path = GLib.Marshaller.StringToPtrGStrdup (path);
IntPtr raw_ret = gst_rtsp_session_manage_media(Handle, native_path, media == null ? IntPtr.Zero : media.OwnedHandle);
Gst.RtspServer.RTSPSessionMedia ret = GLib.Object.GetObject(raw_ret) as Gst.RtspServer.RTSPSessionMedia;
GLib.Marshaller.Free (native_path);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_session_next_timeout(IntPtr raw, IntPtr now);
[Obsolete]
public int NextTimeout(IntPtr now) {
int raw_ret = gst_rtsp_session_next_timeout(Handle, now);
int ret = raw_ret;
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_session_next_timeout_usec(IntPtr raw, long now);
public int NextTimeoutUsec(long now) {
int raw_ret = gst_rtsp_session_next_timeout_usec(Handle, now);
int ret = raw_ret;
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_session_prevent_expire(IntPtr raw);
public void PreventExpire() {
gst_rtsp_session_prevent_expire(Handle);
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_session_release_media(IntPtr raw, IntPtr media);
public bool ReleaseMedia(Gst.RtspServer.RTSPSessionMedia media) {
bool raw_ret = gst_rtsp_session_release_media(Handle, media == null ? IntPtr.Zero : media.Handle);
bool ret = raw_ret;
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_session_touch(IntPtr raw);
public void Touch() {
gst_rtsp_session_touch(Handle);
}
static RTSPSession ()
{
GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("priv"
, GLib.Object.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
, null
, "_gst_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, "priv"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View file

@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate Gst.RtspServer.RTSPFilterResult RTSPSessionFilterFunc(Gst.RtspServer.RTSPSession sess, Gst.RtspServer.RTSPSessionMedia media);
}

View file

@ -0,0 +1,208 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class RTSPSessionMedia : GLib.Object {
public RTSPSessionMedia (IntPtr raw) : base(raw) {}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_session_media_new(IntPtr path, IntPtr media);
public RTSPSessionMedia (string path, Gst.RtspServer.RTSPMedia media) : base (IntPtr.Zero)
{
if (GetType () != typeof (RTSPSessionMedia)) {
var vals = new List<GLib.Value> ();
var names = new List<string> ();
CreateNativeObject (names.ToArray (), vals.ToArray ());
return;
}
IntPtr native_path = GLib.Marshaller.StringToPtrGStrdup (path);
Raw = gst_rtsp_session_media_new(native_path, media == null ? IntPtr.Zero : media.OwnedHandle);
GLib.Marshaller.Free (native_path);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("_gst_reserved"
, GLib.Object.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, null
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_session_media_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gst_rtsp_session_media_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_session_media_alloc_channels(IntPtr raw, IntPtr range);
public bool AllocChannels(out Gst.Rtsp.RTSPRange range) {
IntPtr native_range = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gst.Rtsp.RTSPRange)));
bool raw_ret = gst_rtsp_session_media_alloc_channels(Handle, native_range);
bool ret = raw_ret;
range = Gst.Rtsp.RTSPRange.New (native_range);
Marshal.FreeHGlobal (native_range);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern ulong gst_rtsp_session_media_get_base_time(IntPtr raw);
public ulong BaseTime {
get {
ulong raw_ret = gst_rtsp_session_media_get_base_time(Handle);
ulong ret = raw_ret;
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_session_media_get_media(IntPtr raw);
public Gst.RtspServer.RTSPMedia Media {
get {
IntPtr raw_ret = gst_rtsp_session_media_get_media(Handle);
Gst.RtspServer.RTSPMedia ret = GLib.Object.GetObject(raw_ret) as Gst.RtspServer.RTSPMedia;
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_session_media_get_rtpinfo(IntPtr raw);
public string Rtpinfo {
get {
IntPtr raw_ret = gst_rtsp_session_media_get_rtpinfo(Handle);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_session_media_get_rtsp_state(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_session_media_set_rtsp_state(IntPtr raw, int state);
public Gst.Rtsp.RTSPState RtspState {
get {
int raw_ret = gst_rtsp_session_media_get_rtsp_state(Handle);
Gst.Rtsp.RTSPState ret = (Gst.Rtsp.RTSPState) raw_ret;
return ret;
}
set {
gst_rtsp_session_media_set_rtsp_state(Handle, (int) value);
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_session_media_get_transport(IntPtr raw, uint idx);
public Gst.RtspServer.RTSPStreamTransport GetTransport(uint idx) {
IntPtr raw_ret = gst_rtsp_session_media_get_transport(Handle, idx);
Gst.RtspServer.RTSPStreamTransport ret = GLib.Object.GetObject(raw_ret) as Gst.RtspServer.RTSPStreamTransport;
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_session_media_matches(IntPtr raw, IntPtr path, out int matched);
public bool Matches(string path, out int matched) {
IntPtr native_path = GLib.Marshaller.StringToPtrGStrdup (path);
bool raw_ret = gst_rtsp_session_media_matches(Handle, native_path, out matched);
bool ret = raw_ret;
GLib.Marshaller.Free (native_path);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_session_media_set_state(IntPtr raw, int state);
public bool SetState(Gst.State state) {
bool raw_ret = gst_rtsp_session_media_set_state(Handle, (int) state);
bool ret = raw_ret;
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_session_media_set_transport(IntPtr raw, IntPtr stream, IntPtr tr);
public Gst.RtspServer.RTSPStreamTransport SetTransport(Gst.RtspServer.RTSPStream stream, Gst.Rtsp.RTSPTransport tr) {
IntPtr native_tr = GLib.Marshaller.StructureToPtrAlloc (tr);
IntPtr raw_ret = gst_rtsp_session_media_set_transport(Handle, stream == null ? IntPtr.Zero : stream.Handle, native_tr);
Gst.RtspServer.RTSPStreamTransport ret = GLib.Object.GetObject(raw_ret) as Gst.RtspServer.RTSPStreamTransport;
Marshal.FreeHGlobal (native_tr);
return ret;
}
static RTSPSessionMedia ()
{
GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("priv"
, GLib.Object.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
, null
, "_gst_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, "priv"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View file

@ -0,0 +1,337 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class RTSPSessionPool : GLib.Object {
public RTSPSessionPool (IntPtr raw) : base(raw) {}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_session_pool_new();
public RTSPSessionPool () : base (IntPtr.Zero)
{
if (GetType () != typeof (RTSPSessionPool)) {
CreateNativeObject (new string [0], new GLib.Value[0]);
return;
}
Raw = gst_rtsp_session_pool_new();
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_rtsp_session_pool_get_max_sessions(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_session_pool_set_max_sessions(IntPtr raw, uint max);
[GLib.Property ("max-sessions")]
public uint MaxSessions {
get {
uint raw_ret = gst_rtsp_session_pool_get_max_sessions(Handle);
uint ret = raw_ret;
return ret;
}
set {
gst_rtsp_session_pool_set_max_sessions(Handle, value);
}
}
[GLib.Signal("session-removed")]
public event Gst.RtspServer.SessionRemovedHandler SessionRemoved {
add {
this.AddSignalHandler ("session-removed", value, typeof (Gst.RtspServer.SessionRemovedArgs));
}
remove {
this.RemoveSignalHandler ("session-removed", value);
}
}
static CreateSessionIdNativeDelegate CreateSessionId_cb_delegate;
static CreateSessionIdNativeDelegate CreateSessionIdVMCallback {
get {
if (CreateSessionId_cb_delegate == null)
CreateSessionId_cb_delegate = new CreateSessionIdNativeDelegate (CreateSessionId_cb);
return CreateSessionId_cb_delegate;
}
}
static void OverrideCreateSessionId (GLib.GType gtype)
{
OverrideCreateSessionId (gtype, CreateSessionIdVMCallback);
}
static void OverrideCreateSessionId (GLib.GType gtype, CreateSessionIdNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("create_session_id"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr CreateSessionIdNativeDelegate (IntPtr inst);
static IntPtr CreateSessionId_cb (IntPtr inst)
{
try {
RTSPSessionPool __obj = GLib.Object.GetObject (inst, false) as RTSPSessionPool;
string __result;
__result = __obj.OnCreateSessionId ();
return GLib.Marshaller.StringToPtrGStrdup(__result);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gst.RtspServer.RTSPSessionPool), ConnectionMethod="OverrideCreateSessionId")]
protected virtual string OnCreateSessionId ()
{
return InternalCreateSessionId ();
}
private string InternalCreateSessionId ()
{
CreateSessionIdNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("create_session_id"));
unmanaged = (CreateSessionIdNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(CreateSessionIdNativeDelegate));
}
if (unmanaged == null) return null;
IntPtr __result = unmanaged (this.Handle);
return GLib.Marshaller.PtrToStringGFree(__result);
}
static SessionRemovedNativeDelegate SessionRemoved_cb_delegate;
static SessionRemovedNativeDelegate SessionRemovedVMCallback {
get {
if (SessionRemoved_cb_delegate == null)
SessionRemoved_cb_delegate = new SessionRemovedNativeDelegate (SessionRemoved_cb);
return SessionRemoved_cb_delegate;
}
}
static void OverrideSessionRemoved (GLib.GType gtype)
{
OverrideSessionRemoved (gtype, SessionRemovedVMCallback);
}
static void OverrideSessionRemoved (GLib.GType gtype, SessionRemovedNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("session_removed"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void SessionRemovedNativeDelegate (IntPtr inst, IntPtr _object);
static void SessionRemoved_cb (IntPtr inst, IntPtr _object)
{
try {
RTSPSessionPool __obj = GLib.Object.GetObject (inst, false) as RTSPSessionPool;
__obj.OnSessionRemoved (GLib.Object.GetObject(_object) as Gst.RtspServer.RTSPSession);
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gst.RtspServer.RTSPSessionPool), ConnectionMethod="OverrideSessionRemoved")]
protected virtual void OnSessionRemoved (Gst.RtspServer.RTSPSession _object)
{
InternalSessionRemoved (_object);
}
private void InternalSessionRemoved (Gst.RtspServer.RTSPSession _object)
{
SessionRemovedNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("session_removed"));
unmanaged = (SessionRemovedNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SessionRemovedNativeDelegate));
}
if (unmanaged == null) return;
unmanaged (this.Handle, _object == null ? IntPtr.Zero : _object.Handle);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("create_session_id"
, GLib.Object.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // create_session_id
, null
, "create_session"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("create_session"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // create_session
, "create_session_id"
, "session_removed"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("session_removed"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // session_removed
, "create_session"
, "_gst_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 19 // _gst_reserved
, "session_removed"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_session_pool_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gst_rtsp_session_pool_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_rtsp_session_pool_cleanup(IntPtr raw);
public uint Cleanup() {
uint raw_ret = gst_rtsp_session_pool_cleanup(Handle);
uint ret = raw_ret;
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_session_pool_create(IntPtr raw);
public Gst.RtspServer.RTSPSession Create() {
IntPtr raw_ret = gst_rtsp_session_pool_create(Handle);
Gst.RtspServer.RTSPSession ret = GLib.Object.GetObject(raw_ret, true) as Gst.RtspServer.RTSPSession;
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_session_pool_create_watch(IntPtr raw);
public GLib.Source CreateWatch() {
IntPtr raw_ret = gst_rtsp_session_pool_create_watch(Handle);
GLib.Source ret = new GLib.Source(raw_ret);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_session_pool_filter(IntPtr raw, Gst.RtspServerSharp.RTSPSessionPoolFilterFuncNative func, IntPtr user_data);
public Gst.RtspServer.RTSPSession[] Filter(Gst.RtspServer.RTSPSessionPoolFilterFunc func) {
Gst.RtspServerSharp.RTSPSessionPoolFilterFuncWrapper func_wrapper = new Gst.RtspServerSharp.RTSPSessionPoolFilterFuncWrapper (func);
IntPtr raw_ret = gst_rtsp_session_pool_filter(Handle, func_wrapper.NativeDelegate, IntPtr.Zero);
Gst.RtspServer.RTSPSession[] ret = (Gst.RtspServer.RTSPSession[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(Gst.RtspServer.RTSPSession));
return ret;
}
public Gst.RtspServer.RTSPSession[] Filter() {
return Filter (null);
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_session_pool_find(IntPtr raw, IntPtr sessionid);
public Gst.RtspServer.RTSPSession Find(string sessionid) {
IntPtr native_sessionid = GLib.Marshaller.StringToPtrGStrdup (sessionid);
IntPtr raw_ret = gst_rtsp_session_pool_find(Handle, native_sessionid);
Gst.RtspServer.RTSPSession ret = GLib.Object.GetObject(raw_ret, true) as Gst.RtspServer.RTSPSession;
GLib.Marshaller.Free (native_sessionid);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_rtsp_session_pool_get_n_sessions(IntPtr raw);
public uint NSessions {
get {
uint raw_ret = gst_rtsp_session_pool_get_n_sessions(Handle);
uint ret = raw_ret;
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_session_pool_remove(IntPtr raw, IntPtr sess);
public bool Remove(Gst.RtspServer.RTSPSession sess) {
bool raw_ret = gst_rtsp_session_pool_remove(Handle, sess == null ? IntPtr.Zero : sess.Handle);
bool ret = raw_ret;
return ret;
}
static RTSPSessionPool ()
{
GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("priv"
, GLib.Object.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
, null
, "_gst_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, "priv"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View file

@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate Gst.RtspServer.RTSPFilterResult RTSPSessionPoolFilterFunc(Gst.RtspServer.RTSPSessionPool pool, Gst.RtspServer.RTSPSession session);
}

View file

@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate bool RTSPSessionPoolFunc(Gst.RtspServer.RTSPSessionPool pool);
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,303 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class RTSPStreamTransport : GLib.Object {
public RTSPStreamTransport (IntPtr raw) : base(raw) {}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_stream_transport_new(IntPtr stream, IntPtr tr);
public RTSPStreamTransport (Gst.RtspServer.RTSPStream stream, Gst.Rtsp.RTSPTransport tr) : base (IntPtr.Zero)
{
if (GetType () != typeof (RTSPStreamTransport)) {
var vals = new List<GLib.Value> ();
var names = new List<string> ();
CreateNativeObject (names.ToArray (), vals.ToArray ());
return;
}
IntPtr native_tr = GLib.Marshaller.StructureToPtrAlloc (tr);
Raw = gst_rtsp_stream_transport_new(stream == null ? IntPtr.Zero : stream.Handle, native_tr);
Marshal.FreeHGlobal (native_tr);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("_gst_reserved"
, GLib.Object.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, null
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_stream_transport_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gst_rtsp_stream_transport_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_stream_transport_get_rtpinfo(IntPtr raw, ulong start_time);
public string GetRtpinfo(ulong start_time) {
IntPtr raw_ret = gst_rtsp_stream_transport_get_rtpinfo(Handle, start_time);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_stream_transport_get_stream(IntPtr raw);
public Gst.RtspServer.RTSPStream Stream {
get {
IntPtr raw_ret = gst_rtsp_stream_transport_get_stream(Handle);
Gst.RtspServer.RTSPStream ret = GLib.Object.GetObject(raw_ret) as Gst.RtspServer.RTSPStream;
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_stream_transport_get_transport(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_stream_transport_set_transport(IntPtr raw, IntPtr value);
public Gst.Rtsp.RTSPTransport Transport {
get {
IntPtr raw_ret = gst_rtsp_stream_transport_get_transport(Handle);
Gst.Rtsp.RTSPTransport ret = Gst.Rtsp.RTSPTransport.New (raw_ret);
return ret;
}
set {
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
gst_rtsp_stream_transport_set_transport(Handle, native_value);
Marshal.FreeHGlobal (native_value);
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_stream_transport_get_url(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_stream_transport_set_url(IntPtr raw, IntPtr value);
public Gst.Rtsp.RTSPUrl Url {
get {
IntPtr raw_ret = gst_rtsp_stream_transport_get_url(Handle);
Gst.Rtsp.RTSPUrl ret = Gst.Rtsp.RTSPUrl.New (raw_ret);
return ret;
}
set {
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
gst_rtsp_stream_transport_set_url(Handle, native_value);
Marshal.FreeHGlobal (native_value);
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_stream_transport_is_timed_out(IntPtr raw);
public bool IsTimedOut {
get {
bool raw_ret = gst_rtsp_stream_transport_is_timed_out(Handle);
bool ret = raw_ret;
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_stream_transport_keep_alive(IntPtr raw);
public void KeepAlive() {
gst_rtsp_stream_transport_keep_alive(Handle);
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_stream_transport_recv_data(IntPtr raw, uint channel, IntPtr buffer);
public Gst.FlowReturn RecvData(uint channel, Gst.Buffer buffer) {
buffer.Owned = false;
int raw_ret = gst_rtsp_stream_transport_recv_data(Handle, channel, buffer == null ? IntPtr.Zero : buffer.Handle);
Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret;
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_stream_transport_send_rtcp(IntPtr raw, IntPtr buffer);
public bool SendRtcp(Gst.Buffer buffer) {
bool raw_ret = gst_rtsp_stream_transport_send_rtcp(Handle, buffer == null ? IntPtr.Zero : buffer.Handle);
bool ret = raw_ret;
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_stream_transport_send_rtcp_list(IntPtr raw, IntPtr buffer_list);
public bool SendRtcpList(Gst.BufferList buffer_list) {
bool raw_ret = gst_rtsp_stream_transport_send_rtcp_list(Handle, buffer_list == null ? IntPtr.Zero : buffer_list.Handle);
bool ret = raw_ret;
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_stream_transport_send_rtp(IntPtr raw, IntPtr buffer);
public bool SendRtp(Gst.Buffer buffer) {
bool raw_ret = gst_rtsp_stream_transport_send_rtp(Handle, buffer == null ? IntPtr.Zero : buffer.Handle);
bool ret = raw_ret;
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_stream_transport_send_rtp_list(IntPtr raw, IntPtr buffer_list);
public bool SendRtpList(Gst.BufferList buffer_list) {
bool raw_ret = gst_rtsp_stream_transport_send_rtp_list(Handle, buffer_list == null ? IntPtr.Zero : buffer_list.Handle);
bool ret = raw_ret;
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_stream_transport_set_active(IntPtr raw, bool active);
public bool SetActive(bool active) {
bool raw_ret = gst_rtsp_stream_transport_set_active(Handle, active);
bool ret = raw_ret;
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_stream_transport_set_keepalive(IntPtr raw, Gst.RtspServerSharp.RTSPKeepAliveFuncNative keep_alive, IntPtr user_data, GLib.DestroyNotify notify);
public Gst.RtspServer.RTSPKeepAliveFunc Keepalive {
set {
Gst.RtspServerSharp.RTSPKeepAliveFuncWrapper value_wrapper = new Gst.RtspServerSharp.RTSPKeepAliveFuncWrapper (value);
IntPtr user_data;
GLib.DestroyNotify notify;
if (value == null) {
user_data = IntPtr.Zero;
notify = null;
} else {
user_data = (IntPtr) GCHandle.Alloc (value_wrapper);
notify = GLib.DestroyHelper.NotifyHandler;
}
gst_rtsp_stream_transport_set_keepalive(Handle, value_wrapper.NativeDelegate, user_data, notify);
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_stream_transport_set_message_sent(IntPtr raw, Gst.RtspServerSharp.RTSPMessageSentFuncNative message_sent, IntPtr user_data, GLib.DestroyNotify notify);
public Gst.RtspServer.RTSPMessageSentFunc MessageSent {
set {
Gst.RtspServerSharp.RTSPMessageSentFuncWrapper value_wrapper = new Gst.RtspServerSharp.RTSPMessageSentFuncWrapper (value);
IntPtr user_data;
GLib.DestroyNotify notify;
if (value == null) {
user_data = IntPtr.Zero;
notify = null;
} else {
user_data = (IntPtr) GCHandle.Alloc (value_wrapper);
notify = GLib.DestroyHelper.NotifyHandler;
}
gst_rtsp_stream_transport_set_message_sent(Handle, value_wrapper.NativeDelegate, user_data, notify);
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_stream_transport_set_message_sent_full(IntPtr raw, Gst.RtspServerSharp.RTSPMessageSentFuncFullNative message_sent, IntPtr user_data, GLib.DestroyNotify notify);
public Gst.RtspServer.RTSPMessageSentFuncFull MessageSentFull {
set {
Gst.RtspServerSharp.RTSPMessageSentFuncFullWrapper value_wrapper = new Gst.RtspServerSharp.RTSPMessageSentFuncFullWrapper (value);
IntPtr user_data;
GLib.DestroyNotify notify;
if (value == null) {
user_data = IntPtr.Zero;
notify = null;
} else {
user_data = (IntPtr) GCHandle.Alloc (value_wrapper);
notify = GLib.DestroyHelper.NotifyHandler;
}
gst_rtsp_stream_transport_set_message_sent_full(Handle, value_wrapper.NativeDelegate, user_data, notify);
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_stream_transport_set_timed_out(IntPtr raw, bool timedout);
public bool TimedOut {
set {
gst_rtsp_stream_transport_set_timed_out(Handle, value);
}
}
static RTSPStreamTransport ()
{
GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("priv"
, GLib.Object.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
, null
, "_gst_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, "priv"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View file

@ -0,0 +1,10 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate Gst.RtspServer.RTSPFilterResult RTSPStreamTransportFilterFunc(Gst.RtspServer.RTSPStream stream, Gst.RtspServer.RTSPStreamTransport trans);
}

View file

@ -0,0 +1,29 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[GLib.GType (typeof (Gst.RtspServer.RTSPSuspendModeGType))]
public enum RTSPSuspendMode {
None = 0,
Pause = 1,
Reset = 2,
}
internal class RTSPSuspendModeGType {
[DllImport ("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_suspend_mode_get_type ();
public static GLib.GType GType {
get {
return new GLib.GType (gst_rtsp_suspend_mode_get_type ());
}
}
}
#endregion
}

View file

@ -0,0 +1,130 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class RTSPThread : Gst.MiniObject {
public Gst.RtspServer.RTSPThreadType Type {
get {
unsafe {
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("type"));
return (Gst.RtspServer.RTSPThreadType) (*raw_ptr);
}
}
set {
unsafe {
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("type"));
*raw_ptr = (int) value;
}
}
}
public GLib.MainContext Context {
get {
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("context"));
return new GLib.MainContext((*raw_ptr));
}
}
set {
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((byte*)Handle) + abi_info.GetFieldOffset("context"));
*raw_ptr = value == null ? IntPtr.Zero : value.Handle;
}
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_thread_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gst_rtsp_thread_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_thread_reuse(IntPtr raw);
public bool Reuse() {
bool raw_ret = gst_rtsp_thread_reuse(Handle);
bool ret = raw_ret;
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_thread_stop(IntPtr raw);
public void Stop() {
gst_rtsp_thread_stop(Handle);
}
public RTSPThread(IntPtr raw) : base(raw) {}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_thread_new(int type);
public RTSPThread (Gst.RtspServer.RTSPThreadType type) : base (IntPtr.Zero)
{
Raw = gst_rtsp_thread_new((int) type);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("type"
, Gst.MiniObject.abi_info.Fields
, (uint) Marshal.SizeOf(System.Enum.GetUnderlyingType(typeof(Gst.RtspServer.RTSPThreadType))) // type
, null
, "context"
, (long) Marshal.OffsetOf(typeof(GstRTSPThread_typeAlign), "type")
, 0
),
new GLib.AbiField("context"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // context
, "type"
, "loop"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("loop"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // loop
, "context"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _abi_info;
}
}
[StructLayout(LayoutKind.Sequential)]
public struct GstRTSPThread_typeAlign
{
sbyte f1;
private Gst.RtspServer.RTSPThreadType type;
}
// End of the ABI representation.
#endregion
}
}

View file

@ -0,0 +1,399 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class RTSPThreadPool : GLib.Object {
public RTSPThreadPool (IntPtr raw) : base(raw) {}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_thread_pool_new();
public RTSPThreadPool () : base (IntPtr.Zero)
{
if (GetType () != typeof (RTSPThreadPool)) {
CreateNativeObject (new string [0], new GLib.Value[0]);
return;
}
Raw = gst_rtsp_thread_pool_new();
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_thread_pool_get_max_threads(IntPtr raw);
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_thread_pool_set_max_threads(IntPtr raw, int max_threads);
[GLib.Property ("max-threads")]
public int MaxThreads {
get {
int raw_ret = gst_rtsp_thread_pool_get_max_threads(Handle);
int ret = raw_ret;
return ret;
}
set {
gst_rtsp_thread_pool_set_max_threads(Handle, value);
}
}
static GetThreadNativeDelegate GetThread_cb_delegate;
static GetThreadNativeDelegate GetThreadVMCallback {
get {
if (GetThread_cb_delegate == null)
GetThread_cb_delegate = new GetThreadNativeDelegate (GetThread_cb);
return GetThread_cb_delegate;
}
}
static void OverrideGetThread (GLib.GType gtype)
{
OverrideGetThread (gtype, GetThreadVMCallback);
}
static void OverrideGetThread (GLib.GType gtype, GetThreadNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("get_thread"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate IntPtr GetThreadNativeDelegate (IntPtr inst, int type, IntPtr ctx);
static IntPtr GetThread_cb (IntPtr inst, int type, IntPtr ctx)
{
try {
RTSPThreadPool __obj = GLib.Object.GetObject (inst, false) as RTSPThreadPool;
Gst.RtspServer.RTSPThread __result;
__result = __obj.OnGetThread ((Gst.RtspServer.RTSPThreadType) type, Gst.RtspServer.RTSPContext.New (ctx));
return __result == null ? IntPtr.Zero : __result.OwnedCopy;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gst.RtspServer.RTSPThreadPool), ConnectionMethod="OverrideGetThread")]
protected virtual Gst.RtspServer.RTSPThread OnGetThread (Gst.RtspServer.RTSPThreadType type, Gst.RtspServer.RTSPContext ctx)
{
return InternalGetThread (type, ctx);
}
private Gst.RtspServer.RTSPThread InternalGetThread (Gst.RtspServer.RTSPThreadType type, Gst.RtspServer.RTSPContext ctx)
{
GetThreadNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("get_thread"));
unmanaged = (GetThreadNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(GetThreadNativeDelegate));
}
if (unmanaged == null) return null;
IntPtr native_ctx = GLib.Marshaller.StructureToPtrAlloc (ctx);
IntPtr __result = unmanaged (this.Handle, (int) type, native_ctx);
Marshal.FreeHGlobal (native_ctx);
return __result == IntPtr.Zero ? null : (Gst.RtspServer.RTSPThread) GLib.Opaque.GetOpaque (__result, typeof (Gst.RtspServer.RTSPThread), true);
}
static ConfigureThreadNativeDelegate ConfigureThread_cb_delegate;
static ConfigureThreadNativeDelegate ConfigureThreadVMCallback {
get {
if (ConfigureThread_cb_delegate == null)
ConfigureThread_cb_delegate = new ConfigureThreadNativeDelegate (ConfigureThread_cb);
return ConfigureThread_cb_delegate;
}
}
static void OverrideConfigureThread (GLib.GType gtype)
{
OverrideConfigureThread (gtype, ConfigureThreadVMCallback);
}
static void OverrideConfigureThread (GLib.GType gtype, ConfigureThreadNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("configure_thread"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void ConfigureThreadNativeDelegate (IntPtr inst, IntPtr thread, IntPtr ctx);
static void ConfigureThread_cb (IntPtr inst, IntPtr thread, IntPtr ctx)
{
try {
RTSPThreadPool __obj = GLib.Object.GetObject (inst, false) as RTSPThreadPool;
__obj.OnConfigureThread (thread == IntPtr.Zero ? null : (Gst.RtspServer.RTSPThread) GLib.Opaque.GetOpaque (thread, typeof (Gst.RtspServer.RTSPThread), false), Gst.RtspServer.RTSPContext.New (ctx));
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gst.RtspServer.RTSPThreadPool), ConnectionMethod="OverrideConfigureThread")]
protected virtual void OnConfigureThread (Gst.RtspServer.RTSPThread thread, Gst.RtspServer.RTSPContext ctx)
{
InternalConfigureThread (thread, ctx);
}
private void InternalConfigureThread (Gst.RtspServer.RTSPThread thread, Gst.RtspServer.RTSPContext ctx)
{
ConfigureThreadNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("configure_thread"));
unmanaged = (ConfigureThreadNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ConfigureThreadNativeDelegate));
}
if (unmanaged == null) return;
IntPtr native_ctx = GLib.Marshaller.StructureToPtrAlloc (ctx);
unmanaged (this.Handle, thread == null ? IntPtr.Zero : thread.Handle, native_ctx);
Marshal.FreeHGlobal (native_ctx);
}
static ThreadEnterNativeDelegate ThreadEnter_cb_delegate;
static ThreadEnterNativeDelegate ThreadEnterVMCallback {
get {
if (ThreadEnter_cb_delegate == null)
ThreadEnter_cb_delegate = new ThreadEnterNativeDelegate (ThreadEnter_cb);
return ThreadEnter_cb_delegate;
}
}
static void OverrideThreadEnter (GLib.GType gtype)
{
OverrideThreadEnter (gtype, ThreadEnterVMCallback);
}
static void OverrideThreadEnter (GLib.GType gtype, ThreadEnterNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("thread_enter"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void ThreadEnterNativeDelegate (IntPtr inst, IntPtr thread);
static void ThreadEnter_cb (IntPtr inst, IntPtr thread)
{
try {
RTSPThreadPool __obj = GLib.Object.GetObject (inst, false) as RTSPThreadPool;
__obj.OnThreadEnter (thread == IntPtr.Zero ? null : (Gst.RtspServer.RTSPThread) GLib.Opaque.GetOpaque (thread, typeof (Gst.RtspServer.RTSPThread), false));
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gst.RtspServer.RTSPThreadPool), ConnectionMethod="OverrideThreadEnter")]
protected virtual void OnThreadEnter (Gst.RtspServer.RTSPThread thread)
{
InternalThreadEnter (thread);
}
private void InternalThreadEnter (Gst.RtspServer.RTSPThread thread)
{
ThreadEnterNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("thread_enter"));
unmanaged = (ThreadEnterNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ThreadEnterNativeDelegate));
}
if (unmanaged == null) return;
unmanaged (this.Handle, thread == null ? IntPtr.Zero : thread.Handle);
}
static ThreadLeaveNativeDelegate ThreadLeave_cb_delegate;
static ThreadLeaveNativeDelegate ThreadLeaveVMCallback {
get {
if (ThreadLeave_cb_delegate == null)
ThreadLeave_cb_delegate = new ThreadLeaveNativeDelegate (ThreadLeave_cb);
return ThreadLeave_cb_delegate;
}
}
static void OverrideThreadLeave (GLib.GType gtype)
{
OverrideThreadLeave (gtype, ThreadLeaveVMCallback);
}
static void OverrideThreadLeave (GLib.GType gtype, ThreadLeaveNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("thread_leave"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void ThreadLeaveNativeDelegate (IntPtr inst, IntPtr thread);
static void ThreadLeave_cb (IntPtr inst, IntPtr thread)
{
try {
RTSPThreadPool __obj = GLib.Object.GetObject (inst, false) as RTSPThreadPool;
__obj.OnThreadLeave (thread == IntPtr.Zero ? null : (Gst.RtspServer.RTSPThread) GLib.Opaque.GetOpaque (thread, typeof (Gst.RtspServer.RTSPThread), false));
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gst.RtspServer.RTSPThreadPool), ConnectionMethod="OverrideThreadLeave")]
protected virtual void OnThreadLeave (Gst.RtspServer.RTSPThread thread)
{
InternalThreadLeave (thread);
}
private void InternalThreadLeave (Gst.RtspServer.RTSPThread thread)
{
ThreadLeaveNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("thread_leave"));
unmanaged = (ThreadLeaveNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ThreadLeaveNativeDelegate));
}
if (unmanaged == null) return;
unmanaged (this.Handle, thread == null ? IntPtr.Zero : thread.Handle);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("pool"
, GLib.Object.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // pool
, null
, "get_thread"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("get_thread"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // get_thread
, "pool"
, "configure_thread"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("configure_thread"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // configure_thread
, "get_thread"
, "thread_enter"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("thread_enter"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // thread_enter
, "configure_thread"
, "thread_leave"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("thread_leave"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // thread_leave
, "thread_enter"
, "_gst_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, "thread_leave"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_thread_pool_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gst_rtsp_thread_pool_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_thread_pool_cleanup();
public static void Cleanup() {
gst_rtsp_thread_pool_cleanup();
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_thread_pool_get_thread(IntPtr raw, int type, IntPtr ctx);
public Gst.RtspServer.RTSPThread GetThread(Gst.RtspServer.RTSPThreadType type, Gst.RtspServer.RTSPContext ctx) {
IntPtr native_ctx = GLib.Marshaller.StructureToPtrAlloc (ctx);
IntPtr raw_ret = gst_rtsp_thread_pool_get_thread(Handle, (int) type, native_ctx);
Gst.RtspServer.RTSPThread ret = raw_ret == IntPtr.Zero ? null : (Gst.RtspServer.RTSPThread) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.RtspServer.RTSPThread), true);
Marshal.FreeHGlobal (native_ctx);
return ret;
}
static RTSPThreadPool ()
{
GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("priv"
, GLib.Object.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // priv
, null
, "_gst_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, "priv"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View file

@ -0,0 +1,16 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
public enum RTSPThreadType {
Client = 0,
Media = 1,
}
#endregion
}

View file

@ -0,0 +1,114 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
public partial class RTSPToken : Gst.MiniObject {
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_token_get_type();
public static new GLib.GType GType {
get {
IntPtr raw_ret = gst_rtsp_token_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_token_get_string(IntPtr raw, IntPtr field);
public string GetString(string field) {
IntPtr native_field = GLib.Marshaller.StringToPtrGStrdup (field);
IntPtr raw_ret = gst_rtsp_token_get_string(Handle, native_field);
string ret = GLib.Marshaller.Utf8PtrToString (raw_ret);
GLib.Marshaller.Free (native_field);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_token_get_structure(IntPtr raw);
public Gst.Structure Structure {
get {
IntPtr raw_ret = gst_rtsp_token_get_structure(Handle);
Gst.Structure ret = raw_ret == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Structure), false);
return ret;
}
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_rtsp_token_is_allowed(IntPtr raw, IntPtr field);
public bool IsAllowed(string field) {
IntPtr native_field = GLib.Marshaller.StringToPtrGStrdup (field);
bool raw_ret = gst_rtsp_token_is_allowed(Handle, native_field);
bool ret = raw_ret;
GLib.Marshaller.Free (native_field);
return ret;
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_token_set_bool(IntPtr raw, IntPtr field, bool bool_value);
public void SetBool(string field, bool bool_value) {
IntPtr native_field = GLib.Marshaller.StringToPtrGStrdup (field);
gst_rtsp_token_set_bool(Handle, native_field, bool_value);
GLib.Marshaller.Free (native_field);
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_token_set_string(IntPtr raw, IntPtr field, IntPtr string_value);
public void SetString(string field, string string_value) {
IntPtr native_field = GLib.Marshaller.StringToPtrGStrdup (field);
IntPtr native_string_value = GLib.Marshaller.StringToPtrGStrdup (string_value);
gst_rtsp_token_set_string(Handle, native_field, native_string_value);
GLib.Marshaller.Free (native_field);
GLib.Marshaller.Free (native_string_value);
}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_token_writable_structure(IntPtr raw);
public Gst.Structure WritableStructure() {
IntPtr raw_ret = gst_rtsp_token_writable_structure(Handle);
Gst.Structure ret = raw_ret == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Structure), false);
return ret;
}
public RTSPToken(IntPtr raw) : base(raw) {}
[DllImport("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_token_new_empty();
public RTSPToken () : base (IntPtr.Zero)
{
Raw = gst_rtsp_token_new_empty();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (Gst.MiniObject.abi_info.Fields);
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View file

@ -0,0 +1,29 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[Flags]
[GLib.GType (typeof (Gst.RtspServer.RTSPTransportModeGType))]
public enum RTSPTransportMode : uint {
Play = 1,
Record = 2,
}
internal class RTSPTransportModeGType {
[DllImport ("gstrtspserver-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_transport_mode_get_type ();
public static GLib.GType GType {
get {
return new GLib.GType (gst_rtsp_transport_mode_get_type ());
}
}
}
#endregion
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void RecordRequestHandler(object o, RecordRequestArgs args);
public class RecordRequestArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPContext Ctx{
get {
return (Gst.RtspServer.RTSPContext) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void RemovedStreamHandler(object o, RemovedStreamArgs args);
public class RemovedStreamArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPStream Object{
get {
return (Gst.RtspServer.RTSPStream) Args [0];
}
}
}
}

View file

@ -0,0 +1,46 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct SDPInfo : IEquatable<SDPInfo> {
public bool IsIpv6;
public string ServerIp;
public static Gst.RtspServer.SDPInfo Zero = new Gst.RtspServer.SDPInfo ();
public static Gst.RtspServer.SDPInfo New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Gst.RtspServer.SDPInfo.Zero;
return (Gst.RtspServer.SDPInfo) Marshal.PtrToStructure (raw, typeof (Gst.RtspServer.SDPInfo));
}
public bool Equals (SDPInfo other)
{
return true && IsIpv6.Equals (other.IsIpv6) && ServerIp.Equals (other.ServerIp);
}
public override bool Equals (object other)
{
return other is SDPInfo && Equals ((SDPInfo) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ IsIpv6.GetHashCode () ^ ServerIp.GetHashCode ();
}
private static GLib.GType GType {
get { return GLib.GType.Pointer; }
}
#endregion
}
}

View file

@ -0,0 +1,24 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void SendMessageEventHandler(object o, SendMessageEventArgs args);
public class SendMessageEventArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPSession Session{
get {
return (Gst.RtspServer.RTSPSession) Args [0];
}
}
public IntPtr Message{
get {
return (IntPtr) Args [1];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void SessionRemovedHandler(object o, SessionRemovedArgs args);
public class SessionRemovedArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPSession Object{
get {
return (Gst.RtspServer.RTSPSession) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void SetParameterRequestHandler(object o, SetParameterRequestArgs args);
public class SetParameterRequestArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPContext Ctx{
get {
return (Gst.RtspServer.RTSPContext) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void SetupRequestHandler(object o, SetupRequestArgs args);
public class SetupRequestArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPContext Ctx{
get {
return (Gst.RtspServer.RTSPContext) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void TargetStateHandler(object o, TargetStateArgs args);
public class TargetStateArgs : GLib.SignalArgs {
public int Object{
get {
return (int) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.RtspServer {
using System;
public delegate void TeardownRequestHandler(object o, TeardownRequestArgs args);
public class TeardownRequestArgs : GLib.SignalArgs {
public Gst.RtspServer.RTSPContext Ctx{
get {
return (Gst.RtspServer.RTSPContext) Args [0];
}
}
}
}

View file

@ -83,6 +83,24 @@ namespace GtkSharp.GstreamerSharp {
GLib.GType.Register (Gst.WebRTC.WebRTCRTPSender.GType, typeof (Gst.WebRTC.WebRTCRTPSender));
GLib.GType.Register (Gst.WebRTC.WebRTCRTPTransceiver.GType, typeof (Gst.WebRTC.WebRTCRTPTransceiver));
GLib.GType.Register (Gst.WebRTC.WebRTCSCTPTransport.GType, typeof (Gst.WebRTC.WebRTCSCTPTransport));
GLib.GType.Register (Gst.RtspServer.RTSPAddressPool.GType, typeof (Gst.RtspServer.RTSPAddressPool));
GLib.GType.Register (Gst.RtspServer.RTSPAuth.GType, typeof (Gst.RtspServer.RTSPAuth));
GLib.GType.Register (Gst.RtspServer.RTSPClient.GType, typeof (Gst.RtspServer.RTSPClient));
GLib.GType.Register (Gst.RtspServer.RTSPMedia.GType, typeof (Gst.RtspServer.RTSPMedia));
GLib.GType.Register (Gst.RtspServer.RTSPMediaFactory.GType, typeof (Gst.RtspServer.RTSPMediaFactory));
GLib.GType.Register (Gst.RtspServer.RTSPMediaFactoryURI.GType, typeof (Gst.RtspServer.RTSPMediaFactoryURI));
GLib.GType.Register (Gst.RtspServer.RTSPMountPoints.GType, typeof (Gst.RtspServer.RTSPMountPoints));
GLib.GType.Register (Gst.RtspServer.RTSPOnvifClient.GType, typeof (Gst.RtspServer.RTSPOnvifClient));
GLib.GType.Register (Gst.RtspServer.RTSPOnvifMedia.GType, typeof (Gst.RtspServer.RTSPOnvifMedia));
GLib.GType.Register (Gst.RtspServer.RTSPOnvifMediaFactory.GType, typeof (Gst.RtspServer.RTSPOnvifMediaFactory));
GLib.GType.Register (Gst.RtspServer.RTSPOnvifServer.GType, typeof (Gst.RtspServer.RTSPOnvifServer));
GLib.GType.Register (Gst.RtspServer.RTSPServer.GType, typeof (Gst.RtspServer.RTSPServer));
GLib.GType.Register (Gst.RtspServer.RTSPSession.GType, typeof (Gst.RtspServer.RTSPSession));
GLib.GType.Register (Gst.RtspServer.RTSPSessionMedia.GType, typeof (Gst.RtspServer.RTSPSessionMedia));
GLib.GType.Register (Gst.RtspServer.RTSPSessionPool.GType, typeof (Gst.RtspServer.RTSPSessionPool));
GLib.GType.Register (Gst.RtspServer.RTSPStream.GType, typeof (Gst.RtspServer.RTSPStream));
GLib.GType.Register (Gst.RtspServer.RTSPStreamTransport.GType, typeof (Gst.RtspServer.RTSPStreamTransport));
GLib.GType.Register (Gst.RtspServer.RTSPThreadPool.GType, typeof (Gst.RtspServer.RTSPThreadPool));
}
}
}

View file

@ -22,6 +22,7 @@
#include <gst/video/gstvideoaffinetransformationmeta.h>
#include <gst/net/gstnetcontrolmessagemeta.h>
#include <gst/webrtc/webrtc.h>
#include <gst/rtsp-server/rtsp-server.h>
int main (int argc, char *argv[]) {
g_print("\"sizeof(GstAllocatorClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstAllocatorClass));
@ -1039,5 +1040,138 @@ int main (int argc, char *argv[]) {
g_print("\"GstWebRTCICETransport.gathering_state\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCICETransport, gathering_state));
g_print("\"GstWebRTCICETransport.src\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCICETransport, src));
g_print("\"GstWebRTCICETransport.sink\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstWebRTCICETransport, sink));
g_print("\"sizeof(GstRTSPAddressPoolClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPAddressPoolClass));
g_print("\"sizeof(GstRTSPAddressPool)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPAddressPool));
g_print("\"GstRTSPAddressPool.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPAddressPool, priv));
g_print("\"sizeof(GstRTSPAuthClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPAuthClass));
g_print("\"GstRTSPAuthClass.authenticate\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPAuthClass, authenticate));
g_print("\"GstRTSPAuthClass.check\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPAuthClass, check));
g_print("\"GstRTSPAuthClass.generate_authenticate_header\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPAuthClass, generate_authenticate_header));
g_print("\"GstRTSPAuthClass.accept_certificate\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPAuthClass, accept_certificate));
g_print("\"sizeof(GstRTSPAuth)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPAuth));
g_print("\"GstRTSPAuth.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPAuth, priv));
g_print("\"sizeof(GstRTSPClientClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPClientClass));
g_print("\"GstRTSPClientClass.create_sdp\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, create_sdp));
g_print("\"GstRTSPClientClass.configure_client_media\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, configure_client_media));
g_print("\"GstRTSPClientClass.configure_client_transport\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, configure_client_transport));
g_print("\"GstRTSPClientClass.params_set\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, params_set));
g_print("\"GstRTSPClientClass.params_get\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, params_get));
g_print("\"GstRTSPClientClass.make_path_from_uri\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, make_path_from_uri));
g_print("\"GstRTSPClientClass.adjust_play_mode\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, adjust_play_mode));
g_print("\"GstRTSPClientClass.adjust_play_response\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, adjust_play_response));
g_print("\"GstRTSPClientClass.closed\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, closed));
g_print("\"GstRTSPClientClass.new_session\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, new_session));
g_print("\"GstRTSPClientClass.options_request\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, options_request));
g_print("\"GstRTSPClientClass.describe_request\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, describe_request));
g_print("\"GstRTSPClientClass.setup_request\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, setup_request));
g_print("\"GstRTSPClientClass.play_request\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, play_request));
g_print("\"GstRTSPClientClass.pause_request\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, pause_request));
g_print("\"GstRTSPClientClass.teardown_request\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, teardown_request));
g_print("\"GstRTSPClientClass.set_parameter_request\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, set_parameter_request));
g_print("\"GstRTSPClientClass.get_parameter_request\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, get_parameter_request));
g_print("\"GstRTSPClientClass.handle_response\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, handle_response));
g_print("\"GstRTSPClientClass.tunnel_http_response\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, tunnel_http_response));
g_print("\"GstRTSPClientClass.send_message\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, send_message));
g_print("\"GstRTSPClientClass.handle_sdp\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, handle_sdp));
g_print("\"GstRTSPClientClass.announce_request\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, announce_request));
g_print("\"GstRTSPClientClass.record_request\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, record_request));
g_print("\"GstRTSPClientClass.check_requirements\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, check_requirements));
g_print("\"GstRTSPClientClass.pre_options_request\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, pre_options_request));
g_print("\"GstRTSPClientClass.pre_describe_request\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, pre_describe_request));
g_print("\"GstRTSPClientClass.pre_setup_request\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, pre_setup_request));
g_print("\"GstRTSPClientClass.pre_play_request\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, pre_play_request));
g_print("\"GstRTSPClientClass.pre_pause_request\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, pre_pause_request));
g_print("\"GstRTSPClientClass.pre_teardown_request\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, pre_teardown_request));
g_print("\"GstRTSPClientClass.pre_set_parameter_request\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, pre_set_parameter_request));
g_print("\"GstRTSPClientClass.pre_get_parameter_request\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, pre_get_parameter_request));
g_print("\"GstRTSPClientClass.pre_announce_request\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, pre_announce_request));
g_print("\"GstRTSPClientClass.pre_record_request\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, pre_record_request));
g_print("\"GstRTSPClientClass.adjust_error_code\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClientClass, adjust_error_code));
g_print("\"sizeof(GstRTSPClient)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPClient));
g_print("\"GstRTSPClient.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPClient, priv));
g_print("\"sizeof(GstRTSPMediaClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPMediaClass));
g_print("\"GstRTSPMediaClass.handle_message\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaClass, handle_message));
g_print("\"GstRTSPMediaClass.prepare\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaClass, prepare));
g_print("\"GstRTSPMediaClass.unprepare\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaClass, unprepare));
g_print("\"GstRTSPMediaClass.suspend\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaClass, suspend));
g_print("\"GstRTSPMediaClass.unsuspend\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaClass, unsuspend));
g_print("\"GstRTSPMediaClass.convert_range\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaClass, convert_range));
g_print("\"GstRTSPMediaClass.query_position\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaClass, query_position));
g_print("\"GstRTSPMediaClass.query_stop\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaClass, query_stop));
g_print("\"GstRTSPMediaClass.create_rtpbin\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaClass, create_rtpbin));
g_print("\"GstRTSPMediaClass.setup_rtpbin\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaClass, setup_rtpbin));
g_print("\"GstRTSPMediaClass.setup_sdp\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaClass, setup_sdp));
g_print("\"GstRTSPMediaClass.new_stream\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaClass, new_stream));
g_print("\"GstRTSPMediaClass.removed_stream\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaClass, removed_stream));
g_print("\"GstRTSPMediaClass.prepared\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaClass, prepared));
g_print("\"GstRTSPMediaClass.unprepared\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaClass, unprepared));
g_print("\"GstRTSPMediaClass.target_state\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaClass, target_state));
g_print("\"GstRTSPMediaClass.new_state\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaClass, new_state));
g_print("\"GstRTSPMediaClass.handle_sdp\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaClass, handle_sdp));
g_print("\"sizeof(GstRTSPMedia)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPMedia));
g_print("\"GstRTSPMedia.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMedia, priv));
g_print("\"sizeof(GstRTSPMediaFactoryClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPMediaFactoryClass));
g_print("\"GstRTSPMediaFactoryClass.gen_key\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaFactoryClass, gen_key));
g_print("\"GstRTSPMediaFactoryClass.create_element\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaFactoryClass, create_element));
g_print("\"GstRTSPMediaFactoryClass.construct\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaFactoryClass, construct));
g_print("\"GstRTSPMediaFactoryClass.create_pipeline\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaFactoryClass, create_pipeline));
g_print("\"GstRTSPMediaFactoryClass.configure\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaFactoryClass, configure));
g_print("\"GstRTSPMediaFactoryClass.media_constructed\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaFactoryClass, media_constructed));
g_print("\"GstRTSPMediaFactoryClass.media_configure\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaFactoryClass, media_configure));
g_print("\"sizeof(GstRTSPMediaFactory)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPMediaFactory));
g_print("\"GstRTSPMediaFactory.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaFactory, priv));
g_print("\"sizeof(GstRTSPMediaFactoryURIClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPMediaFactoryURIClass));
g_print("\"sizeof(GstRTSPMediaFactoryURI)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPMediaFactoryURI));
g_print("\"GstRTSPMediaFactoryURI.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMediaFactoryURI, priv));
g_print("\"sizeof(GstRTSPMountPointsClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPMountPointsClass));
g_print("\"GstRTSPMountPointsClass.make_path\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMountPointsClass, make_path));
g_print("\"sizeof(GstRTSPMountPoints)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPMountPoints));
g_print("\"GstRTSPMountPoints.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPMountPoints, priv));
g_print("\"sizeof(GstRTSPOnvifClientClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPOnvifClientClass));
g_print("\"sizeof(GstRTSPOnvifClient)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPOnvifClient));
g_print("\"sizeof(GstRTSPOnvifMediaClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPOnvifMediaClass));
g_print("\"sizeof(GstRTSPOnvifMedia)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPOnvifMedia));
g_print("\"GstRTSPOnvifMedia.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPOnvifMedia, priv));
g_print("\"sizeof(GstRTSPOnvifMediaFactoryClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPOnvifMediaFactoryClass));
g_print("\"GstRTSPOnvifMediaFactoryClass.has_backchannel_support\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPOnvifMediaFactoryClass, has_backchannel_support));
g_print("\"sizeof(GstRTSPOnvifMediaFactory)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPOnvifMediaFactory));
g_print("\"GstRTSPOnvifMediaFactory.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPOnvifMediaFactory, priv));
g_print("\"sizeof(GstRTSPOnvifServerClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPOnvifServerClass));
g_print("\"sizeof(GstRTSPOnvifServer)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPOnvifServer));
g_print("\"sizeof(GstRTSPServerClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPServerClass));
g_print("\"GstRTSPServerClass.create_client\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPServerClass, create_client));
g_print("\"GstRTSPServerClass.client_connected\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPServerClass, client_connected));
g_print("\"sizeof(GstRTSPServer)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPServer));
g_print("\"GstRTSPServer.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPServer, priv));
g_print("\"sizeof(GstRTSPSessionClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPSessionClass));
g_print("\"sizeof(GstRTSPSession)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPSession));
g_print("\"GstRTSPSession.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPSession, priv));
g_print("\"sizeof(GstRTSPSessionMediaClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPSessionMediaClass));
g_print("\"sizeof(GstRTSPSessionMedia)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPSessionMedia));
g_print("\"GstRTSPSessionMedia.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPSessionMedia, priv));
g_print("\"sizeof(GstRTSPSessionPoolClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPSessionPoolClass));
g_print("\"GstRTSPSessionPoolClass.create_session_id\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPSessionPoolClass, create_session_id));
g_print("\"GstRTSPSessionPoolClass.create_session\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPSessionPoolClass, create_session));
g_print("\"GstRTSPSessionPoolClass.session_removed\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPSessionPoolClass, session_removed));
g_print("\"sizeof(GstRTSPSessionPool)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPSessionPool));
g_print("\"GstRTSPSessionPool.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPSessionPool, priv));
g_print("\"sizeof(GstRTSPStreamClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPStreamClass));
g_print("\"sizeof(GstRTSPStream)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPStream));
g_print("\"GstRTSPStream.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPStream, priv));
g_print("\"sizeof(GstRTSPStreamTransportClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPStreamTransportClass));
g_print("\"sizeof(GstRTSPStreamTransport)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPStreamTransport));
g_print("\"GstRTSPStreamTransport.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPStreamTransport, priv));
g_print("\"sizeof(GstRTSPThreadPoolClass)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPThreadPoolClass));
g_print("\"GstRTSPThreadPoolClass.pool\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPThreadPoolClass, pool));
g_print("\"GstRTSPThreadPoolClass.get_thread\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPThreadPoolClass, get_thread));
g_print("\"GstRTSPThreadPoolClass.configure_thread\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPThreadPoolClass, configure_thread));
g_print("\"GstRTSPThreadPoolClass.thread_enter\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPThreadPoolClass, thread_enter));
g_print("\"GstRTSPThreadPoolClass.thread_leave\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPThreadPoolClass, thread_leave));
g_print("\"sizeof(GstRTSPThreadPool)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPThreadPool));
g_print("\"GstRTSPThreadPool.priv\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPThreadPool, priv));
g_print("\"sizeof(GstRTSPThread)\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) sizeof(GstRTSPThread));
g_print("\"GstRTSPThread.type\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPThread, type));
g_print("\"GstRTSPThread.context\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPThread, context));
g_print("\"GstRTSPThread.loop\": \"%" G_GUINT64_FORMAT "\"\n", (guint64) G_STRUCT_OFFSET(GstRTSPThread, loop));
return 0;
}

View file

@ -1033,6 +1033,139 @@ namespace AbiTester {
Console.WriteLine("\"GstWebRTCICETransport.gathering_state\": \"" + Gst.WebRTC.WebRTCICETransport.abi_info.GetFieldOffset("gathering_state") + "\"");
Console.WriteLine("\"GstWebRTCICETransport.src\": \"" + Gst.WebRTC.WebRTCICETransport.abi_info.GetFieldOffset("src") + "\"");
Console.WriteLine("\"GstWebRTCICETransport.sink\": \"" + Gst.WebRTC.WebRTCICETransport.abi_info.GetFieldOffset("sink") + "\"");
Console.WriteLine("\"sizeof(GstRTSPAddressPoolClass)\": \"" + Gst.RtspServer.RTSPAddressPool.class_abi.Size + "\"");
Console.WriteLine("\"sizeof(GstRTSPAddressPool)\": \"" + Gst.RtspServer.RTSPAddressPool.abi_info.Size + "\"");
Console.WriteLine("\"GstRTSPAddressPool.priv\": \"" + Gst.RtspServer.RTSPAddressPool.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GstRTSPAuthClass)\": \"" + Gst.RtspServer.RTSPAuth.class_abi.Size + "\"");
Console.WriteLine("\"GstRTSPAuthClass.authenticate\": \"" + Gst.RtspServer.RTSPAuth.class_abi.GetFieldOffset("authenticate") + "\"");
Console.WriteLine("\"GstRTSPAuthClass.check\": \"" + Gst.RtspServer.RTSPAuth.class_abi.GetFieldOffset("check") + "\"");
Console.WriteLine("\"GstRTSPAuthClass.generate_authenticate_header\": \"" + Gst.RtspServer.RTSPAuth.class_abi.GetFieldOffset("generate_authenticate_header") + "\"");
Console.WriteLine("\"GstRTSPAuthClass.accept_certificate\": \"" + Gst.RtspServer.RTSPAuth.class_abi.GetFieldOffset("accept_certificate") + "\"");
Console.WriteLine("\"sizeof(GstRTSPAuth)\": \"" + Gst.RtspServer.RTSPAuth.abi_info.Size + "\"");
Console.WriteLine("\"GstRTSPAuth.priv\": \"" + Gst.RtspServer.RTSPAuth.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GstRTSPClientClass)\": \"" + Gst.RtspServer.RTSPClient.class_abi.Size + "\"");
Console.WriteLine("\"GstRTSPClientClass.create_sdp\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("create_sdp") + "\"");
Console.WriteLine("\"GstRTSPClientClass.configure_client_media\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("configure_client_media") + "\"");
Console.WriteLine("\"GstRTSPClientClass.configure_client_transport\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("configure_client_transport") + "\"");
Console.WriteLine("\"GstRTSPClientClass.params_set\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("params_set") + "\"");
Console.WriteLine("\"GstRTSPClientClass.params_get\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("params_get") + "\"");
Console.WriteLine("\"GstRTSPClientClass.make_path_from_uri\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("make_path_from_uri") + "\"");
Console.WriteLine("\"GstRTSPClientClass.adjust_play_mode\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("adjust_play_mode") + "\"");
Console.WriteLine("\"GstRTSPClientClass.adjust_play_response\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("adjust_play_response") + "\"");
Console.WriteLine("\"GstRTSPClientClass.closed\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("closed") + "\"");
Console.WriteLine("\"GstRTSPClientClass.new_session\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("new_session") + "\"");
Console.WriteLine("\"GstRTSPClientClass.options_request\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("options_request") + "\"");
Console.WriteLine("\"GstRTSPClientClass.describe_request\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("describe_request") + "\"");
Console.WriteLine("\"GstRTSPClientClass.setup_request\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("setup_request") + "\"");
Console.WriteLine("\"GstRTSPClientClass.play_request\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("play_request") + "\"");
Console.WriteLine("\"GstRTSPClientClass.pause_request\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("pause_request") + "\"");
Console.WriteLine("\"GstRTSPClientClass.teardown_request\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("teardown_request") + "\"");
Console.WriteLine("\"GstRTSPClientClass.set_parameter_request\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("set_parameter_request") + "\"");
Console.WriteLine("\"GstRTSPClientClass.get_parameter_request\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("get_parameter_request") + "\"");
Console.WriteLine("\"GstRTSPClientClass.handle_response\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("handle_response") + "\"");
Console.WriteLine("\"GstRTSPClientClass.tunnel_http_response\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("tunnel_http_response") + "\"");
Console.WriteLine("\"GstRTSPClientClass.send_message\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("send_message") + "\"");
Console.WriteLine("\"GstRTSPClientClass.handle_sdp\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("handle_sdp") + "\"");
Console.WriteLine("\"GstRTSPClientClass.announce_request\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("announce_request") + "\"");
Console.WriteLine("\"GstRTSPClientClass.record_request\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("record_request") + "\"");
Console.WriteLine("\"GstRTSPClientClass.check_requirements\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("check_requirements") + "\"");
Console.WriteLine("\"GstRTSPClientClass.pre_options_request\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("pre_options_request") + "\"");
Console.WriteLine("\"GstRTSPClientClass.pre_describe_request\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("pre_describe_request") + "\"");
Console.WriteLine("\"GstRTSPClientClass.pre_setup_request\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("pre_setup_request") + "\"");
Console.WriteLine("\"GstRTSPClientClass.pre_play_request\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("pre_play_request") + "\"");
Console.WriteLine("\"GstRTSPClientClass.pre_pause_request\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("pre_pause_request") + "\"");
Console.WriteLine("\"GstRTSPClientClass.pre_teardown_request\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("pre_teardown_request") + "\"");
Console.WriteLine("\"GstRTSPClientClass.pre_set_parameter_request\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("pre_set_parameter_request") + "\"");
Console.WriteLine("\"GstRTSPClientClass.pre_get_parameter_request\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("pre_get_parameter_request") + "\"");
Console.WriteLine("\"GstRTSPClientClass.pre_announce_request\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("pre_announce_request") + "\"");
Console.WriteLine("\"GstRTSPClientClass.pre_record_request\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("pre_record_request") + "\"");
Console.WriteLine("\"GstRTSPClientClass.adjust_error_code\": \"" + Gst.RtspServer.RTSPClient.class_abi.GetFieldOffset("adjust_error_code") + "\"");
Console.WriteLine("\"sizeof(GstRTSPClient)\": \"" + Gst.RtspServer.RTSPClient.abi_info.Size + "\"");
Console.WriteLine("\"GstRTSPClient.priv\": \"" + Gst.RtspServer.RTSPClient.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GstRTSPMediaClass)\": \"" + Gst.RtspServer.RTSPMedia.class_abi.Size + "\"");
Console.WriteLine("\"GstRTSPMediaClass.handle_message\": \"" + Gst.RtspServer.RTSPMedia.class_abi.GetFieldOffset("handle_message") + "\"");
Console.WriteLine("\"GstRTSPMediaClass.prepare\": \"" + Gst.RtspServer.RTSPMedia.class_abi.GetFieldOffset("prepare") + "\"");
Console.WriteLine("\"GstRTSPMediaClass.unprepare\": \"" + Gst.RtspServer.RTSPMedia.class_abi.GetFieldOffset("unprepare") + "\"");
Console.WriteLine("\"GstRTSPMediaClass.suspend\": \"" + Gst.RtspServer.RTSPMedia.class_abi.GetFieldOffset("suspend") + "\"");
Console.WriteLine("\"GstRTSPMediaClass.unsuspend\": \"" + Gst.RtspServer.RTSPMedia.class_abi.GetFieldOffset("unsuspend") + "\"");
Console.WriteLine("\"GstRTSPMediaClass.convert_range\": \"" + Gst.RtspServer.RTSPMedia.class_abi.GetFieldOffset("convert_range") + "\"");
Console.WriteLine("\"GstRTSPMediaClass.query_position\": \"" + Gst.RtspServer.RTSPMedia.class_abi.GetFieldOffset("query_position") + "\"");
Console.WriteLine("\"GstRTSPMediaClass.query_stop\": \"" + Gst.RtspServer.RTSPMedia.class_abi.GetFieldOffset("query_stop") + "\"");
Console.WriteLine("\"GstRTSPMediaClass.create_rtpbin\": \"" + Gst.RtspServer.RTSPMedia.class_abi.GetFieldOffset("create_rtpbin") + "\"");
Console.WriteLine("\"GstRTSPMediaClass.setup_rtpbin\": \"" + Gst.RtspServer.RTSPMedia.class_abi.GetFieldOffset("setup_rtpbin") + "\"");
Console.WriteLine("\"GstRTSPMediaClass.setup_sdp\": \"" + Gst.RtspServer.RTSPMedia.class_abi.GetFieldOffset("setup_sdp") + "\"");
Console.WriteLine("\"GstRTSPMediaClass.new_stream\": \"" + Gst.RtspServer.RTSPMedia.class_abi.GetFieldOffset("new_stream") + "\"");
Console.WriteLine("\"GstRTSPMediaClass.removed_stream\": \"" + Gst.RtspServer.RTSPMedia.class_abi.GetFieldOffset("removed_stream") + "\"");
Console.WriteLine("\"GstRTSPMediaClass.prepared\": \"" + Gst.RtspServer.RTSPMedia.class_abi.GetFieldOffset("prepared") + "\"");
Console.WriteLine("\"GstRTSPMediaClass.unprepared\": \"" + Gst.RtspServer.RTSPMedia.class_abi.GetFieldOffset("unprepared") + "\"");
Console.WriteLine("\"GstRTSPMediaClass.target_state\": \"" + Gst.RtspServer.RTSPMedia.class_abi.GetFieldOffset("target_state") + "\"");
Console.WriteLine("\"GstRTSPMediaClass.new_state\": \"" + Gst.RtspServer.RTSPMedia.class_abi.GetFieldOffset("new_state") + "\"");
Console.WriteLine("\"GstRTSPMediaClass.handle_sdp\": \"" + Gst.RtspServer.RTSPMedia.class_abi.GetFieldOffset("handle_sdp") + "\"");
Console.WriteLine("\"sizeof(GstRTSPMedia)\": \"" + Gst.RtspServer.RTSPMedia.abi_info.Size + "\"");
Console.WriteLine("\"GstRTSPMedia.priv\": \"" + Gst.RtspServer.RTSPMedia.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GstRTSPMediaFactoryClass)\": \"" + Gst.RtspServer.RTSPMediaFactory.class_abi.Size + "\"");
Console.WriteLine("\"GstRTSPMediaFactoryClass.gen_key\": \"" + Gst.RtspServer.RTSPMediaFactory.class_abi.GetFieldOffset("gen_key") + "\"");
Console.WriteLine("\"GstRTSPMediaFactoryClass.create_element\": \"" + Gst.RtspServer.RTSPMediaFactory.class_abi.GetFieldOffset("create_element") + "\"");
Console.WriteLine("\"GstRTSPMediaFactoryClass.construct\": \"" + Gst.RtspServer.RTSPMediaFactory.class_abi.GetFieldOffset("construct") + "\"");
Console.WriteLine("\"GstRTSPMediaFactoryClass.create_pipeline\": \"" + Gst.RtspServer.RTSPMediaFactory.class_abi.GetFieldOffset("create_pipeline") + "\"");
Console.WriteLine("\"GstRTSPMediaFactoryClass.configure\": \"" + Gst.RtspServer.RTSPMediaFactory.class_abi.GetFieldOffset("configure") + "\"");
Console.WriteLine("\"GstRTSPMediaFactoryClass.media_constructed\": \"" + Gst.RtspServer.RTSPMediaFactory.class_abi.GetFieldOffset("media_constructed") + "\"");
Console.WriteLine("\"GstRTSPMediaFactoryClass.media_configure\": \"" + Gst.RtspServer.RTSPMediaFactory.class_abi.GetFieldOffset("media_configure") + "\"");
Console.WriteLine("\"sizeof(GstRTSPMediaFactory)\": \"" + Gst.RtspServer.RTSPMediaFactory.abi_info.Size + "\"");
Console.WriteLine("\"GstRTSPMediaFactory.priv\": \"" + Gst.RtspServer.RTSPMediaFactory.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GstRTSPMediaFactoryURIClass)\": \"" + Gst.RtspServer.RTSPMediaFactoryURI.class_abi.Size + "\"");
Console.WriteLine("\"sizeof(GstRTSPMediaFactoryURI)\": \"" + Gst.RtspServer.RTSPMediaFactoryURI.abi_info.Size + "\"");
Console.WriteLine("\"GstRTSPMediaFactoryURI.priv\": \"" + Gst.RtspServer.RTSPMediaFactoryURI.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GstRTSPMountPointsClass)\": \"" + Gst.RtspServer.RTSPMountPoints.class_abi.Size + "\"");
Console.WriteLine("\"GstRTSPMountPointsClass.make_path\": \"" + Gst.RtspServer.RTSPMountPoints.class_abi.GetFieldOffset("make_path") + "\"");
Console.WriteLine("\"sizeof(GstRTSPMountPoints)\": \"" + Gst.RtspServer.RTSPMountPoints.abi_info.Size + "\"");
Console.WriteLine("\"GstRTSPMountPoints.priv\": \"" + Gst.RtspServer.RTSPMountPoints.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GstRTSPOnvifClientClass)\": \"" + Gst.RtspServer.RTSPOnvifClient.class_abi.Size + "\"");
Console.WriteLine("\"sizeof(GstRTSPOnvifClient)\": \"" + Gst.RtspServer.RTSPOnvifClient.abi_info.Size + "\"");
Console.WriteLine("\"sizeof(GstRTSPOnvifMediaClass)\": \"" + Gst.RtspServer.RTSPOnvifMedia.class_abi.Size + "\"");
Console.WriteLine("\"sizeof(GstRTSPOnvifMedia)\": \"" + Gst.RtspServer.RTSPOnvifMedia.abi_info.Size + "\"");
Console.WriteLine("\"GstRTSPOnvifMedia.priv\": \"" + Gst.RtspServer.RTSPOnvifMedia.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GstRTSPOnvifMediaFactoryClass)\": \"" + Gst.RtspServer.RTSPOnvifMediaFactory.class_abi.Size + "\"");
Console.WriteLine("\"GstRTSPOnvifMediaFactoryClass.has_backchannel_support\": \"" + Gst.RtspServer.RTSPOnvifMediaFactory.class_abi.GetFieldOffset("has_backchannel_support") + "\"");
Console.WriteLine("\"sizeof(GstRTSPOnvifMediaFactory)\": \"" + Gst.RtspServer.RTSPOnvifMediaFactory.abi_info.Size + "\"");
Console.WriteLine("\"GstRTSPOnvifMediaFactory.priv\": \"" + Gst.RtspServer.RTSPOnvifMediaFactory.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GstRTSPOnvifServerClass)\": \"" + Gst.RtspServer.RTSPOnvifServer.class_abi.Size + "\"");
Console.WriteLine("\"sizeof(GstRTSPOnvifServer)\": \"" + Gst.RtspServer.RTSPOnvifServer.abi_info.Size + "\"");
Console.WriteLine("\"sizeof(GstRTSPServerClass)\": \"" + Gst.RtspServer.RTSPServer.class_abi.Size + "\"");
Console.WriteLine("\"GstRTSPServerClass.create_client\": \"" + Gst.RtspServer.RTSPServer.class_abi.GetFieldOffset("create_client") + "\"");
Console.WriteLine("\"GstRTSPServerClass.client_connected\": \"" + Gst.RtspServer.RTSPServer.class_abi.GetFieldOffset("client_connected") + "\"");
Console.WriteLine("\"sizeof(GstRTSPServer)\": \"" + Gst.RtspServer.RTSPServer.abi_info.Size + "\"");
Console.WriteLine("\"GstRTSPServer.priv\": \"" + Gst.RtspServer.RTSPServer.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GstRTSPSessionClass)\": \"" + Gst.RtspServer.RTSPSession.class_abi.Size + "\"");
Console.WriteLine("\"sizeof(GstRTSPSession)\": \"" + Gst.RtspServer.RTSPSession.abi_info.Size + "\"");
Console.WriteLine("\"GstRTSPSession.priv\": \"" + Gst.RtspServer.RTSPSession.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GstRTSPSessionMediaClass)\": \"" + Gst.RtspServer.RTSPSessionMedia.class_abi.Size + "\"");
Console.WriteLine("\"sizeof(GstRTSPSessionMedia)\": \"" + Gst.RtspServer.RTSPSessionMedia.abi_info.Size + "\"");
Console.WriteLine("\"GstRTSPSessionMedia.priv\": \"" + Gst.RtspServer.RTSPSessionMedia.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GstRTSPSessionPoolClass)\": \"" + Gst.RtspServer.RTSPSessionPool.class_abi.Size + "\"");
Console.WriteLine("\"GstRTSPSessionPoolClass.create_session_id\": \"" + Gst.RtspServer.RTSPSessionPool.class_abi.GetFieldOffset("create_session_id") + "\"");
Console.WriteLine("\"GstRTSPSessionPoolClass.create_session\": \"" + Gst.RtspServer.RTSPSessionPool.class_abi.GetFieldOffset("create_session") + "\"");
Console.WriteLine("\"GstRTSPSessionPoolClass.session_removed\": \"" + Gst.RtspServer.RTSPSessionPool.class_abi.GetFieldOffset("session_removed") + "\"");
Console.WriteLine("\"sizeof(GstRTSPSessionPool)\": \"" + Gst.RtspServer.RTSPSessionPool.abi_info.Size + "\"");
Console.WriteLine("\"GstRTSPSessionPool.priv\": \"" + Gst.RtspServer.RTSPSessionPool.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GstRTSPStreamClass)\": \"" + Gst.RtspServer.RTSPStream.class_abi.Size + "\"");
Console.WriteLine("\"sizeof(GstRTSPStream)\": \"" + Gst.RtspServer.RTSPStream.abi_info.Size + "\"");
Console.WriteLine("\"GstRTSPStream.priv\": \"" + Gst.RtspServer.RTSPStream.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GstRTSPStreamTransportClass)\": \"" + Gst.RtspServer.RTSPStreamTransport.class_abi.Size + "\"");
Console.WriteLine("\"sizeof(GstRTSPStreamTransport)\": \"" + Gst.RtspServer.RTSPStreamTransport.abi_info.Size + "\"");
Console.WriteLine("\"GstRTSPStreamTransport.priv\": \"" + Gst.RtspServer.RTSPStreamTransport.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GstRTSPThreadPoolClass)\": \"" + Gst.RtspServer.RTSPThreadPool.class_abi.Size + "\"");
Console.WriteLine("\"GstRTSPThreadPoolClass.pool\": \"" + Gst.RtspServer.RTSPThreadPool.class_abi.GetFieldOffset("pool") + "\"");
Console.WriteLine("\"GstRTSPThreadPoolClass.get_thread\": \"" + Gst.RtspServer.RTSPThreadPool.class_abi.GetFieldOffset("get_thread") + "\"");
Console.WriteLine("\"GstRTSPThreadPoolClass.configure_thread\": \"" + Gst.RtspServer.RTSPThreadPool.class_abi.GetFieldOffset("configure_thread") + "\"");
Console.WriteLine("\"GstRTSPThreadPoolClass.thread_enter\": \"" + Gst.RtspServer.RTSPThreadPool.class_abi.GetFieldOffset("thread_enter") + "\"");
Console.WriteLine("\"GstRTSPThreadPoolClass.thread_leave\": \"" + Gst.RtspServer.RTSPThreadPool.class_abi.GetFieldOffset("thread_leave") + "\"");
Console.WriteLine("\"sizeof(GstRTSPThreadPool)\": \"" + Gst.RtspServer.RTSPThreadPool.abi_info.Size + "\"");
Console.WriteLine("\"GstRTSPThreadPool.priv\": \"" + Gst.RtspServer.RTSPThreadPool.abi_info.GetFieldOffset("priv") + "\"");
Console.WriteLine("\"sizeof(GstRTSPThread)\": \"" + Gst.RtspServer.RTSPThread.abi_info.Size + "\"");
Console.WriteLine("\"GstRTSPThread.type\": \"" + Gst.RtspServer.RTSPThread.abi_info.GetFieldOffset("type") + "\"");
Console.WriteLine("\"GstRTSPThread.context\": \"" + Gst.RtspServer.RTSPThread.abi_info.GetFieldOffset("context") + "\"");
Console.WriteLine("\"GstRTSPThread.loop\": \"" + Gst.RtspServer.RTSPThread.abi_info.GetFieldOffset("loop") + "\"");
}
}
}

Some files were not shown because too many files have changed in this diff Show more