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
46cdf014
Commit
46cdf014
authored
Mar 29, 2010
by
Nicolas Chauvet
Committed by
Rémi Denis-Courmont
Mar 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typedef changes from xulrunner 1.9.1
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
6dbe4986
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
1 deletion
+46
-1
projects/mozilla/vlcplugin.h
projects/mozilla/vlcplugin.h
+8
-0
projects/mozilla/vlcshell.cpp
projects/mozilla/vlcshell.cpp
+19
-1
projects/mozilla/vlcshell.h
projects/mozilla/vlcshell.h
+19
-0
No files found.
projects/mozilla/vlcplugin.h
View file @
46cdf014
...
@@ -173,7 +173,11 @@ private:
...
@@ -173,7 +173,11 @@ private:
class
VlcPlugin
class
VlcPlugin
{
{
public:
public:
#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
VlcPlugin
(
NPP
,
uint16
);
VlcPlugin
(
NPP
,
uint16
);
#else
VlcPlugin
(
NPP
,
uint16_t
);
#endif
virtual
~
VlcPlugin
();
virtual
~
VlcPlugin
();
NPError
init
(
int
argc
,
char
*
const
argn
[],
char
*
const
argv
[]);
NPError
init
(
int
argc
,
char
*
const
argn
[],
char
*
const
argv
[]);
...
@@ -226,7 +230,11 @@ public:
...
@@ -226,7 +230,11 @@ public:
vlc_toolbar_clicked_t
getToolbarButtonClicked
(
int
i_xpos
,
int
i_ypos
);
vlc_toolbar_clicked_t
getToolbarButtonClicked
(
int
i_xpos
,
int
i_ypos
);
#endif
#endif
#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
uint16
i_npmode
;
/* either NP_EMBED or NP_FULL */
uint16
i_npmode
;
/* either NP_EMBED or NP_FULL */
#else
uint16_t
i_npmode
;
/* either NP_EMBED or NP_FULL */
#endif
/* plugin properties */
/* plugin properties */
int
b_stream
;
int
b_stream
;
...
...
projects/mozilla/vlcshell.cpp
View file @
46cdf014
...
@@ -284,7 +284,12 @@ void NPP_Shutdown( void )
...
@@ -284,7 +284,12 @@ void NPP_Shutdown( void )
;
;
}
}
NPError
NPP_New
(
NPMIMEType
pluginType
,
NPP
instance
,
uint16
mode
,
int16
argc
,
NPError
NPP_New
(
NPMIMEType
pluginType
,
NPP
instance
,
#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
uint16
mode
,
int16
argc
,
#else
uint16_t
mode
,
int16_t
argc
,
#endif
char
*
argn
[],
char
*
argv
[],
NPSavedData
*
saved
)
char
*
argn
[],
char
*
argv
[],
NPSavedData
*
saved
)
{
{
NPError
status
;
NPError
status
;
...
@@ -555,7 +560,11 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
...
@@ -555,7 +560,11 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window )
}
}
NPError
NPP_NewStream
(
NPP
instance
,
NPMIMEType
type
,
NPStream
*
stream
,
NPError
NPP_NewStream
(
NPP
instance
,
NPMIMEType
type
,
NPStream
*
stream
,
#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
NPBool
seekable
,
uint16
*
stype
)
NPBool
seekable
,
uint16
*
stype
)
#else
NPBool
seekable
,
uint16_t
*
stype
)
#endif
{
{
if
(
NULL
==
instance
)
if
(
NULL
==
instance
)
{
{
...
@@ -584,14 +593,23 @@ NPError NPP_NewStream( NPP instance, NPMIMEType type, NPStream *stream,
...
@@ -584,14 +593,23 @@ NPError NPP_NewStream( NPP instance, NPMIMEType type, NPStream *stream,
return
NPERR_GENERIC_ERROR
;
return
NPERR_GENERIC_ERROR
;
}
}
#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
int32
NPP_WriteReady
(
NPP
instance
,
NPStream
*
stream
)
int32
NPP_WriteReady
(
NPP
instance
,
NPStream
*
stream
)
#else
int32_t
NPP_WriteReady
(
NPP
instance
,
NPStream
*
stream
)
#endif
{
{
/* TODO */
/* TODO */
return
8
*
1024
;
return
8
*
1024
;
}
}
#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
int32
NPP_Write
(
NPP
instance
,
NPStream
*
stream
,
int32
offset
,
int32
NPP_Write
(
NPP
instance
,
NPStream
*
stream
,
int32
offset
,
int32
len
,
void
*
buffer
)
int32
len
,
void
*
buffer
)
#else
int32_t
NPP_Write
(
NPP
instance
,
NPStream
*
stream
,
int32_t
offset
,
int32_t
len
,
void
*
buffer
)
#endif
{
{
/* TODO */
/* TODO */
return
len
;
return
len
;
...
...
projects/mozilla/vlcshell.h
View file @
46cdf014
...
@@ -24,6 +24,11 @@
...
@@ -24,6 +24,11 @@
#ifndef __VLCSHELL_H__
#ifndef __VLCSHELL_H__
#define __VLCSHELL_H__
#define __VLCSHELL_H__
/* Mozilla stuff */
#ifdef HAVE_MOZILLA_CONFIG_H
# include <mozilla-config.h>
#endif
char
*
NPP_GetMIMEDescription
(
void
);
char
*
NPP_GetMIMEDescription
(
void
);
NPError
NPP_Initialize
(
void
);
NPError
NPP_Initialize
(
void
);
...
@@ -43,20 +48,34 @@ NPError NPP_SetValue( NPP instance, NPNVariable variable, void *value );
...
@@ -43,20 +48,34 @@ NPError NPP_SetValue( NPP instance, NPNVariable variable, void *value );
NPError
NPP_SetWindow
(
NPP
instance
,
NPWindow
*
window
);
NPError
NPP_SetWindow
(
NPP
instance
,
NPWindow
*
window
);
NPError
NPP_NewStream
(
NPP
instance
,
NPMIMEType
type
,
NPStream
*
stream
,
NPError
NPP_NewStream
(
NPP
instance
,
NPMIMEType
type
,
NPStream
*
stream
,
#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
NPBool
seekable
,
uint16
*
stype
);
NPBool
seekable
,
uint16
*
stype
);
#else
NPBool
seekable
,
uint16_t
*
stype
);
#endif
NPError
NPP_DestroyStream
(
NPP
instance
,
NPStream
*
stream
,
NPError
reason
);
NPError
NPP_DestroyStream
(
NPP
instance
,
NPStream
*
stream
,
NPError
reason
);
void
NPP_StreamAsFile
(
NPP
instance
,
NPStream
*
stream
,
const
char
*
fname
);
void
NPP_StreamAsFile
(
NPP
instance
,
NPStream
*
stream
,
const
char
*
fname
);
#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
int32
NPP_WriteReady
(
NPP
instance
,
NPStream
*
stream
);
int32
NPP_WriteReady
(
NPP
instance
,
NPStream
*
stream
);
int32
NPP_Write
(
NPP
instance
,
NPStream
*
stream
,
int32
offset
,
int32
NPP_Write
(
NPP
instance
,
NPStream
*
stream
,
int32
offset
,
int32
len
,
void
*
buffer
);
int32
len
,
void
*
buffer
);
#else
int32_t
NPP_WriteReady
(
NPP
instance
,
NPStream
*
stream
);
int32_t
NPP_Write
(
NPP
instance
,
NPStream
*
stream
,
int32_t
offset
,
int32_t
len
,
void
*
buffer
);
#endif
void
NPP_URLNotify
(
NPP
instance
,
const
char
*
url
,
void
NPP_URLNotify
(
NPP
instance
,
const
char
*
url
,
NPReason
reason
,
void
*
notifyData
);
NPReason
reason
,
void
*
notifyData
);
void
NPP_Print
(
NPP
instance
,
NPPrint
*
printInfo
);
void
NPP_Print
(
NPP
instance
,
NPPrint
*
printInfo
);
#ifdef XP_MACOSX
#ifdef XP_MACOSX
#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
int16
NPP_HandleEvent
(
NPP
instance
,
void
*
event
);
int16
NPP_HandleEvent
(
NPP
instance
,
void
*
event
);
#else
int16_t
NPP_HandleEvent
(
NPP
instance
,
void
*
event
);
#endif
#endif
#endif
#endif
#endif
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