Ryujinx-GtkSharp/gst/Application.cs
Alp Toker 15589b1c83 2002-12-20 Alp Toker <alp@atoker.com>
* api/gst-api.xml: Make Gst# link to libgstreamer.so as per pkg-config
	--libs gstreamer
	* sources/gtk-sharp.sources: ditto

svn path=/trunk/gtk-sharp/; revision=9791
2002-12-20 05:44:17 +00:00

36 lines
592 B
C#
Executable File

//
// Application.cs - Gst initialization
//
// Author: Alp Toker <alp@atoker.com>
//
// 2002 (C) Copyright, Alp Toker
//
namespace Gst {
using System;
using System.Runtime.InteropServices;
public class Application {
[DllImport("gstreamer")]
static extern void gst_init (int argc, IntPtr argv);
public static void Init ()
{
gst_init (0, new IntPtr(0));
}
[DllImport("gstreamer")]
static extern void gst_init (ref int argc, ref String[] argv);
public static void Init (ref string[] args)
{
int argc = args.Length;
gst_init (ref argc, ref args);
}
}
}