Fix tg_termpos1 for 64-bit termpos
[xapian.git] / xapian-applications / omega / mime.h
blob334ac12b5ffa64495035043c8f08bb528000ecbf
1 /** @file
2 * @brief Find MIME type for a file
3 */
4 /* Copyright 1999,2000,2001 BrightStation PLC
5 * Copyright 2001,2005 James Aylett
6 * Copyright 2001,2002 Ananova Ltd
7 * Copyright 2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015 Olly Betts
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
22 * USA
25 #ifndef OMEGA_INCLUDED_MIME_H
26 #define OMEGA_INCLUDED_MIME_H
28 #include <sys/types.h>
29 #include <map>
30 #include <string>
32 extern size_t max_ext_len;
34 const char *
35 built_in_mime_map(const std::string & ext);
37 std::string
38 mimetype_from_ext(const std::map<std::string, std::string> & mime_map,
39 std::string ext);
41 #endif // OMEGA_INCLUDED_MIME_H