summaryrefslogtreecommitdiff
path: root/src/Fl_System_Driver.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-11-15 10:09:01 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-11-15 10:09:01 +0100
commit7f8f7c5b851f4e15cf95c6e819bff284b7fda7ca (patch)
tree48a51de221358f977c494a955b73ceca6cd679be /src/Fl_System_Driver.H
parent433a8e71e81c51a96f1d617fae5a3a4aac4efaeb (diff)
Add support of .svgz image files to fluid
The prototype of the public Fl_SVG_Image constructor is expanded to allow construction from in-memory, gzip'ed binary data.
Diffstat (limited to 'src/Fl_System_Driver.H')
-rw-r--r--src/Fl_System_Driver.H6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Fl_System_Driver.H b/src/Fl_System_Driver.H
index bba6c77ff..b1901b133 100644
--- a/src/Fl_System_Driver.H
+++ b/src/Fl_System_Driver.H
@@ -221,6 +221,12 @@ public:
virtual void unlock_ring() {}
virtual double wait(double); // must override
virtual int ready() { return 0; } // must override
+ virtual int close_fd(int) {return -1;} // to close a file descriptor
+ // next 2 for support of Fl_SVG_Image
+ virtual int write_nonblocking_fd(int , const unsigned char *&, size_t &) {return 0;}
+ virtual void pipe_support(int &fdread, int &fdwrite, const unsigned char *, size_t ) {
+ fdread = fdwrite = -1;
+ }
};
#endif // FL_SYSTEM_DRIVER_H