Server/CecClient.cs
author Stephane Lenclud
Thu, 14 Jul 2016 19:25:52 +0200
changeset 200 663c1ef0de59
parent 167 d2295c186ce1
child 201 6213f42f1983
permissions -rw-r--r--
Updating libcec to 6d68d21243aa92862592435e8396b4280ea46c3f.
Stephane@161
     1
/*
Stephane@161
     2
 * This file is part of the libCEC(R) library.
Stephane@161
     3
 *
Stephane@161
     4
 * libCEC(R) is Copyright (C) 2011-2013 Pulse-Eight Limited.    All rights reserved.
Stephane@161
     5
 * libCEC(R) is an original work, containing original code.
Stephane@161
     6
 *
Stephane@161
     7
 * libCEC(R) is a trademark of Pulse-Eight Limited.
Stephane@161
     8
 *
Stephane@161
     9
 * This program is dual-licensed; you can redistribute it and/or modify
Stephane@161
    10
 * it under the terms of the GNU General Public License as published by
Stephane@161
    11
 * the Free Software Foundation; either version 2 of the License, or
Stephane@161
    12
 * (at your option) any later version.
Stephane@161
    13
 *
Stephane@161
    14
 * This program is distributed in the hope that it will be useful,
Stephane@161
    15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Stephane@161
    16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.    See the
Stephane@161
    17
 * GNU General Public License for more details.
Stephane@161
    18
 *
Stephane@161
    19
 * You should have received a copy of the GNU General Public License
Stephane@161
    20
 * along with this program; if not, write to the Free Software
Stephane@161
    21
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Stephane@161
    22
 *
Stephane@161
    23
 *
Stephane@161
    24
 * Alternatively, you can license this library under a commercial license,
Stephane@161
    25
 * please contact Pulse-Eight Licensing for more information.
Stephane@161
    26
 *
Stephane@161
    27
 * For more information contact:
Stephane@161
    28
 * Pulse-Eight Licensing             <license@pulse-eight.com>
Stephane@161
    29
 *         http://www.pulse-eight.com/
Stephane@161
    30
 *         http://www.pulse-eight.net/
Stephane@161
    31
 */
Stephane@161
    32
Stephane@161
    33
using System;
Stephane@161
    34
using System.Text;
Stephane@161
    35
using CecSharp;
Stephane@161
    36
Stephane@161
    37
namespace Cec
Stephane@161
    38
{
Stephane@161
    39
    class Client : CecCallbackMethods
Stephane@161
    40
    {
StephaneLenclud@167
    41
        /// <summary>
StephaneLenclud@167
    42
        /// 
StephaneLenclud@167
    43
        /// </summary>
StephaneLenclud@167
    44
        /// <param name="aDeviceName"></param>
StephaneLenclud@167
    45
        /// <param name="aHdmiPort"></param>
StephaneLenclud@167
    46
        public Client(string aDeviceName, byte aHdmiPort)
Stephane@161
    47
        {
Stephane@161
    48
            Config = new LibCECConfiguration();
Stephane@161
    49
            Config.DeviceTypes.Types[0] = CecDeviceType.Tv;
StephaneLenclud@167
    50
            Config.DeviceName = aDeviceName;
StephaneLenclud@167
    51
            Config.HDMIPort = aHdmiPort;
Stephane@161
    52
            //Config.ClientVersion = LibCECConfiguration.CurrentVersion;
Stephane@161
    53
            Config.SetCallbacks(this);
Stephane@161
    54
            LogLevel = (int)CecLogLevel.All;
Stephane@161
    55
StephaneLenclud@167
    56
            iLib = new LibCecSharp(Config);
StephaneLenclud@167
    57
            iLib.InitVideoStandalone();
Stephane@161
    58
Stephane@161
    59
            //Console.WriteLine("CEC Parser created - libCEC version " + Lib.VersionToString(Config.ServerVersion));
Stephane@161
    60
            Console.WriteLine("CEC Parser created - libCEC version " + Config.ServerVersion);
Stephane@161
    61
        }
Stephane@161
    62
Stephane@200
    63
Stephane@200
    64
Stephane@200
    65
        public virtual int ReceiveAlert(CecAlert alert, CecParameter data)
Stephane@200
    66
        {
Stephane@200
    67
            return 1;
Stephane@200
    68
        }
Stephane@200
    69
Stephane@200
    70
        public virtual int ReceiveMenuStateChange(CecMenuState newVal)
Stephane@200
    71
        {
Stephane@200
    72
            return 1;
Stephane@200
    73
        }
Stephane@200
    74
Stephane@200
    75
        public virtual void SourceActivated(CecLogicalAddress logicalAddress, bool activated)
Stephane@200
    76
        {
Stephane@200
    77
            return;
Stephane@200
    78
        }
Stephane@200
    79
Stephane@161
    80
        public override int ReceiveCommand(CecCommand command)
Stephane@161
    81
        {
Stephane@161
    82
            return 1;
Stephane@161
    83
        }
Stephane@161
    84
Stephane@161
    85
        public override int ReceiveKeypress(CecKeypress key)
Stephane@161
    86
        {
Stephane@161
    87
            return 1;
Stephane@161
    88
        }
Stephane@161
    89
Stephane@161
    90
        public override int ReceiveLogMessage(CecLogMessage message)
Stephane@161
    91
        {
Stephane@161
    92
            if (((int)message.Level & LogLevel) == (int)message.Level)
Stephane@161
    93
            {
Stephane@161
    94
                string strLevel = "";
Stephane@161
    95
                switch (message.Level)
Stephane@161
    96
                {
Stephane@161
    97
                    case CecLogLevel.Error:
Stephane@161
    98
                        strLevel = "ERROR:     ";
Stephane@161
    99
                        break;
Stephane@161
   100
                    case CecLogLevel.Warning:
Stephane@161
   101
                        strLevel = "WARNING: ";
Stephane@161
   102
                        break;
Stephane@161
   103
                    case CecLogLevel.Notice:
Stephane@161
   104
                        strLevel = "NOTICE:    ";
Stephane@161
   105
                        break;
Stephane@161
   106
                    case CecLogLevel.Traffic:
Stephane@161
   107
                        strLevel = "TRAFFIC: ";
Stephane@161
   108
                        break;
Stephane@161
   109
                    case CecLogLevel.Debug:
Stephane@161
   110
                        strLevel = "DEBUG:     ";
Stephane@161
   111
                        break;
Stephane@161
   112
                    default:
Stephane@161
   113
                        break;
Stephane@161
   114
                }
Stephane@161
   115
                string strLog = string.Format("{0} {1,16} {2}", strLevel, message.Time, message.Message);
Stephane@161
   116
                Console.WriteLine(strLog);
Stephane@161
   117
            }
Stephane@161
   118
            return 1;
Stephane@161
   119
        }
Stephane@161
   120
Stephane@161
   121
        /// <summary>
Stephane@161
   122
        /// 
Stephane@161
   123
        /// </summary>
Stephane@161
   124
        /// <param name="timeout"></param>
Stephane@161
   125
        /// <returns></returns>
Stephane@161
   126
        public bool Connect(int timeout)
Stephane@161
   127
        {
StephaneLenclud@167
   128
            CecAdapter[] adapters = iLib.FindAdapters(string.Empty);
Stephane@161
   129
            if (adapters.Length > 0)
Stephane@161
   130
                return Connect(adapters[0].ComPort, timeout);
Stephane@161
   131
            else
Stephane@161
   132
            {
Stephane@161
   133
                Console.WriteLine("Did not find any CEC adapters");
Stephane@161
   134
                return false;
Stephane@161
   135
            }
Stephane@161
   136
        }
Stephane@161
   137
Stephane@161
   138
        public bool Connect(string port, int timeout)
Stephane@161
   139
        {
StephaneLenclud@167
   140
            return iLib.Open(port, timeout);
Stephane@161
   141
        }
Stephane@161
   142
Stephane@161
   143
        public void Close()
Stephane@161
   144
        {
StephaneLenclud@167
   145
            iLib.Close();
Stephane@161
   146
        }
Stephane@161
   147
Stephane@161
   148
        public void ListDevices()
Stephane@161
   149
        {
Stephane@161
   150
            int iAdapter = 0;
StephaneLenclud@167
   151
            foreach (CecAdapter adapter in iLib.FindAdapters(string.Empty))
Stephane@161
   152
            {
Stephane@161
   153
                Console.WriteLine("Adapter:    " + iAdapter++);
Stephane@161
   154
                Console.WriteLine("Path:         " + adapter.Path);
Stephane@161
   155
                Console.WriteLine("Com port: " + adapter.ComPort);
Stephane@161
   156
            }
Stephane@161
   157
        }
Stephane@161
   158
Stephane@161
   159
        void ShowConsoleHelp()
Stephane@161
   160
        {
Stephane@161
   161
            Console.WriteLine(
Stephane@161
   162
                "================================================================================" + Environment.NewLine +
Stephane@161
   163
                "Available commands:" + Environment.NewLine +
Stephane@161
   164
                Environment.NewLine +
Stephane@161
   165
                "[tx] {bytes}                            transfer bytes over the CEC line." + Environment.NewLine +
Stephane@161
   166
                "[txn] {bytes}                         transfer bytes but don't wait for transmission ACK." + Environment.NewLine +
Stephane@161
   167
                "[on] {address}                        power on the device with the given logical address." + Environment.NewLine +
Stephane@161
   168
                "[standby] {address}             put the device with the given address in standby mode." + Environment.NewLine +
Stephane@161
   169
                "[la] {logical_address}        change the logical address of the CEC adapter." + Environment.NewLine +
Stephane@161
   170
                "[pa] {physical_address}     change the physical address of the CEC adapter." + Environment.NewLine +
Stephane@161
   171
                "[osd] {addr} {string}         set OSD message on the specified device." + Environment.NewLine +
Stephane@161
   172
                "[ver] {addr}                            get the CEC version of the specified device." + Environment.NewLine +
Stephane@161
   173
                "[ven] {addr}                            get the vendor ID of the specified device." + Environment.NewLine +
Stephane@161
   174
                "[lang] {addr}                         get the menu language of the specified device." + Environment.NewLine +
Stephane@161
   175
                "[pow] {addr}                            get the power status of the specified device." + Environment.NewLine +
Stephane@161
   176
                "[poll] {addr}                         poll the specified device." + Environment.NewLine +
Stephane@161
   177
                "[scan]                                        scan the CEC bus and display device info" + Environment.NewLine +
Stephane@161
   178
                "[mon] {1|0}                             enable or disable CEC bus monitoring." + Environment.NewLine +
Stephane@161
   179
                "[log] {1 - 31}                        change the log level. see cectypes.h for values." + Environment.NewLine +
Stephane@161
   180
                "[ping]                                        send a ping command to the CEC adapter." + Environment.NewLine +
Stephane@161
   181
                "[bl]                                            to let the adapter enter the bootloader, to upgrade" + Environment.NewLine +
Stephane@161
   182
                "                                                    the flash rom." + Environment.NewLine +
Stephane@161
   183
                "[r]                                             reconnect to the CEC adapter." + Environment.NewLine +
Stephane@161
   184
                "[h] or [help]                         show this help." + Environment.NewLine +
Stephane@161
   185
                "[q] or [quit]                         to quit the CEC test client and switch off all" + Environment.NewLine +
Stephane@161
   186
                "                                                    connected CEC devices." + Environment.NewLine +
Stephane@161
   187
                "================================================================================");
Stephane@161
   188
        }
Stephane@161
   189
Stephane@161
   190
        public void MainLoop()
Stephane@161
   191
        {
Stephane@161
   192
            bool bContinue = true;
Stephane@161
   193
            string command;
Stephane@161
   194
            while (bContinue)
Stephane@161
   195
            {
Stephane@161
   196
                Console.WriteLine("waiting for input");
Stephane@161
   197
Stephane@161
   198
                command = Console.ReadLine();
Stephane@161
   199
                if (command != null && command.Length == 0)
Stephane@161
   200
                    continue;
Stephane@161
   201
                string[] splitCommand = command.Split(' ');
Stephane@161
   202
                if (splitCommand[0] == "tx" || splitCommand[0] == "txn")
Stephane@161
   203
                {
Stephane@161
   204
                    CecCommand bytes = new CecCommand();
Stephane@161
   205
                    for (int iPtr = 1; iPtr < splitCommand.Length; iPtr++)
Stephane@161
   206
                    {
Stephane@161
   207
                        bytes.PushBack(byte.Parse(splitCommand[iPtr], System.Globalization.NumberStyles.HexNumber));
Stephane@161
   208
                    }
Stephane@161
   209
Stephane@161
   210
                    if (command == "txn")
Stephane@161
   211
                        bytes.TransmitTimeout = 0;
Stephane@161
   212
StephaneLenclud@167
   213
                    iLib.Transmit(bytes);
Stephane@161
   214
                }
Stephane@161
   215
                else if (splitCommand[0] == "on")
Stephane@161
   216
                {
Stephane@161
   217
                    if (splitCommand.Length > 1)
StephaneLenclud@167
   218
                        iLib.PowerOnDevices((CecLogicalAddress)byte.Parse(splitCommand[1], System.Globalization.NumberStyles.HexNumber));
Stephane@161
   219
                    else
StephaneLenclud@167
   220
                        iLib.PowerOnDevices(CecLogicalAddress.Broadcast);
Stephane@161
   221
                }
Stephane@161
   222
                else if (splitCommand[0] == "standby")
Stephane@161
   223
                {
Stephane@161
   224
                    if (splitCommand.Length > 1)
StephaneLenclud@167
   225
                        iLib.StandbyDevices((CecLogicalAddress)byte.Parse(splitCommand[1], System.Globalization.NumberStyles.HexNumber));
Stephane@161
   226
                    else
StephaneLenclud@167
   227
                        iLib.StandbyDevices(CecLogicalAddress.Broadcast);
Stephane@161
   228
                }
Stephane@161
   229
                else if (splitCommand[0] == "poll")
Stephane@161
   230
                {
Stephane@161
   231
                    bool bSent = false;
Stephane@161
   232
                    if (splitCommand.Length > 1)
StephaneLenclud@167
   233
                        bSent = iLib.PollDevice((CecLogicalAddress)byte.Parse(splitCommand[1], System.Globalization.NumberStyles.HexNumber));
Stephane@161
   234
                    else
StephaneLenclud@167
   235
                        bSent = iLib.PollDevice(CecLogicalAddress.Broadcast);
Stephane@161
   236
                    if (bSent)
Stephane@161
   237
                        Console.WriteLine("POLL message sent");
Stephane@161
   238
                    else
Stephane@161
   239
                        Console.WriteLine("POLL message not sent");
Stephane@161
   240
                }
Stephane@161
   241
                else if (splitCommand[0] == "la")
Stephane@161
   242
                {
Stephane@161
   243
                    if (splitCommand.Length > 1)
StephaneLenclud@167
   244
                        iLib.SetLogicalAddress((CecLogicalAddress)byte.Parse(splitCommand[1], System.Globalization.NumberStyles.HexNumber));
Stephane@161
   245
                }
Stephane@161
   246
                else if (splitCommand[0] == "pa")
Stephane@161
   247
                {
Stephane@161
   248
                    if (splitCommand.Length > 1)
StephaneLenclud@167
   249
                        iLib.SetPhysicalAddress(ushort.Parse(splitCommand[1], System.Globalization.NumberStyles.HexNumber));
Stephane@161
   250
                }
Stephane@161
   251
                else if (splitCommand[0] == "osd")
Stephane@161
   252
                {
Stephane@161
   253
                    if (splitCommand.Length > 2)
Stephane@161
   254
                    {
Stephane@161
   255
                        StringBuilder osdString = new StringBuilder();
Stephane@161
   256
                        for (int iPtr = 1; iPtr < splitCommand.Length; iPtr++)
Stephane@161
   257
                        {
Stephane@161
   258
                            osdString.Append(splitCommand[iPtr]);
Stephane@161
   259
                            if (iPtr != splitCommand.Length - 1)
Stephane@161
   260
                                osdString.Append(" ");
Stephane@161
   261
                        }
StephaneLenclud@167
   262
                        iLib.SetOSDString((CecLogicalAddress)byte.Parse(splitCommand[1], System.Globalization.NumberStyles.HexNumber), CecDisplayControl.DisplayForDefaultTime, osdString.ToString());
Stephane@161
   263
                    }
Stephane@161
   264
                }
Stephane@161
   265
                else if (splitCommand[0] == "ping")
Stephane@161
   266
                {
StephaneLenclud@167
   267
                    iLib.PingAdapter();
Stephane@161
   268
                }
Stephane@161
   269
                else if (splitCommand[0] == "mon")
Stephane@161
   270
                {
Stephane@161
   271
                    bool enable = splitCommand.Length > 1 ? splitCommand[1] == "1" : false;
StephaneLenclud@167
   272
                    iLib.SwitchMonitoring(enable);
Stephane@161
   273
                }
Stephane@161
   274
                else if (splitCommand[0] == "bl")
Stephane@161
   275
                {
StephaneLenclud@167
   276
                    iLib.StartBootloader();
Stephane@161
   277
                }
Stephane@161
   278
                else if (splitCommand[0] == "lang")
Stephane@161
   279
                {
Stephane@161
   280
                    if (splitCommand.Length > 1)
Stephane@161
   281
                    {
StephaneLenclud@167
   282
                        string language = iLib.GetDeviceMenuLanguage((CecLogicalAddress)byte.Parse(splitCommand[1], System.Globalization.NumberStyles.HexNumber));
Stephane@161
   283
                        Console.WriteLine("Menu language: " + language);
Stephane@161
   284
                    }
Stephane@161
   285
                }
Stephane@161
   286
                else if (splitCommand[0] == "ven")
Stephane@161
   287
                {
Stephane@161
   288
                    if (splitCommand.Length > 1)
Stephane@161
   289
                    {
StephaneLenclud@167
   290
                        CecVendorId vendor = iLib.GetDeviceVendorId((CecLogicalAddress)byte.Parse(splitCommand[1], System.Globalization.NumberStyles.HexNumber));
StephaneLenclud@167
   291
                        Console.WriteLine("Vendor ID: " + iLib.ToString(vendor));
Stephane@161
   292
                    }
Stephane@161
   293
                }
Stephane@161
   294
                else if (splitCommand[0] == "ver")
Stephane@161
   295
                {
Stephane@161
   296
                    if (splitCommand.Length > 1)
Stephane@161
   297
                    {
StephaneLenclud@167
   298
                        CecVersion version = iLib.GetDeviceCecVersion((CecLogicalAddress)byte.Parse(splitCommand[1], System.Globalization.NumberStyles.HexNumber));
StephaneLenclud@167
   299
                        Console.WriteLine("CEC version: " + iLib.ToString(version));
Stephane@161
   300
                    }
Stephane@161
   301
                }
Stephane@161
   302
                else if (splitCommand[0] == "pow")
Stephane@161
   303
                {
Stephane@161
   304
                    if (splitCommand.Length > 1)
Stephane@161
   305
                    {
StephaneLenclud@167
   306
                        CecPowerStatus power = iLib.GetDevicePowerStatus((CecLogicalAddress)byte.Parse(splitCommand[1], System.Globalization.NumberStyles.HexNumber));
StephaneLenclud@167
   307
                        Console.WriteLine("power status: " + iLib.ToString(power));
Stephane@161
   308
                    }
Stephane@161
   309
                }
Stephane@161
   310
                else if (splitCommand[0] == "r")
Stephane@161
   311
                {
Stephane@161
   312
                    Console.WriteLine("closing the connection");
StephaneLenclud@167
   313
                    iLib.Close();
Stephane@161
   314
Stephane@161
   315
                    Console.WriteLine("opening a new connection");
Stephane@161
   316
                    Connect(10000);
Stephane@161
   317
Stephane@161
   318
                    Console.WriteLine("setting active source");
StephaneLenclud@167
   319
                    iLib.SetActiveSource(CecDeviceType.PlaybackDevice);
Stephane@161
   320
                }
Stephane@161
   321
                else if (splitCommand[0] == "scan")
Stephane@161
   322
                {
Stephane@161
   323
                    StringBuilder output = new StringBuilder();
Stephane@161
   324
                    output.AppendLine("CEC bus information");
Stephane@161
   325
                    output.AppendLine("===================");
StephaneLenclud@167
   326
                    CecLogicalAddresses addresses = iLib.GetActiveDevices();
Stephane@161
   327
                    for (int iPtr = 0; iPtr < addresses.Addresses.Length; iPtr++)
Stephane@161
   328
                    {
Stephane@161
   329
                        CecLogicalAddress address = (CecLogicalAddress)iPtr;
Stephane@161
   330
                        if (!addresses.IsSet(address))
Stephane@161
   331
                            continue;
Stephane@161
   332
StephaneLenclud@167
   333
                        CecVendorId iVendorId = iLib.GetDeviceVendorId(address);
StephaneLenclud@167
   334
                        bool bActive = iLib.IsActiveDevice(address);
StephaneLenclud@167
   335
                        ushort iPhysicalAddress = iLib.GetDevicePhysicalAddress(address);
Stephane@161
   336
                        string strAddr = "todo: fixme"; //Lib.PhysicalAddressToString(iPhysicalAddress);
StephaneLenclud@167
   337
                        CecVersion iCecVersion = iLib.GetDeviceCecVersion(address);
StephaneLenclud@167
   338
                        CecPowerStatus power = iLib.GetDevicePowerStatus(address);
StephaneLenclud@167
   339
                        string osdName = iLib.GetDeviceOSDName(address);
StephaneLenclud@167
   340
                        string lang = iLib.GetDeviceMenuLanguage(address);
Stephane@161
   341
StephaneLenclud@167
   342
                        output.AppendLine("device #" + iPtr + ": " + iLib.ToString(address));
Stephane@161
   343
                        output.AppendLine("address:             " + strAddr);
Stephane@161
   344
                        output.AppendLine("active source: " + (bActive ? "yes" : "no"));
StephaneLenclud@167
   345
                        output.AppendLine("vendor:                " + iLib.ToString(iVendorId));
Stephane@161
   346
                        output.AppendLine("osd string:        " + osdName);
StephaneLenclud@167
   347
                        output.AppendLine("CEC version:     " + iLib.ToString(iCecVersion));
StephaneLenclud@167
   348
                        output.AppendLine("power status:    " + iLib.ToString(power));
Stephane@161
   349
                        if (!string.IsNullOrEmpty(lang))
Stephane@161
   350
                            output.AppendLine("language:            " + lang);
Stephane@161
   351
                        output.AppendLine("");
Stephane@161
   352
                    }
Stephane@161
   353
                    Console.WriteLine(output.ToString());
Stephane@161
   354
                }
Stephane@161
   355
                else if (splitCommand[0] == "h" || splitCommand[0] == "help")
Stephane@161
   356
                    ShowConsoleHelp();
Stephane@161
   357
                else if (splitCommand[0] == "q" || splitCommand[0] == "quit")
Stephane@161
   358
                    bContinue = false;
Stephane@161
   359
                else if (splitCommand[0] == "log" && splitCommand.Length > 1)
Stephane@161
   360
                    LogLevel = int.Parse(splitCommand[1]);                
Stephane@161
   361
            }
Stephane@161
   362
        }
Stephane@161
   363
StephaneLenclud@167
   364
        /// TODO: remove that
Stephane@161
   365
        static void Main(string[] args)
Stephane@161
   366
        {
StephaneLenclud@167
   367
            Client p = new Client("CEC",2);
Stephane@161
   368
            if (p.Connect(10000))
Stephane@161
   369
            {
Stephane@161
   370
                p.MainLoop();
Stephane@161
   371
            }
Stephane@161
   372
            else
Stephane@161
   373
            {
Stephane@161
   374
                Console.WriteLine("Could not open a connection to the CEC adapter");
Stephane@161
   375
            }
Stephane@161
   376
        }
Stephane@161
   377
Stephane@161
   378
        /// <summary>
StephaneLenclud@167
   379
        /// Provide direct access to CEC library
Stephane@161
   380
        /// </summary>
StephaneLenclud@167
   381
        public LibCecSharp Lib
Stephane@161
   382
        {
StephaneLenclud@167
   383
            get
StephaneLenclud@167
   384
            {
StephaneLenclud@167
   385
                return iLib;
StephaneLenclud@167
   386
            }
Stephane@161
   387
        }
Stephane@161
   388
Stephane@161
   389
        /// <summary>
Stephane@161
   390
        /// 
Stephane@161
   391
        /// </summary>
Stephane@161
   392
        private int LogLevel;
StephaneLenclud@167
   393
        /// <summary>
StephaneLenclud@167
   394
        /// 
StephaneLenclud@167
   395
        /// </summary>
StephaneLenclud@167
   396
        private LibCecSharp iLib;
StephaneLenclud@167
   397
        /// <summary>
StephaneLenclud@167
   398
        /// 
StephaneLenclud@167
   399
        /// </summary>
Stephane@161
   400
        private LibCECConfiguration Config;
Stephane@161
   401
    }
Stephane@161
   402
}