diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-07-19 15:32:34 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-07-19 15:32:34 +0000 |
commit | ed3b52a942e733396789e74b76e5053440875828 (patch) | |
tree | d2b284bb9a0a7d950826085088391ede3462a675 /src/main/extractor_metatypes.c | |
parent | 0b3d84da6aef487c03047b9303c53b7e79d7228d (diff) | |
download | libextractor-ed3b52a942e733396789e74b76e5053440875828.tar.gz libextractor-ed3b52a942e733396789e74b76e5053440875828.zip |
-code cleanup
Diffstat (limited to 'src/main/extractor_metatypes.c')
-rw-r--r-- | src/main/extractor_metatypes.c | 21 |
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 | */ | ||
24 | struct MetaTypeDescription | 27 | struct 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 | */ |
456 | const char * | 465 | const char * |
457 | EXTRACTOR_metatype_to_string(enum EXTRACTOR_MetaType type) | 466 | EXTRACTOR_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 | */ |
473 | const char * | 482 | const char * |
474 | EXTRACTOR_metatype_to_description(enum EXTRACTOR_MetaType type) | 483 | EXTRACTOR_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 | } |