MediaDiscovererDescription.cs 1.24 KB
Newer Older
Martin Finkel's avatar
Martin Finkel committed
1 2 3 4 5 6
using System;

namespace LibVLCSharp.Shared
{
    internal readonly struct MediaDiscovererDescriptionStructure
    {
7 8 9 10 11 12 13
        internal MediaDiscovererDescriptionStructure(IntPtr name, IntPtr longName, MediaDiscovererCategory category)
        {
            Name = name;
            LongName = longName;
            Category = category;
        }

Martin Finkel's avatar
Martin Finkel committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
        internal readonly IntPtr Name;
        internal readonly IntPtr LongName;
        internal readonly MediaDiscovererCategory Category;
    }

    /// <summary>
    /// Description of a media discoverer
    /// </summary>
    public readonly struct MediaDiscovererDescription
    {
        internal MediaDiscovererDescription(string name, string longName, MediaDiscovererCategory category)
        {
            Name = name;
            LongName = longName;
            Category = category;
        }

        /// <summary>
        /// Media discoverer description name
        /// </summary>
        public string Name { get; }

        /// <summary>
        /// Media discoverer description long name
        /// </summary>
        public string LongName { get; }

        /// <summary>
        /// Media discoverer category
        /// </summary>
        public MediaDiscovererCategory Category { get; }
    }
}