diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2016-04-19 22:45:22 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2016-04-19 22:45:22 +0000 |
| commit | 769d151a121ac849a365a509d644c3328738970a (patch) | |
| tree | 65aab2b83a8ca4b678088b06e8771053c10943d7 /src/drivers/Pico | |
| parent | cd4498021e9623da828b3fb8344bc4db35675efe (diff) | |
Virtualized add_fd and remove_fd into System Driver
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11668 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Pico')
| -rw-r--r-- | src/drivers/Pico/Fl_Pico_System_Driver.H | 37 | ||||
| -rw-r--r-- | src/drivers/Pico/Fl_Pico_System_Driver.cxx | 25 |
2 files changed, 62 insertions, 0 deletions
diff --git a/src/drivers/Pico/Fl_Pico_System_Driver.H b/src/drivers/Pico/Fl_Pico_System_Driver.H index 8b1378917..aae71e0d0 100644 --- a/src/drivers/Pico/Fl_Pico_System_Driver.H +++ b/src/drivers/Pico/Fl_Pico_System_Driver.H @@ -1 +1,38 @@ +// +// "$Id: Fl_Pico_System_Driver.H 11017 2016-01-20 21:40:12Z matt $" +// +// Definition of Pico system driver +// for the Fast Light Tool Kit (FLTK). +// +// Copyright 2010-2016 by Bill Spitzak and others. +// +// This library is free software. Distribution and use rights are outlined in +// the file "COPYING" which should have been included with this file. If this +// file is missing or damaged, see the license at: +// +// http://www.fltk.org/COPYING.php +// +// Please report all bugs and problems on the following page: +// +// http://www.fltk.org/str.php +// +#ifndef FL_PICO_SYSTEM_DRIVER_H +#define FL_PICO_SYSTEM_DRIVER_H + +#include <FL/Fl_System_Driver.H> + +class Fl_Pico_System_Driver : public Fl_System_Driver { +public: + Fl_Pico_System_Driver() : Fl_System_Driver() {} + virtual void add_fd(int fd, int when, Fl_FD_Handler cb, void* = 0); + virtual void add_fd(int fd, Fl_FD_Handler cb, void* = 0); + virtual void remove_fd(int, int when); + virtual void remove_fd(int); +}; + +#endif /* FL_PICO_SYSTEM_DRIVER_H */ + +// +// End of "$Id: Fl_Pico_System_Driver.H 11017 2016-01-20 21:40:12Z matt $". +// diff --git a/src/drivers/Pico/Fl_Pico_System_Driver.cxx b/src/drivers/Pico/Fl_Pico_System_Driver.cxx index 8b1378917..16f0a27e5 100644 --- a/src/drivers/Pico/Fl_Pico_System_Driver.cxx +++ b/src/drivers/Pico/Fl_Pico_System_Driver.cxx @@ -1 +1,26 @@ +// +// "$Id: Fl_Pico_System_Driver.cxx 11017 2016-01-20 21:40:12Z matt $" +// +// Definition of Pico system driver +// for the Fast Light Tool Kit (FLTK). +// +// Copyright 2010-2016 by Bill Spitzak and others. +// +// This library is free software. Distribution and use rights are outlined in +// the file "COPYING" which should have been included with this file. If this +// file is missing or damaged, see the license at: +// +// http://www.fltk.org/COPYING.php +// +// Please report all bugs and problems on the following page: +// +// http://www.fltk.org/str.php +// +#include "Fl_Pico_System_Driver.H" +#include "../../flstring.h" + + +// +// End of "$Id: Fl_Pico_System_Driver.H 11017 2016-01-20 21:40:12Z matt $". +// |
