Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
921aaff4
Commit
921aaff4
authored
Jun 16, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: add libvlc_set_app_id() to complement libvlc_set_user_agent()
parent
9cca21d4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
0 deletions
+31
-0
include/vlc/libvlc.h
include/vlc/libvlc.h
+14
-0
lib/core.c
lib/core.c
+10
-0
lib/libvlc.sym
lib/libvlc.sym
+1
-0
src/libvlc.c
src/libvlc.c
+6
-0
No files found.
include/vlc/libvlc.h
View file @
921aaff4
...
...
@@ -214,6 +214,20 @@ LIBVLC_API
void
libvlc_set_user_agent
(
libvlc_instance_t
*
p_instance
,
const
char
*
name
,
const
char
*
http
);
/**
* Sets some meta-informations about the application.
* See also libvlc_set_user_agent().
*
* \param p_instance LibVLC instance
* \param id Java-style application identifier, e.g. "com.acme.foobar"
* \param version application version numbers, e.g. "1.2.3"
* \param icon application icon name, e.g. "foobar"
* \version LibVLC 2.1.0 or later.
*/
LIBVLC_API
void
libvlc_set_app_id
(
libvlc_instance_t
*
p_instance
,
const
char
*
id
,
const
char
*
version
,
const
char
*
icon
);
/**
* Retrieve libvlc version.
*
...
...
lib/core.c
View file @
921aaff4
...
...
@@ -147,6 +147,16 @@ void libvlc_set_user_agent (libvlc_instance_t *p_i,
}
}
void
libvlc_set_app_id
(
libvlc_instance_t
*
p_i
,
const
char
*
id
,
const
char
*
version
,
const
char
*
icon
)
{
libvlc_int_t
*
p_libvlc
=
p_i
->
p_libvlc_int
;
var_SetString
(
p_libvlc
,
"app-id"
,
id
?
id
:
""
);
var_SetString
(
p_libvlc
,
"app-version"
,
version
?
version
:
""
);
var_SetString
(
p_libvlc
,
"app-version"
,
icon
?
icon
:
""
);
}
const
char
*
libvlc_get_version
(
void
)
{
return
VERSION_MESSAGE
;
...
...
lib/libvlc.sym
View file @
921aaff4
...
...
@@ -180,6 +180,7 @@ libvlc_retain
libvlc_set_fullscreen
libvlc_set_log_verbosity
libvlc_set_user_agent
libvlc_set_app_id
libvlc_toggle_fullscreen
libvlc_toggle_teletext
libvlc_track_description_release
...
...
src/libvlc.c
View file @
921aaff4
...
...
@@ -395,6 +395,12 @@ dbus_out:
var_Create
(
p_libvlc
,
"http-user-agent"
,
VLC_VAR_STRING
);
var_SetString
(
p_libvlc
,
"http-user-agent"
,
"VLC/"
PACKAGE_VERSION
" LibVLC/"
PACKAGE_VERSION
);
var_Create
(
p_libvlc
,
"app-icon-name"
,
VLC_VAR_STRING
);
var_SetString
(
p_libvlc
,
"app-icon-name"
,
PACKAGE_NAME
);
var_Create
(
p_libvlc
,
"app-id"
,
VLC_VAR_STRING
);
var_SetString
(
p_libvlc
,
"app-id"
,
"org.VideoLAN.VLC"
);
var_Create
(
p_libvlc
,
"app-version"
,
VLC_VAR_STRING
);
var_SetString
(
p_libvlc
,
"app-version"
,
PACKAGE_VERSION
);
/* System specific configuration */
system_Configure
(
p_libvlc
,
i_argc
-
vlc_optind
,
ppsz_argv
+
vlc_optind
);
...
...
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