aboutsummaryrefslogtreecommitdiff
path: root/src/main/extractor_metatypes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/extractor_metatypes.c')
-rw-r--r--src/main/extractor_metatypes.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/main/extractor_metatypes.c b/src/main/extractor_metatypes.c
index 0601e9e..0b81053 100644
--- a/src/main/extractor_metatypes.c
+++ b/src/main/extractor_metatypes.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, 2005, 2006, 2009 Vidyut Samanta and Christian Grothoff 3 (C) 2002, 2003, 2004, 2005, 2006, 2009, 2012 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,10 +21,19 @@
21#include "platform.h" 21#include "platform.h"
22#include "extractor.h" 22#include "extractor.h"
23 23
24/**
25 * Description for meta data categories in LE.
26 */
24struct MetaTypeDescription 27struct MetaTypeDescription
25{ 28{
29 /**
30 * Short (typically 1-word) description.
31 */
26 const char *short_description; 32 const char *short_description;
27 33
34 /**
35 * More detailed description.
36 */
28 const char *long_description; 37 const char *long_description;
29}; 38};
30 39
@@ -454,9 +463,9 @@ static const struct MetaTypeDescription meta_type_descriptions[] = {
454 * translate using 'dgettext ("libextractor", rval)' 463 * translate using 'dgettext ("libextractor", rval)'
455 */ 464 */
456const char * 465const char *
457EXTRACTOR_metatype_to_string(enum EXTRACTOR_MetaType type) 466EXTRACTOR_metatype_to_string (enum EXTRACTOR_MetaType type)
458{ 467{
459 if ((type < 0) || (type >= HIGHEST_METATYPE_NUMBER)) 468 if ( (type < 0) || (type >= HIGHEST_METATYPE_NUMBER) )
460 return NULL; 469 return NULL;
461 return meta_type_descriptions[type].short_description; 470 return meta_type_descriptions[type].short_description;
462} 471}
@@ -471,9 +480,9 @@ EXTRACTOR_metatype_to_string(enum EXTRACTOR_MetaType type)
471 * translate using 'dgettext ("libextractor", rval)' 480 * translate using 'dgettext ("libextractor", rval)'
472 */ 481 */
473const char * 482const char *
474EXTRACTOR_metatype_to_description(enum EXTRACTOR_MetaType type) 483EXTRACTOR_metatype_to_description (enum EXTRACTOR_MetaType type)
475{ 484{
476 if ((type < 0) || (type >= HIGHEST_METATYPE_NUMBER)) 485 if ( (type < 0) || (type >= HIGHEST_METATYPE_NUMBER) )
477 return NULL; 486 return NULL;
478 return meta_type_descriptions[type].long_description; 487 return meta_type_descriptions[type].long_description;
479} 488}