[xiph-commits] r18692 - icecast/branches/ph3/icecast/src
ph3-der-loewe at svn.xiph.org
ph3-der-loewe at svn.xiph.org
Mon Nov 12 18:09:46 PST 2012
Author: ph3-der-loewe
Date: 2012-11-12 18:09:45 -0800 (Mon, 12 Nov 2012)
New Revision: 18692
Modified:
icecast/branches/ph3/icecast/src/icecastplugin.h
icecast/branches/ph3/icecast/src/plugins.c
Log:
cover static to_lower in #ifdef as the the caller
Modified: icecast/branches/ph3/icecast/src/icecastplugin.h
===================================================================
--- icecast/branches/ph3/icecast/src/icecastplugin.h 2012-11-13 01:26:14 UTC (rev 18691)
+++ icecast/branches/ph3/icecast/src/icecastplugin.h 2012-11-13 02:09:45 UTC (rev 18692)
@@ -14,4 +14,12 @@
#define ICECASTPH_CHECK_VERSIONS() ROAR_DL_PLUGIN_CHECK_VERSIONS(ICECASTPH_APPNAME, ICECASTPH_ABIVERSION)
+typedef int (*icecastph_func_t)();
+typedef icecastph_func_t(*icecastph_getter_t)(const char * abiversion, const char * func);
+
+#define __icecastph_export_func(func) (((icecastph_getter_t)para->binargv)->(ICECASTPH_ABIVERSION, #func))
+#define __icecastph_export0(prefix,func) __icecastph_export_func(prefix,func)()
+#define __icecastph_export1(prefix,func,arg) __icecastph_export_func(prefix,func)(arg)
+#define __icecastph_exportn(prefix,func,arg,...) __icecastph_export_func(prefix,func)(arg, __VA_ARGS__)
+
#endif /* __ICECASTPLUGIN_H__ */
Modified: icecast/branches/ph3/icecast/src/plugins.c
===================================================================
--- icecast/branches/ph3/icecast/src/plugins.c 2012-11-13 01:26:14 UTC (rev 18691)
+++ icecast/branches/ph3/icecast/src/plugins.c 2012-11-13 02:09:45 UTC (rev 18692)
@@ -99,12 +99,14 @@
#endif
}
-static void to_lower(char * p)
+#ifdef HAVE_ROARAUDIO
+static inline void to_lower(char * p)
{
for (; *p; p++)
if ( *p >= 'A' && *p <= 'Z' )
*p += 'a' - 'A';
}
+#endif
static void plugins_load_cpi(cpi_t *cpi)
{
More information about the commits
mailing list