aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/template_extractor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/template_extractor.c')
-rw-r--r--src/plugins/template_extractor.c41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/plugins/template_extractor.c b/src/plugins/template_extractor.c
new file mode 100644
index 0000000..63f0393
--- /dev/null
+++ b/src/plugins/template_extractor.c
@@ -0,0 +1,41 @@
1/*
2 This file is part of libextractor.
3 (C) 2002, 2003, 2004, 2009 Vidyut Samanta and Christian Grothoff
4
5 libextractor is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 2, or (at your
8 option) any later version.
9
10 libextractor is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with libextractor; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19 */
20
21#include "platform.h"
22#include "extractor.h"
23
24int
25EXTRACTOR_template_extract (const unsigned char *data,
26 size_t size,
27 EXTRACTOR_MetaDataProcessor proc,
28 void *proc_cls,
29 const char *options)
30{
31 if (0 != proc (proc_cls,
32 "template",
33 EXTRACTOR_METATYPE_RESERVED,
34 EXTRACTOR_METAFORMAT_UTF8,
35 "text/plain",
36 "foo",
37 strlen ("foo")+1))
38 return 1;
39 /* insert more here */
40 return 0;
41}