moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kstars / kstars / indi / indi_v4l.cpp
blob599e0acb3bc4e69ec582838eec7685f6b9dc1a60
1 #if 0
2 V4L INDI Driver
3 INDI Interface for V4L devices
4 Copyright (C) 2003-2005 Jasem Mutlaq (mutlaqja@ikarustech.com)
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with this library; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 #endif
22 #include "v4ldriver.h"
24 V4L_Driver *MainCam = NULL; /* Main and only camera */
26 /* send client definitions of all properties */
27 void ISInit()
29 if (MainCam == NULL)
31 MainCam = new V4L_Driver();
32 MainCam->initProperties("Video4Linux Generic Device");
33 MainCam->initCamBase();
37 void ISGetProperties (const char *dev)
39 ISInit();
41 MainCam->ISGetProperties(dev);
45 void ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n)
48 ISInit();
50 MainCam->ISNewSwitch(dev, name, states, names, n);
53 void ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n)
56 ISInit();
58 MainCam->ISNewText(dev, name, texts, names, n);
62 void ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n)
65 ISInit();
67 MainCam->ISNewNumber(dev, name, values, names, n);
70 void ISNewBLOB (const char */*dev*/, const char */*name*/, int */*sizes[]*/, char **/*blobs[]*/, char **/*formats[]*/, char **/*names[]*/, int /*n*/)
73 // We use this if we're receving binary data from the client. Most likely we won't for this driver.