Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
c9f5dbcf
Commit
c9f5dbcf
authored
Aug 31, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export utf8_vfprintf and utf8_fprintf
parent
ce1c5890
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
include/charset.h
include/charset.h
+4
-3
include/vlc_symbols.h
include/vlc_symbols.h
+6
-0
src/misc/unicode.c
src/misc/unicode.c
+1
-1
No files found.
include/charset.h
View file @
c9f5dbcf
...
...
@@ -24,6 +24,8 @@
#ifndef __VLC_CHARSET_H
#define __VLC_CHARSET_H 1
#include <stdarg.h>
# ifdef __cplusplus
extern
"C"
{
# endif
...
...
@@ -42,9 +44,8 @@ VLC_EXPORT( int, utf8_stat, ( const char *filename, void *buf ) );
VLC_EXPORT
(
int
,
utf8_lstat
,
(
const
char
*
filename
,
void
*
buf
)
);
VLC_EXPORT
(
int
,
utf8_mkdir
,
(
const
char
*
filename
)
);
#ifndef __PLUGIN__
int
utf8_fprintf
(
FILE
*
,
const
char
*
,
...
);
#endif
VLC_EXPORT
(
int
,
utf8_vfprintf
,
(
FILE
*
stream
,
const
char
*
fmt
,
va_list
ap
)
);
VLC_EXPORT
(
int
,
utf8_fprintf
,
(
FILE
*
,
const
char
*
,
...
)
);
VLC_EXPORT
(
char
*
,
EnsureUTF8
,
(
char
*
)
);
VLC_EXPORT
(
const
char
*
,
IsUTF8
,
(
const
char
*
)
);
...
...
include/vlc_symbols.h
View file @
c9f5dbcf
...
...
@@ -531,6 +531,8 @@ struct module_symbols_t
void
(
*
vlc_DictClear_inner
)
(
dict_t
*
);
dict_t
*
(
*
vlc_DictNew_inner
)
(
void
);
playlist_item_t
*
(
*
playlist_GetPreferredNode_inner
)
(
playlist_t
*
p_playlist
,
playlist_item_t
*
p_node
);
int
(
*
utf8_fprintf_inner
)
(
FILE
*
,
const
char
*
,
...);
int
(
*
utf8_vfprintf_inner
)
(
FILE
*
stream
,
const
char
*
fmt
,
va_list
ap
);
};
# if defined (__PLUGIN__)
# define aout_FiltersCreatePipeline (p_symbols)->aout_FiltersCreatePipeline_inner
...
...
@@ -997,6 +999,8 @@ struct module_symbols_t
# define vlc_DictClear (p_symbols)->vlc_DictClear_inner
# define vlc_DictNew (p_symbols)->vlc_DictNew_inner
# define playlist_GetPreferredNode (p_symbols)->playlist_GetPreferredNode_inner
# define utf8_fprintf (p_symbols)->utf8_fprintf_inner
# define utf8_vfprintf (p_symbols)->utf8_vfprintf_inner
# elif defined (HAVE_DYNAMIC_PLUGINS) && !defined (__BUILTIN__)
/******************************************************************
* STORE_SYMBOLS: store VLC APIs into p_symbols for plugin access.
...
...
@@ -1466,6 +1470,8 @@ struct module_symbols_t
((p_symbols)->vlc_DictClear_inner) = vlc_DictClear; \
((p_symbols)->vlc_DictNew_inner) = vlc_DictNew; \
((p_symbols)->playlist_GetPreferredNode_inner) = playlist_GetPreferredNode; \
((p_symbols)->utf8_fprintf_inner) = utf8_fprintf; \
((p_symbols)->utf8_vfprintf_inner) = utf8_vfprintf; \
(p_symbols)->net_ConvertIPv4_deprecated = NULL; \
(p_symbols)->__playlist_ItemNew_deprecated = NULL; \
(p_symbols)->__playlist_ItemCopy_deprecated = NULL; \
...
...
src/misc/unicode.c
View file @
c9f5dbcf
...
...
@@ -556,7 +556,7 @@ static int utf8_vasprintf( char **str, const char *fmt, va_list ap )
return
res
;
}
static
int
utf8_vfprintf
(
FILE
*
stream
,
const
char
*
fmt
,
va_list
ap
)
int
utf8_vfprintf
(
FILE
*
stream
,
const
char
*
fmt
,
va_list
ap
)
{
char
*
str
;
int
res
=
utf8_vasprintf
(
&
str
,
fmt
,
ap
);
...
...
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