Mercurial > audlegacy
comparison Plugins/Input/adplug/core/fprovide.h @ 1376:c71e2ef2dcf4 trunk
[svn] Security fixes from AdPlug CVS (their July 7 commit shortly before the secunia announcement).
author | chainsaw |
---|---|
date | Sat, 08 Jul 2006 08:29:18 -0700 |
parents | 0a73d1faeb4e |
children | f12d7e208b43 |
comparison
equal
deleted
inserted
replaced
1375:d2c411305bf8 | 1376:c71e2ef2dcf4 |
---|---|
1 /* | 1 /* |
2 * Adplug - Replayer for many OPL2/OPL3 audio file formats. | 2 * Adplug - Replayer for many OPL2/OPL3 audio file formats. |
3 * Copyright (C) 1999 - 2002 Simon Peter, <dn.tlp@gmx.net>, et al. | 3 * Copyright (C) 1999 - 2006 Simon Peter, <dn.tlp@gmx.net>, et al. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Lesser General Public | 6 * modify it under the terms of the GNU Lesser General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2.1 of the License, or (at your option) any later version. | 8 * version 2.1 of the License, or (at your option) any later version. |
26 #include <binio.h> | 26 #include <binio.h> |
27 | 27 |
28 class CFileProvider | 28 class CFileProvider |
29 { | 29 { |
30 public: | 30 public: |
31 virtual ~CFileProvider() { } | 31 virtual ~CFileProvider() |
32 { | |
33 } | |
34 | |
32 virtual binistream *open(std::string) const = 0; | 35 virtual binistream *open(std::string) const = 0; |
33 virtual void close(binistream *) const = 0; | 36 virtual void close(binistream *) const = 0; |
34 | 37 |
35 static bool extension(const std::string &filename, | 38 static bool extension(const std::string &filename, |
36 const std::string &extension); | 39 const std::string &extension); |
38 }; | 41 }; |
39 | 42 |
40 class CProvider_Filesystem: public CFileProvider | 43 class CProvider_Filesystem: public CFileProvider |
41 { | 44 { |
42 public: | 45 public: |
43 virtual ~CProvider_Filesystem() { } | |
44 virtual binistream *open(std::string filename) const; | 46 virtual binistream *open(std::string filename) const; |
45 virtual void close(binistream *f) const; | 47 virtual void close(binistream *f) const; |
46 }; | 48 }; |
47 | 49 |
48 #endif | 50 #endif |