return (codec->decode_fn)(context, input, inputSizeBytes, output, outputSizeBytes);
}
+/**
+ * Get compile-time information for libraries used by libwscodecs.
+ */
+void codec_get_compiled_version_info(GString *str)
+{
+ /* SBC */
+#ifdef HAVE_SBC
+ g_string_append(str, ", with SBC");
+#else
+ g_string_append(str, ", without SBC");
+#endif
+
+ /* Spandsp (G.722, G.726) */
+#ifdef HAVE_SPANDSP
+ g_string_append(str, ", with Spandsp");
+#else
+ g_string_append(str, ", without Spandsp");
+#endif
+}
+
/*
* Editor modelines - http://www.wireshark.org/tools/modelines.html
*
*/
WS_DLL_PUBLIC void register_all_codecs(void);
+/**
+ * Get compile-time information for libraries used by libwscodecs.
+ */
+WS_DLL_PUBLIC void codec_get_compiled_version_info(GString *str);
+
struct codec_handle;
typedef struct codec_handle *codec_handle_t;
deregister_codec@Base 2.1.0
find_codec@Base 2.1.0
register_all_codecs@Base 2.1.0
+ codec_get_compiled_version_info@Base 2.3.0
register_codec@Base 2.1.0
ws_codec_resampler_destroy@Base 2.1.0
ws_codec_resampler_get_input_latency@Base 2.1.0
#else
g_string_append(str, "without AirPcap");
#endif
+
+ codec_get_compiled_version_info(str);
}
// xxx copied from ../gtk/main.c