• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

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;        /* Main and only camera */
00025 
00026 /* send client definitions of all properties */
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 */*dev*/, const char */*name*/, int */*sizes[]*/, char **/*blobs[]*/, char **/*formats[]*/, char **/*names[]*/, int /*n*/)
00071 {
00072 
00073   // We use this if we're receving binary data from the client. Most likely we won't for this driver.
00074 
00075 }

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal