From 62952ea2952768d922e2c93bcaa67e05c419f5a3 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 8 Apr 2016 15:17:39 +0000 Subject: Rewrite filename_absolute.cxx for the driver model. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11554 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_System_Driver.H | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'FL') diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H index 12e0f5f1d..03364e2f4 100644 --- a/FL/Fl_System_Driver.H +++ b/FL/Fl_System_Driver.H @@ -98,10 +98,14 @@ public: virtual int get_key(int k) {return 0;} // implement scandir-like function virtual int filename_list(const char *d, dirent ***list, int (*sort)(struct dirent **, struct dirent **) ) {return -1;} - // the default implementation of filename_expand may be enough + // the default implementation of filename_expand() may be enough virtual int filename_expand(char *to, int tolen, const char *from); // to implement virtual const char *getpwnam(const char *login) {return NULL;} + // the default implementation of filename_relative() is in src/filename_absolute.cxx and may be enough + virtual int filename_relative(char *to, int tolen, const char *from, const char *base); + // the default implementation of filename_absolute() is in src/filename_absolute.cxx and may be enough + virtual int filename_absolute(char *to, int tolen, const char *from); }; #endif // FL_SYSTEM_DRIVER_H -- cgit v1.2.3