|
a/src/index/mimetype.h |
|
b/src/index/mimetype.h |
|
... |
|
... |
14 |
* Free Software Foundation, Inc.,
|
14 |
* Free Software Foundation, Inc.,
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
16 |
*/
|
16 |
*/
|
17 |
#ifndef _MIMETYPE_H_INCLUDED_
|
17 |
#ifndef _MIMETYPE_H_INCLUDED_
|
18 |
#define _MIMETYPE_H_INCLUDED_
|
18 |
#define _MIMETYPE_H_INCLUDED_
|
19 |
/* @(#$Id: mimetype.h,v 1.5 2006-01-30 11:15:27 dockes Exp $ (C) 2004 J.F.Dockes */
|
19 |
/* @(#$Id: mimetype.h,v 1.6 2006-12-19 08:40:50 dockes Exp $ (C) 2004 J.F.Dockes */
|
20 |
|
20 |
|
21 |
#include <string>
|
21 |
#include <string>
|
22 |
|
22 |
|
23 |
class RclConfig;
|
23 |
class RclConfig;
|
24 |
|
24 |
struct stat;
|
25 |
/**
|
25 |
/**
|
26 |
* Try to determine a mime type for filename.
|
26 |
* Try to determine a mime type for filename.
|
27 |
* This may imply more than matching the suffix, the name must be usable
|
27 |
* This may imply more than matching the suffix, the name must be usable
|
28 |
* to actually access file data.
|
28 |
* to actually access file data.
|
29 |
*/
|
29 |
*/
|
30 |
string mimetype(const std::string &filename, RclConfig *cfg, bool usfc);
|
30 |
string mimetype(const std::string &filename, const struct stat *stp,
|
|
|
31 |
RclConfig *cfg, bool usfc);
|
31 |
|
32 |
|
32 |
|
33 |
|
33 |
#endif /* _MIMETYPE_H_INCLUDED_ */
|
34 |
#endif /* _MIMETYPE_H_INCLUDED_ */
|