Mercurial > libavutil.hg
annotate log.h @ 90:b916c714f77b libavutil
Fix FSF postal address.
author | diego |
---|---|
date | Wed, 26 Jul 2006 01:12:26 +0000 |
parents | b39b6310973c |
children | 11be8e0d1344 |
rev | line source |
---|---|
81 | 1 #ifndef LOG_H |
2 #define LOG_H | |
3 | |
4 #include <stdarg.h> | |
5 | |
6 /** | |
7 * Used by av_log | |
8 */ | |
9 typedef struct AVCLASS AVClass; | |
10 struct AVCLASS { | |
11 const char* class_name; | |
12 const char* (*item_name)(void*); /* actually passing a pointer to an AVCodecContext | |
13 or AVFormatContext, which begin with an AVClass. | |
14 Needed because av_log is in libavcodec and has no visibility | |
15 of AVIn/OutputFormat */ | |
16 struct AVOption *option; | |
17 }; | |
18 | |
19 /* av_log API */ | |
20 | |
21 #define AV_LOG_QUIET -1 | |
22 #define AV_LOG_ERROR 0 | |
23 #define AV_LOG_INFO 1 | |
24 #define AV_LOG_DEBUG 2 | |
88
b39b6310973c
removing redundant mess next time we break compatiility
michael
parents:
81
diff
changeset
|
25 extern int av_log_level; |
81 | 26 |
27 #ifdef __GNUC__ | |
28 extern void av_log(void*, int level, const char *fmt, ...) __attribute__ ((__format__ (__printf__, 3, 4))); | |
29 #else | |
30 extern void av_log(void*, int level, const char *fmt, ...); | |
31 #endif | |
32 | |
88
b39b6310973c
removing redundant mess next time we break compatiility
michael
parents:
81
diff
changeset
|
33 #if LIBAVUTIL_VERSION_INT < (50<<16) |
81 | 34 extern void av_vlog(void*, int level, const char *fmt, va_list); |
35 extern int av_log_get_level(void); | |
36 extern void av_log_set_level(int); | |
37 extern void av_log_set_callback(void (*)(void*, int, const char*, va_list)); | |
88
b39b6310973c
removing redundant mess next time we break compatiility
michael
parents:
81
diff
changeset
|
38 #else |
b39b6310973c
removing redundant mess next time we break compatiility
michael
parents:
81
diff
changeset
|
39 extern void (*av_vlog)(void*, int, const char*, va_list); |
b39b6310973c
removing redundant mess next time we break compatiility
michael
parents:
81
diff
changeset
|
40 #endif |
81 | 41 |
42 #endif /* LOG_H */ |