kstars
indi_philips.cpp
Go to the documentation of this file.00001 #if 0
00002 V4L INDI Driver
00003 INDI Interface for V4L devices (Philips)
00004 Copyright (C) 2003-2005 Jasem Mutlaq (mutlaqja@ikarustech.com)
00005
00006 This library is free software; you can redistribute it and/or
00007 modify it under the terms of the GNU Lesser General Public
00008 License as published by the Free Software Foundation; either
00009 version 2.1 of the License, or (at your option) any later version.
00010
00011 This library is distributed in the hope that it will be useful,
00012 but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00014 Lesser General Public License for more details.
00015
00016 You should have received a copy of the GNU Lesser General Public
00017 License along with this library; if not, write to the Free Software
00018 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00019
00020 #endif
00021
00022 #include "v4lphilips.h"
00023
00024 V4L_Philips *MainCam = NULL;
00025
00026
00027 void ISInit()
00028 {
00029 if (MainCam == NULL)
00030 {
00031 MainCam = new V4L_Philips();
00032 MainCam->initProperties("Philips Webcam");
00033 MainCam->initCamBase();
00034 }
00035 }
00036
00037 void ISGetProperties (const char *dev)
00038 {
00039 ISInit();
00040
00041 MainCam->ISGetProperties(dev);
00042 }
00043
00044
00045 void ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n)
00046 {
00047
00048 ISInit();
00049
00050 MainCam->ISNewSwitch(dev, name, states, names, n);
00051 }
00052
00053 void ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n)
00054 {
00055
00056 ISInit();
00057
00058 MainCam->ISNewText(dev, name, texts, names, n);
00059 }
00060
00061
00062 void ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n)
00063 {
00064
00065 ISInit();
00066
00067 MainCam->ISNewNumber(dev, name, values, names, n);
00068 }
00069
00070 void ISNewBLOB (const char *, const char *, int *, char **, char **, char **, int )
00071 {
00072
00073
00074
00075 }