mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
rtsp: deprecate remaining base64 function now that we depend on GLib 2.20
API: deprecate gst_rtsp_base64_decode_ip(), use g_base64_decode_inplace() instead
This commit is contained in:
parent
ed71d802fc
commit
00f7fbe750
2 changed files with 12 additions and 6 deletions
|
@ -63,10 +63,13 @@ gst_rtsp_base64_encode (const gchar * data, gsize len)
|
||||||
*
|
*
|
||||||
* Decode the base64 string pointed to by @data in-place. When @len is not #NULL
|
* Decode the base64 string pointed to by @data in-place. When @len is not #NULL
|
||||||
* it will contain the length of the decoded data.
|
* it will contain the length of the decoded data.
|
||||||
|
*
|
||||||
|
* Deprecated: use g_base64_decode_inplace() instead.
|
||||||
*/
|
*/
|
||||||
/* FIXME: Deprecate this once we depend on GLib 2.20 and
|
#ifndef GST_REMOVE_DEPRECATED
|
||||||
* use g_base64_decode_inplace then.
|
#ifdef GST_DISABLE_DEPRECATED
|
||||||
*/
|
void gst_rtsp_base64_decode_ip (gchar * data, gsize * len);
|
||||||
|
#endif
|
||||||
void
|
void
|
||||||
gst_rtsp_base64_decode_ip (gchar * data, gsize * len)
|
gst_rtsp_base64_decode_ip (gchar * data, gsize * len)
|
||||||
{
|
{
|
||||||
|
@ -85,3 +88,4 @@ gst_rtsp_base64_decode_ip (gchar * data, gsize * len)
|
||||||
if (len)
|
if (len)
|
||||||
*len = output_length;
|
*len = output_length;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
* Boston, MA 02111-1307, USA.
|
* Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __BASE64_H__
|
#ifndef __GST_RTSP_BASE64_H__
|
||||||
#define __BASE64_H__
|
#define __GST_RTSP_BASE64_H__
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
|
@ -28,8 +28,10 @@ G_BEGIN_DECLS
|
||||||
gchar *gst_rtsp_base64_encode (const gchar *data, gsize len);
|
gchar *gst_rtsp_base64_encode (const gchar *data, gsize len);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef GST_DISABLE_DEPRECATED
|
||||||
void gst_rtsp_base64_decode_ip (gchar *data, gsize *len);
|
void gst_rtsp_base64_decode_ip (gchar *data, gsize *len);
|
||||||
|
#endif
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif
|
#endif /* __GST_RTSP_BASE64_H__ */
|
||||||
|
|
Loading…
Reference in a new issue