Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
a519cf4a
Commit
a519cf4a
authored
Feb 06, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup msg_Generic functions
parent
45e8e2a8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
25 deletions
+18
-25
include/vlc_messages.h
include/vlc_messages.h
+7
-7
modules/demux/mkv/matroska_segment_parse.cpp
modules/demux/mkv/matroska_segment_parse.cpp
+1
-1
modules/misc/lua/vlc.h
modules/misc/lua/vlc.h
+1
-2
src/libvlccore.sym
src/libvlccore.sym
+2
-2
src/misc/messages.c
src/misc/messages.c
+7
-13
No files found.
include/vlc_messages.h
View file @
a519cf4a
...
@@ -87,21 +87,21 @@ typedef struct msg_subscription_t msg_subscription_t;
...
@@ -87,21 +87,21 @@ typedef struct msg_subscription_t msg_subscription_t;
/*****************************************************************************
/*****************************************************************************
* Prototypes
* Prototypes
*****************************************************************************/
*****************************************************************************/
VLC_EXPORT
(
void
,
__
msg_Generic
,
(
vlc_object_t
*
,
int
,
const
char
*
,
const
char
*
,
...
)
LIBVLC_FORMAT
(
4
,
5
)
);
VLC_EXPORT
(
void
,
msg_Generic
,
(
vlc_object_t
*
,
int
,
const
char
*
,
const
char
*
,
...
)
LIBVLC_FORMAT
(
4
,
5
)
);
VLC_EXPORT
(
void
,
__
msg_GenericVa
,
(
vlc_object_t
*
,
int
,
const
char
*
,
const
char
*
,
va_list
args
)
);
VLC_EXPORT
(
void
,
msg_GenericVa
,
(
vlc_object_t
*
,
int
,
const
char
*
,
const
char
*
,
va_list
args
)
);
#define msg_GenericVa(a, b, c, d, e)
__
msg_GenericVa(VLC_OBJECT(a), b, c, d, e)
#define msg_GenericVa(a, b, c, d, e) msg_GenericVa(VLC_OBJECT(a), b, c, d, e)
#define msg_Info( p_this, ... ) \
#define msg_Info( p_this, ... ) \
__
msg_Generic( VLC_OBJECT(p_this), VLC_MSG_INFO, \
msg_Generic( VLC_OBJECT(p_this), VLC_MSG_INFO, \
MODULE_STRING, __VA_ARGS__ )
MODULE_STRING, __VA_ARGS__ )
#define msg_Err( p_this, ... ) \
#define msg_Err( p_this, ... ) \
__
msg_Generic( VLC_OBJECT(p_this), VLC_MSG_ERR, \
msg_Generic( VLC_OBJECT(p_this), VLC_MSG_ERR, \
MODULE_STRING, __VA_ARGS__ )
MODULE_STRING, __VA_ARGS__ )
#define msg_Warn( p_this, ... ) \
#define msg_Warn( p_this, ... ) \
__
msg_Generic( VLC_OBJECT(p_this), VLC_MSG_WARN, \
msg_Generic( VLC_OBJECT(p_this), VLC_MSG_WARN, \
MODULE_STRING, __VA_ARGS__ )
MODULE_STRING, __VA_ARGS__ )
#define msg_Dbg( p_this, ... ) \
#define msg_Dbg( p_this, ... ) \
__
msg_Generic( VLC_OBJECT(p_this), VLC_MSG_DBG, \
msg_Generic( VLC_OBJECT(p_this), VLC_MSG_DBG, \
MODULE_STRING, __VA_ARGS__ )
MODULE_STRING, __VA_ARGS__ )
typedef
struct
msg_cb_data_t
msg_cb_data_t
;
typedef
struct
msg_cb_data_t
msg_cb_data_t
;
...
...
modules/demux/mkv/matroska_segment_parse.cpp
View file @
a519cf4a
...
@@ -150,7 +150,7 @@ static void MkvTree( demux_t & demuxer, int i_level, const char *psz_format, ...
...
@@ -150,7 +150,7 @@ static void MkvTree( demux_t & demuxer, int i_level, const char *psz_format, ...
psz_foo2
[
4
*
i_level
]
=
'+'
;
psz_foo2
[
4
*
i_level
]
=
'+'
;
psz_foo2
[
4
*
i_level
+
1
]
=
' '
;
psz_foo2
[
4
*
i_level
+
1
]
=
' '
;
strcpy
(
&
psz_foo2
[
4
*
i_level
+
2
],
psz_format
);
strcpy
(
&
psz_foo2
[
4
*
i_level
+
2
],
psz_format
);
__msg_GenericVa
(
VLC_OBJECT
(
&
demuxer
)
,
VLC_MSG_DBG
,
"mkv"
,
psz_foo2
,
args
);
msg_GenericVa
(
&
demuxer
,
VLC_MSG_DBG
,
"mkv"
,
psz_foo2
,
args
);
free
(
psz_foo2
);
free
(
psz_foo2
);
va_end
(
args
);
va_end
(
args
);
}
}
...
...
modules/misc/lua/vlc.h
View file @
a519cf4a
...
@@ -67,8 +67,7 @@ static inline void lua_Dbg( vlc_object_t * p_this, const char * ppz_fmt, ... )
...
@@ -67,8 +67,7 @@ static inline void lua_Dbg( vlc_object_t * p_this, const char * ppz_fmt, ... )
{
{
va_list
ap
;
va_list
ap
;
va_start
(
ap
,
ppz_fmt
);
va_start
(
ap
,
ppz_fmt
);
__msg_GenericVa
(
(
vlc_object_t
*
)
p_this
,
VLC_MSG_DBG
,
MODULE_STRING
,
msg_GenericVa
(
p_this
,
VLC_MSG_DBG
,
MODULE_STRING
,
ppz_fmt
,
ap
);
ppz_fmt
,
ap
);
va_end
(
ap
);
va_end
(
ap
);
}
}
...
...
src/libvlccore.sym
View file @
a519cf4a
...
@@ -254,8 +254,8 @@ module_release
...
@@ -254,8 +254,8 @@ module_release
__module_unneed
__module_unneed
msg_DisableObjectPrinting
msg_DisableObjectPrinting
msg_EnableObjectPrinting
msg_EnableObjectPrinting
__
msg_Generic
msg_Generic
__
msg_GenericVa
msg_GenericVa
msg_Subscribe
msg_Subscribe
msg_Unsubscribe
msg_Unsubscribe
msleep
msleep
...
...
src/misc/messages.c
View file @
a519cf4a
...
@@ -87,8 +87,6 @@ static inline msg_bank_t *libvlc_bank (libvlc_int_t *inst)
...
@@ -87,8 +87,6 @@ static inline msg_bank_t *libvlc_bank (libvlc_int_t *inst)
/*****************************************************************************
/*****************************************************************************
* Local prototypes
* Local prototypes
*****************************************************************************/
*****************************************************************************/
static
void
QueueMsg
(
vlc_object_t
*
,
int
,
const
char
*
,
const
char
*
,
va_list
);
static
void
PrintMsg
(
vlc_object_t
*
,
msg_item_t
*
);
static
void
PrintMsg
(
vlc_object_t
*
,
msg_item_t
*
);
static
vlc_mutex_t
msg_stack_lock
=
VLC_STATIC_MUTEX
;
static
vlc_mutex_t
msg_stack_lock
=
VLC_STATIC_MUTEX
;
...
@@ -263,26 +261,20 @@ void msg_Unsubscribe (msg_subscription_t *sub)
...
@@ -263,26 +261,20 @@ void msg_Unsubscribe (msg_subscription_t *sub)
}
}
/*****************************************************************************
/*****************************************************************************
*
__
msg_*: print a message
* msg_*: print a message
*****************************************************************************
*****************************************************************************
* These functions queue a message for later printing.
* These functions queue a message for later printing.
*****************************************************************************/
*****************************************************************************/
void
__
msg_Generic
(
vlc_object_t
*
p_this
,
int
i_type
,
const
char
*
psz_module
,
void
msg_Generic
(
vlc_object_t
*
p_this
,
int
i_type
,
const
char
*
psz_module
,
const
char
*
psz_format
,
...
)
const
char
*
psz_format
,
...
)
{
{
va_list
args
;
va_list
args
;
va_start
(
args
,
psz_format
);
va_start
(
args
,
psz_format
);
QueueMsg
(
p_this
,
i_type
,
psz_module
,
psz_format
,
args
);
msg_GenericVa
(
p_this
,
i_type
,
psz_module
,
psz_format
,
args
);
va_end
(
args
);
va_end
(
args
);
}
}
void
__msg_GenericVa
(
vlc_object_t
*
p_this
,
int
i_type
,
const
char
*
psz_module
,
const
char
*
psz_format
,
va_list
args
)
{
QueueMsg
(
p_this
,
i_type
,
psz_module
,
psz_format
,
args
);
}
/**
/**
* Destroys a message.
* Destroys a message.
*/
*/
...
@@ -296,6 +288,7 @@ static void msg_Free (gc_object_t *gc)
...
@@ -296,6 +288,7 @@ static void msg_Free (gc_object_t *gc)
free
(
msg
);
free
(
msg
);
}
}
#undef msg_GenericVa
/**
/**
* Add a message to a queue
* Add a message to a queue
*
*
...
@@ -304,8 +297,9 @@ static void msg_Free (gc_object_t *gc)
...
@@ -304,8 +297,9 @@ static void msg_Free (gc_object_t *gc)
* is full). If the message can't be converted to string in memory, it issues
* is full). If the message can't be converted to string in memory, it issues
* a warning.
* a warning.
*/
*/
static
void
QueueMsg
(
vlc_object_t
*
p_this
,
int
i_type
,
const
char
*
psz_module
,
void
msg_GenericVa
(
vlc_object_t
*
p_this
,
int
i_type
,
const
char
*
psz_format
,
va_list
_args
)
const
char
*
psz_module
,
const
char
*
psz_format
,
va_list
_args
)
{
{
size_t
i_header_size
;
/* Size of the additionnal header */
size_t
i_header_size
;
/* Size of the additionnal header */
vlc_object_t
*
p_obj
;
vlc_object_t
*
p_obj
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment