From: skeezix Date: Wed, 9 Mar 2011 16:54:32 +0000 (-0500) Subject: libpnd; header and body for get_description() were a little out of sync; header was... X-Git-Tag: sz_beta3~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-libraries.git;a=commitdiff_plain;h=3e7a8da624c2827b24e606d7ac5b8d7ad247286d libpnd; header and body for get_description() were a little out of sync; header was correct, so added wrapper function to body so as to match header, without removing the inconsistent existing function (on the off chance some app is using it.) We can deprecate it later if we like. --- diff --git a/lib/pnd_pxml.c b/lib/pnd_pxml.c index 2b597ce..a6516ab 100644 --- 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 ); } +// 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); @@ -377,6 +381,11 @@ char *pnd_pxml_get_description_fr ( pnd_pxml_handle h ) { 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 );