Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
ff6d1b16
Commit
ff6d1b16
authored
Oct 29, 2006
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement VersionInfo as property. (Forward port of [17345])
parent
43b5cae7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
mozilla/control/npolibvlc.cpp
mozilla/control/npolibvlc.cpp
+11
-0
No files found.
mozilla/control/npolibvlc.cpp
View file @
ff6d1b16
...
...
@@ -63,6 +63,7 @@ const NPUTF8 * const LibvlcRootNPObject::propertyNames[] =
"input"
,
"playlist"
,
"video"
,
"VersionInfo"
,
};
const
int
LibvlcRootNPObject
::
propertyCount
=
sizeof
(
LibvlcRootNPObject
::
propertyNames
)
/
sizeof
(
NPUTF8
*
);
...
...
@@ -73,6 +74,7 @@ enum LibvlcRootNPObjectPropertyIds
ID_input
,
ID_playlist
,
ID_video
,
ID_VersionInfo
,
};
RuntimeNPObject
::
InvokeResult
LibvlcRootNPObject
::
getProperty
(
int
index
,
NPVariant
&
result
)
...
...
@@ -91,6 +93,15 @@ RuntimeNPObject::InvokeResult LibvlcRootNPObject::getProperty(int index, NPVaria
case
ID_video
:
OBJECT_TO_NPVARIANT
(
NPN_RetainObject
(
videoObj
),
result
);
return
INVOKERESULT_NO_ERROR
;
case
ID_VersionInfo
:
NPUTF8
*
versionStr
=
NULL
;
versionStr
=
strdup
(
VLC_Version
()
);
if
(
!
versionStr
)
return
INVOKERESULT_GENERIC_ERROR
;
STRINGZ_TO_NPVARIANT
(
versionStr
,
result
);
return
INVOKERESULT_NO_ERROR
;
}
return
INVOKERESULT_GENERIC_ERROR
;
}
...
...
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