Initial Commit
[Projects.git] / pkgbuilds / tagsistant-svn / src / tagsistant-build / src / .svn / text-base / tp_xml.c.svn-base
blobeca2a9e81a14041b0b21e50c5729a2b629b3e1cb
1 /*
2    Tagsistant (tagfs) -- tp_xml.c
3    Copyright (C) 2006-2007 Tx0 <tx0@strumentiresistenti.org>
5    Tagsistant xml plugin which makes decisions on file MIME types.
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 2, or (at your option)
10    any later version.
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
17    You should have received a copy of the GNU General Public License
18    along with this program; if not, write to the Free Software Foundation,
19    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
22 #include "tagsistant.h"
23 #define DEFAULT_TAG "document"
25 /* declaring mime type */
26 char mime_type[] = "application/xml";
28 /* exported init function */
29 int plugin_init()
31         return 1;
34 /* exported processor function */
35 int processor(const char *filename)
37         dbg(LOG_INFO, "Taggings %s as %s", filename, DEFAULT_TAG);
38         tag_file(filename, DEFAULT_TAG);
39         return TP_STOP;
42 /* exported finalize function */
43 void plugin_free()
47 // vim:ts=4:autoindent:nocindent:syntax=c