diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-12-18 18:08:20 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-12-18 18:08:20 +0000 |
commit | 7de6447e7fb6113b8c40288f76088587ff2af91c (patch) | |
tree | 17cc5ed7f57ece1dd27a338c94f8e50002907893 | |
parent | 7cf17f598af0dc0194beb5224d5493b83959f70e (diff) | |
download | libextractor-7de6447e7fb6113b8c40288f76088587ff2af91c.tar.gz libextractor-7de6447e7fb6113b8c40288f76088587ff2af91c.zip |
template
-rw-r--r-- | src/plugins/Makefile.am | 2 | ||||
-rw-r--r-- | src/plugins/template_extractor.c (renamed from src/plugins/templateextractor.c) | 39 |
2 files changed, 18 insertions, 23 deletions
diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am index 841367e..9668b87 100644 --- a/src/plugins/Makefile.am +++ b/src/plugins/Makefile.am | |||
@@ -260,7 +260,7 @@ libextractor_wav_la_LDFLAGS = \ | |||
260 | libextractor_wav_la_LIBADD = \ | 260 | libextractor_wav_la_LIBADD = \ |
261 | $(LE_LIBINTL) | 261 | $(LE_LIBINTL) |
262 | 262 | ||
263 | 263 | EXTRA_DIST = template_extractor.c | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | ||
diff --git a/src/plugins/templateextractor.c b/src/plugins/template_extractor.c index 3db8ee2..63f0393 100644 --- a/src/plugins/templateextractor.c +++ b/src/plugins/template_extractor.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libextractor. | 2 | This file is part of libextractor. |
3 | (C) 2002, 2003, 2004 Vidyut Samanta and Christian Grothoff | 3 | (C) 2002, 2003, 2004, 2009 Vidyut Samanta and Christian Grothoff |
4 | 4 | ||
5 | libextractor is free software; you can redistribute it and/or modify | 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 | 6 | it under the terms of the GNU General Public License as published |
@@ -21,26 +21,21 @@ | |||
21 | #include "platform.h" | 21 | #include "platform.h" |
22 | #include "extractor.h" | 22 | #include "extractor.h" |
23 | 23 | ||
24 | static EXTRACTOR_KeywordList * | 24 | int |
25 | addKeyword (EXTRACTOR_KeywordType type, | 25 | EXTRACTOR_template_extract (const unsigned char *data, |
26 | char *keyword, EXTRACTOR_KeywordList * next) | 26 | size_t size, |
27 | EXTRACTOR_MetaDataProcessor proc, | ||
28 | void *proc_cls, | ||
29 | const char *options) | ||
27 | { | 30 | { |
28 | EXTRACTOR_KeywordList *result; | 31 | if (0 != proc (proc_cls, |
29 | 32 | "template", | |
30 | if (keyword == NULL) | 33 | EXTRACTOR_METATYPE_RESERVED, |
31 | return next; | 34 | EXTRACTOR_METAFORMAT_UTF8, |
32 | result = malloc (sizeof (EXTRACTOR_KeywordList)); | 35 | "text/plain", |
33 | result->next = next; | 36 | "foo", |
34 | result->keyword = keyword; | 37 | strlen ("foo")+1)) |
35 | result->keywordType = type; | 38 | return 1; |
36 | return result; | 39 | /* insert more here */ |
37 | } | 40 | return 0; |
38 | |||
39 | struct EXTRACTOR_Keywords * | ||
40 | libextractor_TEMPLATE_extract (const char *filename, | ||
41 | char *data, | ||
42 | size_t size, struct EXTRACTOR_Keywords *prev) | ||
43 | { | ||
44 | |||
45 | return prev; | ||
46 | } | 41 | } |