Browse Source

Initial commit (totem 3.10/trusty)

tags/1.0.1
Clement Lefebvre 5 years ago
commit
ebdc4687e0
100 changed files with 125537 additions and 0 deletions
  1. +4
    -0
      AUTHORS
  2. +354
    -0
      COPYING
  3. +25949
    -0
      ChangeLog
  4. +27047
    -0
      ChangeLog.pre-gitlog
  5. +370
    -0
      INSTALL
  6. +7
    -0
      MAINTAINERS
  7. +62
    -0
      Makefile.am
  8. +1003
    -0
      Makefile.in
  9. +2157
    -0
      NEWS
  10. +121
    -0
      README
  11. +1
    -0
      TODO
  12. +2267
    -0
      aclocal.m4
  13. +24
    -0
      autogen.sh
  14. +230
    -0
      browser-plugin/Makefile.am
  15. +1634
    -0
      browser-plugin/Makefile.in
  16. +49
    -0
      browser-plugin/README.browser-plugin
  17. +14
    -0
      browser-plugin/TODO
  18. +808
    -0
      browser-plugin/npapi.h
  19. +351
    -0
      browser-plugin/npruntime.h
  20. +719
    -0
      browser-plugin/npupp.h
  21. +85
    -0
      browser-plugin/org_gnome_totem_PluginViewer.xml
  22. +4
    -0
      browser-plugin/plugin.symbols
  23. +58
    -0
      browser-plugin/test-glow-button.c
  24. +351
    -0
      browser-plugin/totem-glow-button.c
  25. +52
    -0
      browser-plugin/totem-glow-button.h
  26. +46
    -0
      browser-plugin/totem-plugin-viewer-constants.h
  27. +673
    -0
      browser-plugin/totem-plugin-viewer-interface.h
  28. +41
    -0
      browser-plugin/totem-plugin-viewer-options.h
  29. +2307
    -0
      browser-plugin/totem-plugin-viewer.c
  30. +118
    -0
      browser-plugin/totemCone.cpp
  31. +59
    -0
      browser-plugin/totemCone.h
  32. +139
    -0
      browser-plugin/totemConeAudio.cpp
  33. +58
    -0
      browser-plugin/totemConeAudio.h
  34. +132
    -0
      browser-plugin/totemConeInput.cpp
  35. +53
    -0
      browser-plugin/totemConeInput.h
  36. +166
    -0
      browser-plugin/totemConePlaylist.cpp
  37. +60
    -0
      browser-plugin/totemConePlaylist.h
  38. +95
    -0
      browser-plugin/totemConePlaylistItems.cpp
  39. +52
    -0
      browser-plugin/totemConePlaylistItems.h
  40. +136
    -0
      browser-plugin/totemConeVideo.cpp
  41. +61
    -0
      browser-plugin/totemConeVideo.h
  42. +209
    -0
      browser-plugin/totemGMPControls.cpp
  43. +71
    -0
      browser-plugin/totemGMPControls.h
  44. +104
    -0
      browser-plugin/totemGMPError.cpp
  45. +54
    -0
      browser-plugin/totemGMPError.h
  46. +171
    -0
      browser-plugin/totemGMPNetwork.cpp
  47. +81
    -0
      browser-plugin/totemGMPNetwork.h
  48. +313
    -0
      browser-plugin/totemGMPPlayer.cpp
  49. +99
    -0
      browser-plugin/totemGMPPlayer.h
  50. +158
    -0
      browser-plugin/totemGMPPlaylist.cpp
  51. +65
    -0
      browser-plugin/totemGMPPlaylist.h
  52. +223
    -0
      browser-plugin/totemGMPSettings.cpp
  53. +68
    -0
      browser-plugin/totemGMPSettings.h
  54. +179
    -0
      browser-plugin/totemMullYPlugin.cpp
  55. +104
    -0
      browser-plugin/totemMullYPlugin.h
  56. +209
    -0
      browser-plugin/totemNPClass.cpp
  57. +156
    -0
      browser-plugin/totemNPClass.h
  58. +324
    -0
      browser-plugin/totemNPNGlue.cpp
  59. +586
    -0
      browser-plugin/totemNPObject.cpp
  60. +186
    -0
      browser-plugin/totemNPObject.h
  61. +124
    -0
      browser-plugin/totemNPObjectWrapper.h
  62. +113
    -0
      browser-plugin/totemNPVariantWrapper.h
  63. +554
    -0
      browser-plugin/totemNarrowSpacePlugin.cpp
  64. +142
    -0
      browser-plugin/totemNarrowSpacePlugin.h
  65. +2685
    -0
      browser-plugin/totemPlugin.cpp
  66. +416
    -0
      browser-plugin/totemPlugin.h
  67. +470
    -0
      browser-plugin/totemPluginGlue.cpp
  68. +54
    -0
      browser-plugin/totemVegasPlugin.cpp
  69. +48
    -0
      browser-plugin/totemVegasPlugin.h
  70. +347
    -0
      build-aux/compile
  71. +1535
    -0
      build-aux/config.guess
  72. +1790
    -0
      build-aux/config.sub
  73. +791
    -0
      build-aux/depcomp
  74. +527
    -0
      build-aux/install-sh
  75. +9655
    -0
      build-aux/ltmain.sh
  76. +215
    -0
      build-aux/missing
  77. +170
    -0
      build-aux/py-compile
  78. +127
    -0
      build-aux/test-driver
  79. +310
    -0
      compile
  80. +1522
    -0
      config.guess
  81. +98
    -0
      config.h.in
  82. +1766
    -0
      config.sub
  83. +26476
    -0
      configure
  84. +837
    -0
      configure.ac
  85. +126
    -0
      data/Makefile.am
  86. +1095
    -0
      data/Makefile.in
  87. +22
    -0
      data/desktop.sh
  88. BIN
      data/filmholes-big-left.png
  89. BIN
      data/filmholes-big-right.png
  90. BIN
      data/filmholes.png
  91. +263
    -0
      data/fullscreen.ui
  92. +9
    -0
      data/icons/16x16/Makefile.am
  93. +646
    -0
      data/icons/16x16/Makefile.in
  94. BIN
      data/icons/16x16/totem-tv.png
  95. +320
    -0
      data/icons/16x16/totem-tv.svg
  96. BIN
      data/icons/16x16/totem.png
  97. +9
    -0
      data/icons/22x22/Makefile.am
  98. +646
    -0
      data/icons/22x22/Makefile.in
  99. BIN
      data/icons/22x22/totem-tv.png
  100. +352
    -0
      data/icons/22x22/totem-tv.svg

+ 4
- 0
AUTHORS View File

@@ -0,0 +1,4 @@

Bastien Nocera <hadess@hadess.net>
Julien Moutte <julien@moutte.net> (GStreamer backend)


+ 354
- 0
COPYING View File

@@ -0,0 +1,354 @@
# This GPL license have a exception clause added, see at the bottom of file
# for details.

GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

Preamble

The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.

When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.

To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.

For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.

We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.

Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.

Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.

The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".

Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.

1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.

You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.

2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:

a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.

b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.

c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.

Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.

In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.

3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:

a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,

b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,

c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)

The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.

If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.

5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.

6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.

7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.

If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.

It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.

This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.

9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.

10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.

NO WARRANTY

11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.

12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.

END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs

If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA


Also add information on how to contact you by electronic and paper mail.

If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:

Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.

You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:

Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.

<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice

This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

The Totem project hereby grants permission for non-GPL compatible
GStreamer plugins to be used and distributed together with GStreamer and
Totem. This permission is above and beyond the permissions granted by
the GPL license by which Totem is covered. If you modify this code, you may
extend this exception to your version of the code, but you are not obligated
to do so. If you do not wish to do so, delete this exception statement from
your version.

Note that the src/totem-subtitle-encoding.c file was relicensed to LGPL
(see http://bugzilla.gnome.org/show_bug.cgi?id=515809).

+ 25949
- 0
ChangeLog
File diff suppressed because it is too large
View File


+ 27047
- 0
ChangeLog.pre-gitlog
File diff suppressed because it is too large
View File


+ 370
- 0
INSTALL View File

@@ -0,0 +1,370 @@
Installation Instructions
*************************

Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
Inc.

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. This file is offered as-is,
without warranty of any kind.

Basic Installation
==================

Briefly, the shell commands `./configure; make; make install' should
configure, build, and install this package. The following
more-detailed instructions are generic; see the `README' file for
instructions specific to this package. Some packages provide this
`INSTALL' file but do not implement all of the features documented
below. The lack of an optional feature in a given package is not
necessarily a bug. More recommendations for GNU packages can be found
in *note Makefile Conventions: (standards)Makefile Conventions.

The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions. Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, and a
file `config.log' containing compiler output (useful mainly for
debugging `configure').

It can also use an optional file (typically called `config.cache'
and enabled with `--cache-file=config.cache' or simply `-C') that saves
the results of its tests to speed up reconfiguring. Caching is
disabled by default to prevent problems with accidental use of stale
cache files.

If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If you are using the cache, and at
some point `config.cache' contains results you don't want to keep, you
may remove or edit it.

The file `configure.ac' (or `configure.in') is used to create
`configure' by a program called `autoconf'. You need `configure.ac' if
you want to change it or regenerate `configure' using a newer version
of `autoconf'.

The simplest way to compile this package is:

1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system.

Running `configure' might take a while. While running, it prints
some messages telling which features it is checking for.

2. Type `make' to compile the package.

3. Optionally, type `make check' to run any self-tests that come with
the package, generally using the just-built uninstalled binaries.

4. Type `make install' to install the programs and any data files and
documentation. When installing into a prefix owned by root, it is
recommended that the package be configured and built as a regular
user, and only the `make install' phase executed with root
privileges.

5. Optionally, type `make installcheck' to repeat any self-tests, but
this time using the binaries in their final installed location.
This target does not install anything. Running this target as a
regular user, particularly if the prior `make install' required
root privileges, verifies that the installation completed
correctly.

6. You can remove the program binaries and object files from the
source code directory by typing `make clean'. To also remove the
files that `configure' created (so you can compile the package for
a different kind of computer), type `make distclean'. There is
also a `make maintainer-clean' target, but that is intended mainly
for the package's developers. If you use it, you may have to get
all sorts of other programs in order to regenerate files that came
with the distribution.

7. Often, you can also type `make uninstall' to remove the installed
files again. In practice, not all packages have tested that
uninstallation works correctly, even though it is required by the
GNU Coding Standards.

8. Some packages, particularly those that use Automake, provide `make
distcheck', which can by used by developers to test that all other
targets like `make install' and `make uninstall' work correctly.
This target is generally not run by end users.

Compilers and Options
=====================

Some systems require unusual options for compilation or linking that
the `configure' script does not know about. Run `./configure --help'
for details on some of the pertinent environment variables.

You can give `configure' initial values for configuration parameters
by setting variables in the command line or in the environment. Here
is an example:

./configure CC=c99 CFLAGS=-g LIBS=-lposix

*Note Defining Variables::, for more details.

Compiling For Multiple Architectures
====================================

You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you can use GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'. This
is known as a "VPATH" build.

With a non-GNU `make', it is safer to compile the package for one
architecture at a time in the source code directory. After you have
installed the package for one architecture, use `make distclean' before
reconfiguring for another architecture.

On MacOS X 10.5 and later systems, you can create libraries and
executables that work on multiple system types--known as "fat" or
"universal" binaries--by specifying multiple `-arch' options to the
compiler but only a single `-arch' option to the preprocessor. Like
this:

./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
CPP="gcc -E" CXXCPP="g++ -E"

This is not guaranteed to produce working output in all cases, you
may have to build one architecture at a time and combine the results
using the `lipo' tool if you have problems.

Installation Names
==================

By default, `make install' installs the package's commands under
`/usr/local/bin', include files under `/usr/local/include', etc. You
can specify an installation prefix other than `/usr/local' by giving
`configure' the option `--prefix=PREFIX', where PREFIX must be an
absolute file name.

You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
PREFIX as the prefix for installing programs and libraries.
Documentation and other data files still use the regular prefix.

In addition, if you use an unusual directory layout you can give
options like `--bindir=DIR' to specify different values for particular
kinds of files. Run `configure --help' for a list of the directories
you can set and what kinds of files go in them. In general, the
default for these options is expressed in terms of `${prefix}', so that
specifying just `--prefix' will affect all of the other directory
specifications that were not explicitly provided.

The most portable way to affect installation locations is to pass the
correct locations to `configure'; however, many packages provide one or
both of the following shortcuts of passing variable assignments to the
`make install' command line to change installation locations without
having to reconfigure or recompile.

The first method involves providing an override variable for each
affected directory. For example, `make install
prefix=/alternate/directory' will choose an alternate location for all
directory configuration variables that were expressed in terms of
`${prefix}'. Any directories that were specified during `configure',
but not in terms of `${prefix}', must each be overridden at install
time for the entire installation to be relocated. The approach of
makefile variable overrides for each directory variable is required by
the GNU Coding Standards, and ideally causes no recompilation.
However, some platforms have known limitations with the semantics of
shared libraries that end up requiring recompilation when using this
method, particularly noticeable in packages that use GNU Libtool.

The second method involves providing the `DESTDIR' variable. For
example, `make install DESTDIR=/alternate/directory' will prepend
`/alternate/directory' before all installation names. The approach of
`DESTDIR' overrides is not required by the GNU Coding Standards, and
does not work on platforms that have drive letters. On the other hand,
it does better at avoiding recompilation issues, and works well even
when some directory options were not specified in terms of `${prefix}'
at `configure' time.

Optional Features
=================

If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.

Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System). The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.

For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.

Some packages offer the ability to configure how verbose the
execution of `make' will be. For these packages, running `./configure
--enable-silent-rules' sets the default to minimal output, which can be
overridden with `make V=1'; while running `./configure
--disable-silent-rules' sets the default to verbose, which can be
overridden with `make V=0'.

Particular systems
==================

On HP-UX, the default C compiler is not ANSI C compatible. If GNU
CC is not installed, it is recommended to use the following options in
order to use an ANSI C compiler:

./configure CC="cc -Ae -D_XOPEN_SOURCE=500"

and if that doesn't work, install pre-built binaries of GCC for HP-UX.

HP-UX `make' updates targets which have the same time stamps as
their prerequisites, which makes it generally unusable when shipped
generated files such as `configure' are involved. Use GNU `make'
instead.

On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
parse its `<wchar.h>' header file. The option `-nodtk' can be used as
a workaround. If GNU CC is not installed, it is therefore recommended
to try

./configure CC="cc"

and if that doesn't work, try

./configure CC="cc -nodtk"

On Solaris, don't put `/usr/ucb' early in your `PATH'. This
directory contains several dysfunctional programs; working variants of
these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
in your `PATH', put it _after_ `/usr/bin'.

On Haiku, software installed for all users goes in `/boot/common',
not `/usr/local'. It is recommended to use the following options:

./configure --prefix=/boot/common

Specifying the System Type
==========================

There may be some features `configure' cannot figure out
automatically, but needs to determine by the type of machine the package
will run on. Usually, assuming the package is built to be run on the
_same_ architectures, `configure' can figure that out, but if it prints
a message saying it cannot guess the machine type, give it the
`--build=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name which has the form:

CPU-COMPANY-SYSTEM

where SYSTEM can have one of these forms:

OS
KERNEL-OS

See the file `config.sub' for the possible values of each field. If
`config.sub' isn't included in this package, then this package doesn't
need to know the machine type.

If you are _building_ compiler tools for cross-compiling, you should
use the option `--target=TYPE' to select the type of system they will
produce code for.

If you want to _use_ a cross compiler, that generates code for a
platform different from the build platform, you should specify the
"host" platform (i.e., that on which the generated programs will
eventually be run) with `--host=TYPE'.

Sharing Defaults
================

If you want to set default values for `configure' scripts to share,
you can create a site shell script called `config.site' that gives
default values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists. Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.

Defining Variables
==================

Variables not defined in a site shell script can be set in the
environment passed to `configure'. However, some packages may run
configure again during the build, and the customized values of these
variables may be lost. In order to avoid this problem, you should set
them in the `configure' command line, using `VAR=value'. For example:

./configure CC=/usr/local2/bin/gcc

causes the specified `gcc' to be used as the C compiler (unless it is
overridden in the site shell script).

Unfortunately, this technique does not work for `CONFIG_SHELL' due to
an Autoconf limitation. Until the limitation is lifted, you can use
this workaround:

CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash

`configure' Invocation
======================

`configure' recognizes the following options to control how it
operates.

`--help'
`-h'
Print a summary of all of the options to `configure', and exit.

`--help=short'
`--help=recursive'
Print a summary of the options unique to this package's
`configure', and exit. The `short' variant lists options used
only in the top level, while the `recursive' variant lists options
also present in any nested packages.

`--version'
`-V'
Print the version of Autoconf used to generate the `configure'
script, and exit.

`--cache-file=FILE'
Enable the cache: use and save the results of the tests in FILE,
traditionally `config.cache'. FILE defaults to `/dev/null' to
disable caching.

`--config-cache'
`-C'
Alias for `--cache-file=config.cache'.

`--quiet'
`--silent'
`-q'
Do not print messages saying which checks are being made. To
suppress all normal output, redirect it to `/dev/null' (any error
messages will still be shown).

`--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.

`--prefix=DIR'
Use DIR as the installation prefix. *note Installation Names::
for more details, including other options available for fine-tuning
the installation locations.

`--no-create'
`-n'
Run the configure checks, but stop before creating any output
files.

`configure' also accepts some other, not widely useful, options. Run
`configure --help' for more details.

+ 7
- 0
MAINTAINERS View File

@@ -0,0 +1,7 @@
Bastien Nocera
Email: hadess@hadess.net
Userid: hadess

Tim-Philipp Müller
Email: tim at centricular dot net
Userid: tpm

+ 62
- 0
Makefile.am View File

@@ -0,0 +1,62 @@
ACLOCAL_AMFLAGS = -I m4 -I libgd ${ACLOCAL_FLAGS}

NORMAL_SUBDIRS = libgd po data help src docs

SUBDIRS = $(NORMAL_SUBDIRS)

if ENABLE_BROWSER_PLUGINS
SUBDIRS += browser-plugin
endif

EXTRA_DIST = \
license_change \
autogen.sh \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
AUTHORS NEWS \
totem.spec.in \
totem.spec \
ChangeLog.pre-gitlog \
MAINTAINERS \
totem.doap

CLEANFILES = totem.spec

MAINTAINERCLEANFILES = \
$(srcdir)/INSTALL \
$(srcdir)/aclocal.m4 \
$(srcdir)/autoscan.log \
$(srcdir)/compile \
$(srcdir)/config.guess \
$(srcdir)/config.h.in \
$(srcdir)/config.sub \
$(srcdir)/configure.scan \
$(srcdir)/depcomp \
$(srcdir)/install-sh \
$(srcdir)/ltmain.sh \
$(srcdir)/missing \
$(srcdir)/mkinstalldirs \
$(srcdir)/py-compile \
$(srcdir)/gtk-doc.make \
$(srcdir)/ChangeLog \
$(srcdir)/omf.make \
$(srcdir)/xmldocs.make \
`find "$(srcdir)" -type f -name Makefile.in -print`

DISTCLEANFILES = intltool-extract intltool-merge intltool-update

DIST_SUBDIRS = $(NORMAL_SUBDIRS) browser-plugin
DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper --enable-gtk-doc --with-nautilusdir='$${libdir}/nautilus/extensions-2.0-distcheck' --enable-vala=no --enable-introspection

# Build ChangeLog from GIT history
ChangeLog:
@if test -f $(top_srcdir)/.git/HEAD; then \
git log --stat --after="Mon Jul 20 23:47:57 2009" > $@; \
fi

dist: ChangeLog

.PHONY: ChangeLog

-include $(top_srcdir)/git.mk

+ 1003
- 0
Makefile.in
File diff suppressed because it is too large
View File


+ 2157
- 0
NEWS
File diff suppressed because it is too large
View File


+ 121
- 0
README View File

@@ -0,0 +1,121 @@

_|_ __|_ _ ._ _
|_(_)|_(/_| | |

Totem is movie player for the GNOME desktop based on GStreamer.
It features a playlist, a full-screen mode, seek and volume controls,
as well as complete keyboard navigation.

Apart from a movie player, it also includes a Mozilla plugin, and a
Nautilus thumbnailer and properties page.

News
====

See NEWS file

Dependencies
============

GStreamer 1.0
http://gstreamer.freedesktop.org

GNOME 3.x development platform
http://www.gnome.org

gromit 20041213, for the Telestrator mode:
http://www.home.unix-ag.org/simon/gromit/

Controls
========

Ctrl+H:
Hide/Show controls in windowed mode
P, Ctrl+Space:
Play/Pause
Escape (in full screen mode):
Switch to windowed mode
Ctrl+F:
Toggle full screen
0/½, 1, 2:
Zoom respectively to 50%, 100% and 200% of the video's original size
Left arrow:
Go back 15 seconds
Right arrow:
Go forward 60 seconds
Shift+Left arrow:
Go back 5 seconds
Shift+Right arrow:
Go forward 15 seconds
Ctrl+Left arrow:
Go back 3 minutes
Ctrl+Right arrow:
Go forward 10 minutes
Up Arrow:
Increase the volume by 8%
Down Arrow:
Decrease the volume by 8%
Keypad Up / Keypad 8:
DVD Action Up
Keypad Down / Keypad 2:
DVD Action Down
Keypad Left / Keypad 4:
DVD Action Left
Keypad Right / Keypad 6:
DVD Action Right
B, Alt+Left arrow, Minus key:
Previous stream (Back)
N, Alt+Right arrow, Plus key:
Next stream (Next)
Ctrl+Q:
Quit
Ctrl+R, Ctrl+T:
Zoom in and zoom out, respectively
Ctrl+0:
Reset the zoom level
Ctrl+K:
Show the "Skip to" dialog
Ctrl+D:
Toggle drawing using Gromit
Ctrl+E:
Erase drawing using Gromit
Mouse button 1 double-click:
Toggle full screen
Middle mouse button click:
Play/Pause

Copyright
=========

Nifty media player icon by Jakub Steiner <jimmac@ximian.com>

UI help by Seth Nickell <snickell@stanford.edu>

Automatic GStreamer codec installation (optional)
================================================================
- requires GStreamer core and gst-plugins-base >= 0.10.12
- calls (via GStreamer) a predefined external helper script (which is to be
installed by the distro and can be defined via gst-plugins-base's configure
script when building gst-plugins-base) with details of missing GStreamer
plugins. See
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstpbutilsinstallplugins.html#id511743
for more information on how this all works together.

BUGS
====

Bugs should be filed in GNOME's Bugzilla:
http://bugzilla.gnome.org/enter_bug.cgi?product=totem

To get a better debug output, run:
# totem --debug

Or for the stand-alone applications:
# gsettings set org.gnome.totem debug true
then run your application and capture its output

Contact
=======

Bastien Nocera <hadess@hadess.net>
http://www.gnome.org/projects/totem/

+ 1
- 0
TODO View File

@@ -0,0 +1 @@
see README

+ 2267
- 0
aclocal.m4
File diff suppressed because it is too large
View File


+ 24
- 0
autogen.sh View File

@@ -0,0 +1,24 @@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

PKG_NAME="totem"
ACLOCAL_FLAGS="-I libgd $ACLOCAL_FLAGS"

(test -f $srcdir/configure.ac) || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo " top-level $PKG_NAME directory"
exit 1
}

echo "+ Setting up submodules"
git submodule update --init --recursive

which gnome-autogen.sh || {
echo "You need to install gnome-common from the GNOME git"
exit 1
}

REQUIRED_PKG_CONFIG_VERSION=0.17.1 REQUIRED_AUTOMAKE_VERSION=1.11 USE_GNOME2_MACROS=1 . gnome-autogen.sh --enable-debug "$@"

+ 230
- 0
browser-plugin/Makefile.am View File

@@ -0,0 +1,230 @@
plugindir = $(BROWSER_PLUGIN_DIR)
plugin_LTLIBRARIES =

EXTRA_DIST = \
plugin.symbols \
TODO \
README.browser-plugin

AM_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/backend \
-I$(top_builddir)/src \
-I$(top_builddir)/src/backend \
-DSYSCONFDIR="\"$(sysconfdir)\"" \
-DLIBEXECDIR="\"$(libexecdir)\""

plugin_sources = \
npapi.h \
npruntime.h \
npupp.h \
totemNPNGlue.cpp \
totemNPClass.cpp \
totemNPClass.h \
totemNPObject.cpp \
totemNPObject.h \
totemNPObjectWrapper.h \
totemNPVariantWrapper.h \
totemPluginGlue.cpp \
totemPlugin.cpp \
totemPlugin.h \
totem-plugin-viewer-constants.h

plugin_cxxflags = \
$(BROWSER_PLUGIN_CFLAGS) \
$(WARN_CXXFLAGS) \
$(PLUGIN_EXTRA_WARN_CXXFLAGS) \
$(AM_CXXFLAGS)

plugin_libadd = $(BROWSER_PLUGIN_LIBS)

plugin_ldflags = \
-avoid-version \
-export-symbols $(srcdir)/plugin.symbols \
-module \
-no-undefined \
$(AM_LDFLAGS)

# The Glow button test program
noinst_PROGRAMS = test-glow-button

test_glow_button_SOURCES = \
totem-glow-button.c \
totem-glow-button.h \
test-glow-button.c

test_glow_button_LDADD = \
$(GLOW_BUTTON_LIBS) \
-lm

test_glow_button_CFLAGS = \
$(GLOW_BUTTON_CFLAGS) \
$(WARN_CFLAGS) \
$(AM_CFLAGS)

# Totem Plugin Viewer
libexec_PROGRAMS = totem-plugin-viewer

# Are we a bit thick, Mister?
totem-plugin-viewer.c: totem-plugin-viewer-interface.h $(MARSHAL_FILES)

totem_plugin_viewer_SOURCES = \
totem-glow-button.c \
totem-glow-button.h \
totem-plugin-viewer-interface.h \
totem-plugin-viewer.c \
totem-plugin-viewer-constants.h \
totem-plugin-viewer-options.h \
$(MARSHAL_FILES)

totem_plugin_viewer_CPPFLAGS = \
-DGNOMELOCALEDIR="\"$(datadir)/locale\"" \
-DG_LOG_DOMAIN=\""TotemEmbedded\"" \
-I$(top_srcdir)/src/gst \
$(AM_CPPFLAGS)

totem_plugin_viewer_CFLAGS = \
$(PLUGIN_VIEWER_CFLAGS) \
$(WARN_CFLAGS) \
$(AM_CFLAGS)

totem_plugin_viewer_LDADD = \
$(top_builddir)/src/backend/libbaconvideowidget.la \
$(top_builddir)/src/libtotem_player.la \
$(PLUGIN_VIEWER_LIBS)

totem_plugin_viewer_LDFLAGS = -export-dynamic

totem-plugin-viewer-interface.h: org_gnome_totem_PluginViewer.xml
$(DBUS_BIND) --prefix=totem_embedded --mode=glib-server $< > $@

CLEANFILES = totem-plugin-viewer-interface.h
EXTRA_DIST += org_gnome_totem_PluginViewer.xml

# Totem GMP Plugin
if ENABLE_GMP_PLUGIN
plugin_LTLIBRARIES += libtotem-gmp-plugin.la

libtotem_gmp_plugin_la_SOURCES = \
$(plugin_sources) \
totemGMPControls.cpp \
totemGMPControls.h \
totemGMPError.cpp \
totemGMPError.h \
totemGMPNetwork.cpp \
totemGMPNetwork.h \
totemGMPPlayer.cpp \
totemGMPPlayer.h \
totemGMPPlaylist.cpp \
totemGMPPlaylist.h \
totemGMPSettings.cpp \
totemGMPSettings.h

libtotem_gmp_plugin_la_CPPFLAGS = \
-DXP_UNIX \
-DMOZ_X11 \
-DTOTEM_GMP_PLUGIN \
-DTOTEM_PL_PARSER_MINI \
$(AM_CPPFLAGS)

libtotem_gmp_plugin_la_CXXFLAGS = $(plugin_cxxflags)
libtotem_gmp_plugin_la_LIBADD = $(plugin_libadd)
libtotem_gmp_plugin_la_LDFLAGS = $(plugin_ldflags)
endif

# Totem NarrowSpace Plugin
if ENABLE_NARROWSPACE_PLUGIN
plugin_LTLIBRARIES += libtotem-narrowspace-plugin.la

libtotem_narrowspace_plugin_la_SOURCES = \
$(plugin_sources) \
totemNarrowSpacePlugin.cpp \
totemNarrowSpacePlugin.h

libtotem_narrowspace_plugin_la_CPPFLAGS = \
-DXP_UNIX \
-DMOZ_X11 \
-DTOTEM_NARROWSPACE_PLUGIN \
-DTOTEM_PL_PARSER_MINI \
$(AM_CPPFLAGS)

libtotem_narrowspace_plugin_la_CXXFLAGS = $(plugin_cxxflags)
libtotem_narrowspace_plugin_la_LIBADD = $(plugin_libadd)
libtotem_narrowspace_plugin_la_LDFLAGS = $(plugin_ldflags)
endif

# Totem Vegas Plugin
if ENABLE_VEGAS_PLUGIN
plugin_LTLIBRARIES += libtotem-vegas-plugin.la

libtotem_vegas_plugin_la_SOURCES = \
$(plugin_sources) \
totemVegasPlugin.cpp \
totemVegasPlugin.h

libtotem_vegas_plugin_la_CPPFLAGS = \
-DXP_UNIX \
-DMOZ_X11 \
-DTOTEM_VEGAS_PLUGIN \
-DTOTEM_PL_PARSER_MINI \
$(AM_CPPFLAGS)

libtotem_vegas_plugin_la_CXXFLAGS = $(plugin_cxxflags)
libtotem_vegas_plugin_la_LIBADD = $(plugin_libadd)
libtotem_vegas_plugin_la_LDFLAGS = $(plugin_ldflags)
endif

# Totem MULLY Plugin
if ENABLE_MULLY_PLUGIN
plugin_LTLIBRARIES += libtotem-mully-plugin.la

libtotem_mully_plugin_la_SOURCES = \
$(plugin_sources) \
totemMullYPlugin.cpp \
totemMullYPlugin.h

libtotem_mully_plugin_la_CPPFLAGS = \
-DXP_UNIX \
-DMOZ_X11 \
-DTOTEM_MULLY_PLUGIN \
-DTOTEM_PL_PARSER_MINI \
$(AM_CPPFLAGS)

libtotem_mully_plugin_la_CXXFLAGS = $(plugin_cxxflags)
libtotem_mully_plugin_la_LIBADD = $(plugin_libadd)
libtotem_mully_plugin_la_LDFLAGS = $(plugin_ldflags)
endif

# Totem Cone Plugin
if ENABLE_CONE_PLUGIN
plugin_LTLIBRARIES += libtotem-cone-plugin.la

libtotem_cone_plugin_la_SOURCES = \
$(plugin_sources) \
totemConeAudio.cpp \
totemConeAudio.h \
totemCone.cpp \
totemCone.h \
totemConeInput.cpp \
totemConeInput.h \
totemConePlaylist.cpp \
totemConePlaylist.h \
totemConePlaylistItems.cpp \
totemConePlaylistItems.h \
totemConeVideo.cpp \
totemConeVideo.h

libtotem_cone_plugin_la_CPPFLAGS = \
-DXP_UNIX \
-DMOZ_X11 \
-DTOTEM_CONE_PLUGIN \
-DTOTEM_PL_PARSER_MINI \
$(AM_CPPFLAGS)

libtotem_cone_plugin_la_CXXFLAGS = $(plugin_cxxflags)
libtotem_cone_plugin_la_LIBADD = $(plugin_libadd)
libtotem_cone_plugin_la_LDFLAGS = $(plugin_ldflags)
endif

-include $(top_srcdir)/git.mk

+ 1634
- 0
browser-plugin/Makefile.in
File diff suppressed because it is too large
View File


+ 49
- 0
browser-plugin/README.browser-plugin View File

@@ -0,0 +1,49 @@
Notes on the plugin's internals
===============================


Envars of interest
===================

export TOTEM_EMBEDDED_DEBUG_SYNC=1
- Pass --sync to the totem-plugin-viewer

export TOTEM_EMBEDDED_DEBUG_FATAL=1
- Pass --g-fatal-warnings to the totem-plugin-viewer

export TOTEM_EMBEDDED_GDB=1
- Launch a gdb session inside an xterm to capture crashes and errors
from the totem-plugin-viewer

export MOZ_PLUGIN_PATH=`pwd`
- Mozilla/Gecko/Firefox envar to lookup the browser plugins in the current
directory

Disabling specific mime-types
=============================

This can be achieved using 2 files. They are:
/etc/totem/browser-plugins.ini ($(sysconfdir)/totem/browser-plugins.ini)
and
~/.config/totem/browser-plugins.ini

The format is:
[Plugins]
[mimetype].disabled=true/false

For example, to disable all the mime-types in the Complex plugin:
[Plugins]
audio/x-pn-realaudio-plugin.disabled=true

The system-wide file will take precedence over any settings in the user-wide
setting. Bear in mind that Firefox/Seamonkey might not re-read the plugin list
once it's been cached. You might have to remove the pluginreg.dat from the Mozilla
profile directory.

Special topics: NarrowSpace plugin
==================================

The NarrowSpace plugin currently handles only a small portions of the possible
PARAMETERS possible:
http://developer.apple.com/documentation/QuickTime/Conceptual/QTScripting_HTML/QTScripting_HTML_Document/chapter_1000_section_5.html


+ 14
- 0
browser-plugin/TODO View File

@@ -0,0 +1,14 @@
Plugin:
- get info about play state, URL etc back from viewer to the plugin
- support all <embed> and <object> attributes that the legacy plugins support
- there still seem to be some unnecessary symbols exported in the plugin .so's
- use peer-2-peer DBUS instead of session bus
- (maybe) use libdbus directly instead of dbus-glib
- unify playlist handling into the viewer (is it possible to write a gstreamer element
that handles the playlist internally?)
- make StreamAsFile use async calls; need to keep a link to the file around!!
- put back narrowspace URL extension parsing
- use nsCOMPtr<> once the linking has been figured out (libxpcomglue_s)
- invert DBUS-OpenStream/NPN_GetURL order: this is necessary so we can push the real stream URI
to the viewer (for use as base uri for redirects)


+ 808
- 0
browser-plugin/npapi.h View File

@@ -0,0 +1,808 @@
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/*
* Netscape client plug-in API spec
*/

#ifndef _NPAPI_H_
#define _NPAPI_H_

#ifdef INCLUDE_JAVA
#include "jri.h" /* Java Runtime Interface */
#else
#define jref void *
#define JRIEnv void
#endif

#ifdef _WIN32
# ifndef XP_WIN
# define XP_WIN 1
# endif /* XP_WIN */
#endif /* _WIN32 */

#ifdef __MWERKS__
# define _declspec __declspec
# ifdef macintosh
# ifndef XP_MAC
# define XP_MAC 1
# endif /* XP_MAC */
# endif /* macintosh */
# ifdef __INTEL__
# undef NULL
# ifndef XP_WIN
# define XP_WIN 1
# endif /* __INTEL__ */
# endif /* XP_PC */
#endif /* __MWERKS__ */

#if defined(__APPLE_CC__) && !defined(__MACOS_CLASSIC__) && !defined(XP_UNIX)
# define XP_MACOSX
#endif

#ifdef XP_MAC
#include <Quickdraw.h>
#include <Events.h>
#endif

#if defined(XP_MACOSX) && defined(__LP64__)
#define NP_NO_QUICKDRAW
#define NP_NO_CARBON
#endif

#ifdef XP_MACOSX
#include <ApplicationServices/ApplicationServices.h>
#include <OpenGL/OpenGL.h>
#ifndef NP_NO_CARBON
#include <Carbon/Carbon.h>
#endif
#endif

#ifdef XP_UNIX
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <stdio.h>
#endif

#ifdef XP_WIN
#include <windows.h>
#endif

/*----------------------------------------------------------------------*/
/* Plugin Version Constants */
/*----------------------------------------------------------------------*/

#define NP_VERSION_MAJOR 0
#define NP_VERSION_MINOR 20



/*----------------------------------------------------------------------*/
/* Definition of Basic Types */
/*----------------------------------------------------------------------*/

#ifndef _UINT16
#define _UINT16
typedef unsigned short uint16;
#endif

#ifndef _UINT32
#define _UINT32
#ifdef __LP64__
typedef unsigned int uint32;
#else /* __LP64__ */
typedef unsigned long uint32;
#endif /* __LP64__ */
#endif

#ifndef _INT16
#define _INT16
typedef short int16;
#endif

#ifndef _INT32
#define _INT32
#ifdef __LP64__
typedef int int32;
#else /* __LP64__ */
typedef long int32;
#endif /* __LP64__ */
#endif

#ifndef FALSE
#define FALSE (0)
#endif
#ifndef TRUE
#define TRUE (1)
#endif
#ifndef NULL
#define NULL (0L)
#endif

typedef unsigned char NPBool;
typedef int16 NPError;
typedef int16 NPReason;
typedef char* NPMIMEType;



/*----------------------------------------------------------------------*/
/* Structures and definitions */
/*----------------------------------------------------------------------*/

#if !defined(__LP64__)
#if defined(XP_MAC) || defined(XP_MACOSX)
#pragma options align=mac68k
#endif
#endif /* __LP64__ */

/*
* NPP is a plug-in's opaque instance handle
*/
typedef struct _NPP
{
void* pdata; /* plug-in private data */
void* ndata; /* netscape private data */
} NPP_t;

typedef NPP_t* NPP;


typedef struct _NPStream
{
void* pdata; /* plug-in private data */
void* ndata; /* netscape private data */
const char* url;
uint32 end;
uint32 lastmodified;
void* notifyData;
const char* headers; /* Response headers from host.
* Exists only for >= NPVERS_HAS_RESPONSE_HEADERS.
* Used for HTTP only; NULL for non-HTTP.
* Available from NPP_NewStream onwards.
* Plugin should copy this data before storing it.
* Includes HTTP status line and all headers,
* preferably verbatim as received from server,
* headers formatted as in HTTP ("Header: Value"),
* and newlines (\n, NOT \r\n) separating lines.
* Terminated by \n\0 (NOT \n\n\0). */
} NPStream;


typedef struct _NPByteRange
{
int32 offset; /* negative offset means from the end */
uint32 length;
struct _NPByteRange* next;
} NPByteRange;


typedef struct _NPSavedData
{
int32 len;
void* buf;
} NPSavedData;


typedef struct _NPRect
{
uint16 top;
uint16 left;
uint16 bottom;
uint16 right;
} NPRect;


#ifdef XP_UNIX
/*
* Unix specific structures and definitions
*/

/*
* Callback Structures.
*
* These are used to pass additional platform specific information.
*/
enum {
NP_SETWINDOW = 1,
NP_PRINT
};

typedef struct
{
int32 type;
} NPAnyCallbackStruct;

typedef struct
{
int32 type;
Display* display;
Visual* visual;
Colormap colormap;
unsigned int depth;
} NPSetWindowCallbackStruct;

typedef struct
{
int32 type;
FILE* fp;
} NPPrintCallbackStruct;

#endif /* XP_UNIX */

/*
* The following masks are applied on certain platforms to NPNV and
* NPPV selectors that pass around pointers to COM interfaces. Newer
* compilers on some platforms may generate vtables that are not
* compatible with older compilers. To prevent older plugins from
* not understanding a new browser's ABI, these masks change the
* values of those selectors on those platforms. To remain backwards
* compatible with differenet versions of the browser, plugins can
* use these masks to dynamically determine and use the correct C++
* ABI that the browser is expecting. This does not apply to Windows
* as Microsoft's COM ABI will likely not change.
*/

#define NP_ABI_GCC3_MASK 0x10000000
/*
* gcc 3.x generated vtables on UNIX and OSX are incompatible with
* previous compilers.
*/
#if (defined (XP_UNIX) && defined(__GNUC__) && (__GNUC__ >= 3))
#define _NP_ABI_MIXIN_FOR_GCC3 NP_ABI_GCC3_MASK
#else
#define _NP_ABI_MIXIN_FOR_GCC3 0
#endif

#define NP_ABI_MACHO_MASK 0x01000000
/*
* On OSX, the Mach-O executable format is significantly
* different than CFM. In addition to having a different
* C++ ABI, it also has has different C calling convention.
* You must use glue code when calling between CFM and
* Mach-O C functions.
*/
#if (defined(TARGET_RT_MAC_MACHO))
#define _NP_ABI_MIXIN_FOR_MACHO NP_ABI_MACHO_MASK
#else
#define _NP_ABI_MIXIN_FOR_MACHO 0
#endif


#define NP_ABI_MASK (_NP_ABI_MIXIN_FOR_GCC3 | _NP_ABI_MIXIN_FOR_MACHO)

/*
* List of variable names for which NPP_GetValue shall be implemented
*/
typedef enum {
NPPVpluginNameString = 1,
NPPVpluginDescriptionString,
NPPVpluginWindowBool,
NPPVpluginTransparentBool,

NPPVjavaClass, /* Not implemented in WebKit */
NPPVpluginWindowSize, /* Not implemented in WebKit */
NPPVpluginTimerInterval, /* Not implemented in WebKit */

NPPVpluginScriptableInstance = (10 | NP_ABI_MASK), /* Not implemented in WebKit */
NPPVpluginScriptableIID = 11, /* Not implemented in WebKit */

/* 12 and over are available on Mozilla builds starting with 0.9.9 */
NPPVjavascriptPushCallerBool = 12, /* Not implemented in WebKit */
NPPVpluginKeepLibraryInMemory = 13, /* Not implemented in WebKit */
NPPVpluginNeedsXEmbed = 14, /* Not implemented in WebKit */

/* Get the NPObject for scripting the plugin. */
NPPVpluginScriptableNPObject = 15,

/* Get the plugin value (as \0-terminated UTF-8 string data) for
* form submission if the plugin is part of a form. Use
* NPN_MemAlloc() to allocate memory for the string data.
*/
NPPVformValue = 16, /* Not implemented in WebKit */
#ifdef XP_MACOSX
/* Used for negotiating drawing models */
NPPVpluginDrawingModel = 1000,
/* Used for negotiating event models */
NPPVpluginEventModel = 1001,
#endif
} NPPVariable;

/*
* List of variable names for which NPN_GetValue is implemented by Mozilla
*/
typedef enum {
NPNVxDisplay = 1,
NPNVxtAppContext,
NPNVnetscapeWindow,
NPNVjavascriptEnabledBool,
NPNVasdEnabledBool,
NPNVisOfflineBool,

/* 10 and over are available on Mozilla builds starting with 0.9.4 */
NPNVserviceManager = (10 | NP_ABI_MASK), /* Not implemented in WebKit */
NPNVDOMElement = (11 | NP_ABI_MASK), /* Not implemented in WebKit */
NPNVDOMWindow = (12 | NP_ABI_MASK), /* Not implemented in WebKit */
NPNVToolkit = (13 | NP_ABI_MASK), /* Not implemented in WebKit */
NPNVSupportsXEmbedBool = 14, /* Not implemented in WebKit */

/* Get the NPObject wrapper for the browser window. */
NPNVWindowNPObject = 15,

/* Get the NPObject wrapper for the plugins DOM element. */
NPNVPluginElementNPObject

#ifdef XP_MACOSX
, NPNVpluginDrawingModel = 1000 /* The NPDrawingModel specified by the plugin */

#ifndef NP_NO_QUICKDRAW
, NPNVsupportsQuickDrawBool = 2000 /* TRUE if the browser supports the QuickDraw drawing model */
#endif
, NPNVsupportsCoreGraphicsBool = 2001 /* TRUE if the browser supports the CoreGraphics drawing model */
, NPNVsupportsOpenGLBool = 2002 /* TRUE if the browser supports the OpenGL drawing model (CGL on Mac) */
, NPNVpluginEventModel = 1001 /* The NPEventModel specified by the plugin */
#ifndef NP_NO_CARBON
, NPNVsupportsCarbonBool = 2003 /* TRUE if the browser supports the Carbon event model */
#endif
, NPNVsupportsCocoaBool = 2004 /* TRUE if the browser supports the Cocoa event model */
#endif /* XP_MACOSX */
} NPNVariable;

/*
* The type of a NPWindow - it specifies the type of the data structure
* returned in the window field.
*/
typedef enum {
NPWindowTypeWindow = 1,
NPWindowTypeDrawable
} NPWindowType;

#ifdef XP_MACOSX

/*
* The drawing model for a Mac OS X plugin. These are the possible values for the NPNVpluginDrawingModel variable.
*/
typedef enum {
#ifndef NP_NO_QUICKDRAW
NPDrawingModelQuickDraw = 0,
#endif
NPDrawingModelCoreGraphics = 1,
NPDrawingModelOpenGL = 2
} NPDrawingModel;

/*
* The event model for a Mac OS X plugin. These are the possible values for the NPNVpluginEventModel variable.
*/

typedef enum {
#ifndef NP_NO_CARBON
NPEventModelCarbon = 0,
#endif
NPEventModelCocoa = 1,
} NPEventModel;

typedef enum {
NPCocoaEventDrawRect = 1,
NPCocoaEventMouseDown,
NPCocoaEventMouseUp,
NPCocoaEventMouseMoved,
NPCocoaEventMouseEntered,
NPCocoaEventMouseExited,
NPCocoaEventMouseDragged,
NPCocoaEventKeyDown,
NPCocoaEventKeyUp,
NPCocoaEventFlagsChanged,
NPCocoaEventFocusChanged,
NPCocoaEventWindowFocusChanged,
NPCocoaEventScrollWheel,
} NPCocoaEventType;

typedef struct _NPNSString NPNSString;
typedef struct _NPNSWindow NPNSWindow;

typedef struct _NPCocoaEvent {
NPCocoaEventType type;
union {
struct {
uint32 modifierFlags;
double pluginX;
double pluginY;
int32 buttonNumber;
int32 clickCount;
double deltaX;
double deltaY;
double deltaZ;
} mouse;
struct {
uint32 modifierFlags;
double pluginX;
double pluginY;
NPNSString *characters;
NPNSString *charactersIgnoringModifiers;
NPBool isARepeat;
uint16 keyCode;
} key;
struct {
double x;
double y;
double width;
double height;
} draw;
struct {
NPBool hasFocus;
} focus;
};
} NPCocoaEvent;

#endif

typedef struct _NPWindow
{
void* window; /* Platform specific window handle */
int32 x; /* Position of top left corner relative */
int32 y; /* to a netscape page. */
uint32 width; /* Maximum window size */
uint32 height;
NPRect clipRect; /* Clipping rectangle in port coordinates */
/* Used by MAC only. */
#ifdef XP_UNIX
void * ws_info; /* Platform-dependent additonal data */
#endif /* XP_UNIX */
NPWindowType type; /* Is this a window or a drawable? */
} NPWindow;


typedef struct _NPFullPrint
{
NPBool pluginPrinted; /* Set TRUE if plugin handled fullscreen */
/* printing */
NPBool printOne; /* TRUE if plugin should print one copy */
/* to default printer */
void* platformPrint; /* Platform-specific printing info */
} NPFullPrint;

typedef struct _NPEmbedPrint
{
NPWindow window;
void* platformPrint; /* Platform-specific printing info */
} NPEmbedPrint;

typedef struct _NPPrint
{
uint16 mode; /* NP_FULL or NP_EMBED */
union
{
NPFullPrint fullPrint; /* if mode is NP_FULL */
NPEmbedPrint embedPrint; /* if mode is NP_EMBED */
} print;
} NPPrint;

#if defined(XP_MAC) || defined(XP_MACOSX)

#ifndef NP_NO_CARBON
typedef EventRecord NPEvent;
#endif

#elif defined(XP_WIN)
typedef struct _NPEvent
{
uint16 event;
uint32 wParam;
uint32 lParam;
} NPEvent;
#elif defined (XP_UNIX)
typedef XEvent NPEvent;
#else
typedef void* NPEvent;
#endif /* XP_MAC */

#if defined(XP_MAC)
typedef RgnHandle NPRegion;
#elif defined(XP_MACOSX)
/*
* NPRegion's type depends on the drawing model specified by the plugin (see NPNVpluginDrawingModel).
* NPQDRegion represents a QuickDraw RgnHandle and is used with the QuickDraw drawing model.
* NPCGRegion repesents a graphical region when using any other drawing model.
*/
typedef void *NPRegion;
#ifndef NP_NO_QUICKDRAW
typedef RgnHandle NPQDRegion;
#endif
typedef CGPathRef NPCGRegion;
#elif defined(XP_WIN)
typedef HRGN NPRegion;
#elif defined(XP_UNIX)
typedef Region NPRegion;
#else
typedef void *NPRegion;
#endif /* XP_MAC */

#ifdef XP_MACOSX

/*
* NP_CGContext is the type of the NPWindow's 'window' when the plugin specifies NPDrawingModelCoreGraphics
* as its drawing model.
*/

typedef struct NP_CGContext
{
CGContextRef context;
#ifdef NP_NO_CARBON
NPNSWindow *window;
#else
void *window; // Can be either an NSWindow or a WindowRef depending on the event model
#endif
} NP_CGContext;

/*
* NP_GLContext is the type of the NPWindow's 'window' when the plugin specifies NPDrawingModelOpenGL as its
* drawing model.
*/

typedef struct NP_GLContext
{
CGLContextObj context;
#ifdef NP_NO_CARBON
NPNSWindow *window;
#else
void *window; // Can be either an NSWindow or a WindowRef depending on the event model
#endif
} NP_GLContext;

#endif /* XP_MACOSX */

#if defined(XP_MAC) || defined(XP_MACOSX)

/*
* Mac-specific structures and definitions.
*/

#ifndef NP_NO_QUICKDRAW

/*
* NP_Port is the type of the NPWindow's 'window' when the plugin specifies NPDrawingModelQuickDraw as its
* drawing model, or the plugin does not specify a drawing model.
*
* It is not recommended that new plugins use NPDrawingModelQuickDraw or NP_Port, as QuickDraw has been
* deprecated in Mac OS X 10.5. CoreGraphics is the preferred drawing API.
*
* NP_Port is not available in 64-bit.
*/
typedef struct NP_Port
{
CGrafPtr port; /* Grafport */
int32 portx; /* position inside the topmost window */
int32 porty;
} NP_Port;

#endif /* NP_NO_QUICKDRAW */

/*
* Non-standard event types that can be passed to HandleEvent
*/
#define getFocusEvent (osEvt + 16)
#define loseFocusEvent (osEvt + 17)
#define adjustCursorEvent (osEvt + 18)

#endif /* XP_MAC */


/*
* Values for mode passed to NPP_New:
*/
#define NP_EMBED 1
#define NP_FULL 2

/*
* Values for stream type passed to NPP_NewStream:
*/
#define NP_NORMAL 1
#define NP_SEEK 2
#define NP_ASFILE 3
#define NP_ASFILEONLY 4

#define NP_MAXREADY (((unsigned)(~0)<<1)>>1)

#if !defined(__LP64__)
#if defined(XP_MAC) || defined(XP_MACOSX)
#pragma options align=reset
#endif
#endif /* __LP64__ */


/*----------------------------------------------------------------------*/
/* Error and Reason Code definitions */
/*----------------------------------------------------------------------*/

/*
* Values of type NPError:
*/
#define NPERR_BASE 0
#define NPERR_NO_ERROR (NPERR_BASE + 0)
#define NPERR_GENERIC_ERROR (NPERR_BASE + 1)
#define NPERR_INVALID_INSTANCE_ERROR (NPERR_BASE + 2)
#define NPERR_INVALID_FUNCTABLE_ERROR (NPERR_BASE + 3)
#define NPERR_MODULE_LOAD_FAILED_ERROR (NPERR_BASE + 4)
#define NPERR_OUT_OF_MEMORY_ERROR (NPERR_BASE + 5)
#define NPERR_INVALID_PLUGIN_ERROR (NPERR_BASE + 6)
#define NPERR_INVALID_PLUGIN_DIR_ERROR (NPERR_BASE + 7)
#define NPERR_INCOMPATIBLE_VERSION_ERROR (NPERR_BASE + 8)
#define NPERR_INVALID_PARAM (NPERR_BASE + 9)
#define NPERR_INVALID_URL (NPERR_BASE + 10)
#define NPERR_FILE_NOT_FOUND (NPERR_BASE + 11)
#define NPERR_NO_DATA (NPERR_BASE + 12)
#define NPERR_STREAM_NOT_SEEKABLE (NPERR_BASE + 13)

/*
* Values of type NPReason:
*/
#define NPRES_BASE 0
#define NPRES_DONE (NPRES_BASE + 0)
#define NPRES_NETWORK_ERR (NPRES_BASE + 1)
#define NPRES_USER_BREAK (NPRES_BASE + 2)

/*
* Don't use these obsolete error codes any more.
*/
#define NP_NOERR NP_NOERR_is_obsolete_use_NPERR_NO_ERROR
#define NP_EINVAL NP_EINVAL_is_obsolete_use_NPERR_GENERIC_ERROR
#define NP_EABORT NP_EABORT_is_obsolete_use_NPRES_USER_BREAK

/*
* Version feature information
*/
#define NPVERS_HAS_STREAMOUTPUT 8
#define NPVERS_HAS_NOTIFICATION 9
#define NPVERS_HAS_LIVECONNECT 9
#define NPVERS_WIN16_HAS_LIVECONNECT 9
#define NPVERS_68K_HAS_LIVECONNECT 11
#define NPVERS_HAS_WINDOWLESS 11
#define NPVERS_HAS_XPCONNECT_SCRIPTING 13 /* Not implemented in WebKit */
#define NPVERS_HAS_NPRUNTIME_SCRIPTING 14
#define NPVERS_HAS_FORM_VALUES 15 /* Not implemented in WebKit; see bug 13061 */
#define NPVERS_HAS_POPUPS_ENABLED_STATE 16 /* Not implemented in WebKit */
#define NPVERS_HAS_RESPONSE_HEADERS 17
#define NPVERS_HAS_NPOBJECT_ENUM 18
#define NPVERS_HAS_PLUGIN_THREAD_ASYNC_CALL 19
#define NPVERS_MACOSX_HAS_EVENT_MODELS 20

/*----------------------------------------------------------------------*/
/* Function Prototypes */
/*----------------------------------------------------------------------*/

#if defined(_WINDOWS) && !defined(WIN32)
#define NP_LOADDS _loadds
#else
#define NP_LOADDS
#endif

#ifdef __cplusplus
extern "C" {
#endif

/*
* NPP_* functions are provided by the plugin and called by the navigator.
*/

#ifdef XP_UNIX
char* NPP_GetMIMEDescription(void);
#endif /* XP_UNIX */

NPError NPP_Initialize(void);
void NPP_Shutdown(void);
NPError NP_LOADDS NPP_New(NPMIMEType pluginType, NPP instance,
uint16 mode, int16 argc, char* argn[],
char* argv[], NPSavedData* saved);
NPError NP_LOADDS NPP_Destroy(NPP instance, NPSavedData** save);
NPError NP_LOADDS NPP_SetWindow(NPP instance, NPWindow* window);
NPError NP_LOADDS NPP_NewStream(NPP instance, NPMIMEType type,
NPStream* stream, NPBool seekable,
uint16* stype);
NPError NP_LOADDS NPP_DestroyStream(NPP instance, NPStream* stream,
NPReason reason);
int32 NP_LOADDS NPP_WriteReady(NPP instance, NPStream* stream);
int32 NP_LOADDS NPP_Write(NPP instance, NPStream* stream, int32 offset,
int32 len, void* buffer);
void NP_LOADDS NPP_StreamAsFile(NPP instance, NPStream* stream,
const char* fname);
void NP_LOADDS NPP_Print(NPP instance, NPPrint* platformPrint);
int16 NPP_HandleEvent(NPP instance, void* event);
void NP_LOADDS NPP_URLNotify(NPP instance, const char* url,
NPReason reason, void* notifyData);
jref NP_LOADDS NPP_GetJavaClass(void);
NPError NPP_GetValue(NPP instance, NPPVariable variable,
void *value);
NPError NPP_SetValue(NPP instance, NPNVariable variable,
void *value);

/*
* NPN_* functions are provided by the navigator and called by the plugin.
*/

void NPN_Version(int* plugin_major, int* plugin_minor,
int* netscape_major, int* netscape_minor);
NPError NPN_GetURLNotify(NPP instance, const char* url,
const char* target, void* notifyData);
NPError NPN_GetURL(NPP instance, const char* url,
const char* target);
NPError NPN_PostURLNotify(NPP instance, const char* url,
const char* target, uint32 len,
const char* buf, NPBool file,
void* notifyData);
NPError NPN_PostURL(NPP instance, const char* url,
const char* target, uint32 len,
const char* buf, NPBool file);
NPError NPN_RequestRead(NPStream* stream, NPByteRange* rangeList);
NPError NPN_NewStream(NPP instance, NPMIMEType type,
const char* target, NPStream** stream);
int32 NPN_Write(NPP instance, NPStream* stream, int32 len,
void* buffer);
NPError NPN_DestroyStream(NPP instance, NPStream* stream,
NPReason reason);
void NPN_Status(NPP instance, const char* message);
const char* NPN_UserAgent(NPP instance);
void* NPN_MemAlloc(uint32 size);
void NPN_MemFree(void* ptr);
uint32 NPN_MemFlush(uint32 size);
void* NPN_MemDup (const void*, uint32);
char* NPN_StrDup (const char *);
char* NPN_StrnDup (const char *, uint32);
void NPN_ReloadPlugins(NPBool reloadPages);