Blame gst/printf/printf-extension.h

Packit f546b1
/* GStreamer printf extension hooks
Packit f546b1
 * Copyright (C) 2013 Tim-Philipp Müller <tim centricular net>
Packit f546b1
 *
Packit f546b1
 * This library is free software; you can redistribute it and/or
Packit f546b1
 * modify it under the terms of the GNU Library General Public
Packit f546b1
 * License as published by the Free Software Foundation; either
Packit f546b1
 * version 2 of the License, or (at your option) any later version.
Packit f546b1
 *
Packit f546b1
 * This library is distributed in the hope that it will be useful,
Packit f546b1
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit f546b1
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit f546b1
 * Library General Public License for more details.
Packit f546b1
 *
Packit f546b1
 * You should have received a copy of the GNU Library General Public
Packit f546b1
 * License along with this library; if not, write to the
Packit f546b1
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit f546b1
 * Boston, MA 02110-1301, USA.
Packit f546b1
 */
Packit f546b1
Packit f546b1
#ifndef __GST_PRINTF_EXTENSION_H_INCLUDED__
Packit f546b1
#define __GST_PRINTF_EXTENSION_H_INCLUDED__
Packit f546b1
Packit f546b1
typedef char * (*PrintfPointerExtensionFunc) (const char * format, void * ptr);
Packit f546b1
Packit f546b1
/* we only need one global function, since it's only GstInfo registering extensions */
Packit f546b1
void   __gst_printf_pointer_extension_set_func  (PrintfPointerExtensionFunc func);
Packit f546b1
Packit f546b1
/* functions for internal printf implementation to handle the extensions */
Packit f546b1
char * __gst_printf_pointer_extension_serialize (const char * format, void * ptr);
Packit f546b1
Packit f546b1
#endif /* __GST_PRINTF_EXTENSION_H_INCLUDED__ */