mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
Version: Reformat
This commit is contained in:
parent
1ce354b51f
commit
a53cb1c911
1 changed files with 47 additions and 44 deletions
|
@ -25,57 +25,60 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Gst {
|
namespace Gst
|
||||||
public static class Version {
|
{
|
||||||
private static uint major;
|
public static class Version
|
||||||
private static uint minor;
|
{
|
||||||
private static uint micro;
|
private static uint major;
|
||||||
private static uint nano;
|
private static uint minor;
|
||||||
private static string version_string;
|
private static uint micro;
|
||||||
|
private static uint nano;
|
||||||
|
private static string version_string;
|
||||||
|
|
||||||
static Version() {
|
static Version ()
|
||||||
gst_version (out major, out minor, out micro, out nano);
|
{
|
||||||
}
|
gst_version (out major, out minor, out micro, out nano);
|
||||||
|
}
|
||||||
|
|
||||||
public static string Description {
|
public static string Description {
|
||||||
get {
|
get {
|
||||||
if (version_string == null) {
|
if (version_string == null) {
|
||||||
IntPtr version_string_ptr = gst_version_string();
|
IntPtr version_string_ptr = gst_version_string ();
|
||||||
version_string = GLib.Marshaller.Utf8PtrToString (version_string_ptr);
|
version_string = GLib.Marshaller.Utf8PtrToString (version_string_ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
return version_string;
|
return version_string;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static uint Major {
|
public static uint Major {
|
||||||
get {
|
get {
|
||||||
return major;
|
return major;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static uint Minor {
|
public static uint Minor {
|
||||||
get {
|
get {
|
||||||
return minor;
|
return minor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static uint Micro {
|
public static uint Micro {
|
||||||
get {
|
get {
|
||||||
return micro;
|
return micro;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static uint Nano {
|
public static uint Nano {
|
||||||
get {
|
get {
|
||||||
return nano;
|
return nano;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[DllImport ("libgstreamer-1.0-0.dll") ]
|
[DllImport ("libgstreamer-1.0-0.dll")]
|
||||||
private static extern void gst_version (out uint major, out uint minor, out uint micro, out uint nano);
|
private static extern void gst_version (out uint major, out uint minor, out uint micro, out uint nano);
|
||||||
|
|
||||||
[DllImport ("libgstreamer-1.0-0.dll") ]
|
[DllImport ("libgstreamer-1.0-0.dll")]
|
||||||
private static extern IntPtr gst_version_string();
|
private static extern IntPtr gst_version_string ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue