Index: trunk/MagicSoft/Cosy/videodev/Camera.cc
===================================================================
--- trunk/MagicSoft/Cosy/videodev/Camera.cc	(revision 920)
+++ trunk/MagicSoft/Cosy/videodev/Camera.cc	(revision 1111)
@@ -21,4 +21,6 @@
 #include <sys/resource.h>
 
+ClassImp(Camera);
+
 inline int Camera::Ioctl(int req, void *opt, const char *str)
 {
Index: trunk/MagicSoft/Cosy/videodev/Camera.h
===================================================================
--- trunk/MagicSoft/Cosy/videodev/Camera.h	(revision 920)
+++ trunk/MagicSoft/Cosy/videodev/Camera.h	(revision 1111)
@@ -2,6 +2,15 @@
 #define CAMERA_H
 
+#ifdef __CINT__
+typedef unsigned long int pthread_t;
+struct pthread_mutex_t;
+struct pthread_cond_t;
+struct timeval;
+#else
+#include <TROOT.h>
 #include <pthread.h>
 #include <sys/time.h>
+#endif
+
 
 typedef unsigned char byte;
@@ -95,4 +104,5 @@
     void GetPicPar(int *bright, int *hue, int *contrast);
 
+    ClassDef(Camera, 0)
 };
 
Index: trunk/MagicSoft/Cosy/videodev/Filter.cc
===================================================================
--- trunk/MagicSoft/Cosy/videodev/Filter.cc	(revision 920)
+++ trunk/MagicSoft/Cosy/videodev/Filter.cc	(revision 1111)
@@ -3,4 +3,6 @@
 #include <memory.h>   // memset
 #include <iostream.h> // cout
+
+ClassImp(Filter);
 
 void Filter::DrawBox(const int x1, const int y1,
Index: trunk/MagicSoft/Cosy/videodev/Filter.h
===================================================================
--- trunk/MagicSoft/Cosy/videodev/Filter.h	(revision 920)
+++ trunk/MagicSoft/Cosy/videodev/Filter.h	(revision 1111)
@@ -1,4 +1,8 @@
 #ifndef FILTER_H
 #define FILTER_H
+
+#ifndef __CINT__
+#include <TROOT.h>
+#endif
 
 typedef unsigned char byte;
@@ -25,4 +29,6 @@
 public:
     static void Execute(byte *img);
+
+    ClassDef(Filter, 0)
 };
 
Index: trunk/MagicSoft/Cosy/videodev/Makefile
===================================================================
--- trunk/MagicSoft/Cosy/videodev/Makefile	(revision 920)
+++ trunk/MagicSoft/Cosy/videodev/Makefile	(revision 1111)
@@ -35,7 +35,8 @@
            Writer.cc 
 
-SRCS    = $(SRCFILES)
-HEADERS = $(SRCFILES:.cc=.h)
-OBJS    = $(SRCFILES:.cc=.o) 
+SRCS        = $(SRCFILES)
+HEADERS     = $(SRCFILES:.cc=.h)
+OBJS        = $(SRCFILES:.cc=.o) 
+CINTHEADERS = $(HEADERS)
 
 ############################################################
Index: trunk/MagicSoft/Cosy/videodev/VideodevLinkDef.h
===================================================================
--- trunk/MagicSoft/Cosy/videodev/VideodevLinkDef.h	(revision 920)
+++ trunk/MagicSoft/Cosy/videodev/VideodevLinkDef.h	(revision 1111)
@@ -5,3 +5,8 @@
 #pragma link off all functions;
 
+#pragma link C++ class Writer+;
+#pragma link C++ class Filter+;
+
+#pragma link C++ class Camera+;
+
 #endif
Index: trunk/MagicSoft/Cosy/videodev/Writer.cc
===================================================================
--- trunk/MagicSoft/Cosy/videodev/Writer.cc	(revision 920)
+++ trunk/MagicSoft/Cosy/videodev/Writer.cc	(revision 1111)
@@ -8,4 +8,6 @@
 
 #include "base/timer.h"
+
+ClassImp(Writer);
 
 void Writer::Png(const char *fname, const byte *buf,
Index: trunk/MagicSoft/Cosy/videodev/Writer.h
===================================================================
--- trunk/MagicSoft/Cosy/videodev/Writer.h	(revision 920)
+++ trunk/MagicSoft/Cosy/videodev/Writer.h	(revision 1111)
@@ -2,5 +2,10 @@
 #define WRITER_H
 
+#ifdef __CINT__
+struct timeval;
+#else
+#include <TROOT.h>
 #include <sys/time.h>
+#endif
 
 typedef unsigned char byte;
@@ -14,4 +19,6 @@
     static void Ppm(const char *fname, const byte *img);
     static void Png(const char *fname, const byte *buf, struct timeval *date);
+
+    ClassDef(Writer, 0)
 };
 
