1 /* 2 INTEL CONFIDENTIAL 3 Copyright 2009 Intel Corporation All Rights Reserved. 4 The source code contained or described herein and all documents related to the source code ("Material") are owned by Intel Corporation or its suppliers or licensors. Title to the Material remains with Intel Corporation or its suppliers and licensors. The Material contains trade secrets and proprietary and confidential information of Intel or its suppliers and licensors. The Material is protected by worldwide copyright and trade secret laws and treaty provisions. No part of the Material may be used, copied, reproduced, modified, published, uploaded, posted, transmitted, distributed, or disclosed in any way without Intels prior express written permission. 5 6 No license under any patent, copyright, trade secret or other intellectual property right is granted to or conferred upon you by disclosure or delivery of the Materials, either expressly, by implication, inducement, estoppel or otherwise. Any license under such intellectual property rights must be express and approved by Intel in writing. 7 */ 8 9 #include <glib.h> 10 11 #ifndef __MIX_LOG_H__ 12 #define __MIX_LOG_H__ 13 14 /* Warning: don't call these functions */ 15 void mix_log_func(const gchar* comp, gint level, const gchar *file, 16 const gchar *func, gint line, const gchar *format, ...); 17 18 /* Components */ 19 #define MIX_VIDEO_COMP "mixvideo" 20 #define GST_MIX_VIDEO_DEC_COMP "gstmixvideodec" 21 #define GST_MIX_VIDEO_SINK_COMP "gstmixvideosink" 22 #define GST_MIX_VIDEO_ENC_COMP "gstmixvideoenc" 23 24 #define MIX_AUDIO_COMP "mixaudio" 25 #define GST_MIX_AUDIO_DEC_COMP "gstmixaudiodec" 26 #define GST_MIX_AUDIO_SINK_COMP "gstmixaudiosink" 27 28 /* log level */ 29 #define MIX_LOG_LEVEL_ERROR 1 30 #define MIX_LOG_LEVEL_WARNING 2 31 #define MIX_LOG_LEVEL_INFO 3 32 #define MIX_LOG_LEVEL_VERBOSE 4 33 34 35 /* MACROS for mixlog */ 36 #ifdef MIX_LOG_ENABLE 37 38 #define mix_log(comp, level, format, ...) \ 39 mix_log_func(comp, level, __FILE__, __FUNCTION__, __LINE__, format, ##__VA_ARGS__) 40 41 #else 42 43 #define mix_log(comp, level, format, ...) 44 45 #endif 46 47 #endif 48