git.openpandora.org
/
pandora-libraries.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
affe807
)
libpnd; header and body for get_description() were a little out of sync; header was...
author
skeezix
<skeezix@flotsam-vm.(none)>
Wed, 9 Mar 2011 16:54:32 +0000
(11:54 -0500)
committer
skeezix
<skeezix@flotsam-vm.(none)>
Wed, 9 Mar 2011 16:54:32 +0000
(11:54 -0500)
lib/pnd_pxml.c
patch
|
blob
|
history
diff --git
a/lib/pnd_pxml.c
b/lib/pnd_pxml.c
index
2b597ce
..
a6516ab
100644
(file)
--- a/
lib/pnd_pxml.c
+++ b/
lib/pnd_pxml.c
@@
-356,6
+356,10
@@
char *pnd_pxml_get_icon ( pnd_pxml_handle h ) {
return ( p -> icon );
}
return ( p -> icon );
}
+// this guy's func name is 'out of sync' with the family of functions below; but since it
+// exists, rather than just remove it and break someones code, will add in the appropriate
+// function wrapper; the header only specifies the other guy (always did), so the header
+// was already on the right path.
char *pnd_pxml_get_app_description ( pnd_pxml_handle h, char *iso_lang ) {
pnd_pxml_t *p = (pnd_pxml_t *) h;
return pnd_pxml_get_best_localized_string(p->descriptions, p->descriptions_c, iso_lang);
char *pnd_pxml_get_app_description ( pnd_pxml_handle h, char *iso_lang ) {
pnd_pxml_t *p = (pnd_pxml_t *) h;
return pnd_pxml_get_best_localized_string(p->descriptions, p->descriptions_c, iso_lang);
@@
-377,6
+381,11
@@
char *pnd_pxml_get_description_fr ( pnd_pxml_handle h ) {
return pnd_pxml_get_app_description(h, "fr");
}
return pnd_pxml_get_app_description(h, "fr");
}
+// wrapper added so family of function names is consistent; see comment for pnd_pxml_get_app_description() above
+char *pnd_pxml_get_description ( pnd_pxml_handle h, char *iso_lang) {
+ return ( pnd_pxml_get_app_description ( h, iso_lang ) );
+}
+
char *pnd_pxml_get_previewpic1 ( pnd_pxml_handle h ) {
pnd_pxml_t *p = (pnd_pxml_t*) h;
return ( p -> previewpic1 );
char *pnd_pxml_get_previewpic1 ( pnd_pxml_handle h ) {
pnd_pxml_t *p = (pnd_pxml_t*) h;
return ( p -> previewpic1 );