~ubuntu-branches/ubuntu/oneiric/gecko-mediaplayer/oneiric

« back to all changes in this revision

Viewing changes to src/plugin.h

  • Committer: Bazaar Package Importer
  • Author(s): Cesare Tirabassi
  • Date: 2010-02-17 10:17:01 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20100217101701-mqfz0z0owm89ut9y
Tags: 0.9.9.1~svn374-0ubuntu1
* SVN snapshot release (LP: #86777, LP: #445767, Closes: #557761):
  - apple.com fixes
* Replace Build-Depends on iceape-dev with xulrunner-dev (Closes: #555916)
* No change bump of Standards-Version
* Converted to source format 3.0
* Add opera (>= 9.50) as a compatible browser (LP: #230662)
* Remove linker flag -z defs since the plugin doesn't link to all
  required libraries on purpose

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
#define __PLUGIN_H__
40
40
#include <npapi.h>
41
41
#include <npruntime.h>
42
 
#include "npupp.h"
 
42
#include <npfunctions.h>
43
43
#include <X11/Xlib.h>
44
44
#include <dbus/dbus.h>
45
45
#include <dbus/dbus-glib-lowlevel.h>
84
84
#define DISABLE_DVX             "disable_dvx"
85
85
#define DEBUG_LEVEL             "debug_level"
86
86
#define DISABLE_MIDI    "disable_midi"
 
87
#define PLAYER_BACKEND  "player_backend"
87
88
 
88
89
typedef enum {
89
90
    PLAYING,
109
110
    NPBool init(NPWindow * aWindow);
110
111
    void shut();
111
112
    NPBool isInitialized();
112
 
    int16 handleEvent(void *event);
 
113
    int16_t handleEvent(void *event);
113
114
 
114
115
    NPObject *GetScriptableObject();
115
116
    NPObject *GetScriptableObjectControls();
116
117
 
117
118
    NPError GetValue(NPPVariable variable, void *value);
118
119
    NPError SetWindow(NPWindow * aWindow);
119
 
    NPError NewStream(NPMIMEType type, NPStream * stream, NPBool seekable, uint16 * stype);
 
120
    NPError NewStream(NPMIMEType type, NPStream * stream, NPBool seekable, uint16_t * stype);
120
121
    NPError DestroyStream(NPStream * stream, NPError reason);
121
122
    void URLNotify(const char *url, NPReason reason, void *notifyData);
122
 
    int32 WriteReady(NPStream * stream);
123
 
    int32 Write(NPStream * stream, int32 offset, int32 len, void *buffer);
 
123
    int32_t WriteReady(NPStream * stream);
 
124
    int32_t Write(NPStream * stream, int32_t offset, int32_t len, void *buffer);
124
125
 
125
126
 
126
127
 
131
132
    void FastForward();
132
133
    void FastReverse();
133
134
    void Seek(double counter);
134
 
    void SetShowControls(PRBool value);
135
 
    void SetFullScreen(PRBool value);
 
135
    void SetShowControls(bool value);
 
136
    void SetFullScreen(bool value);
136
137
    void SetVolume(double value);
137
138
    void GetVolume(double *_retval);
138
 
    void GetFullScreen(PRBool * _retval);
139
 
    void GetShowControls(PRBool * _retval);
 
139
    void GetFullScreen(bool * _retval);
 
140
    void GetShowControls(bool * _retval);
140
141
    void GetTime(double *_retval);
141
142
    void GetDuration(double *_retval);
142
143
    void GetPercent(double *_retval);
143
 
    void GetPlayState(PRInt32 * playstate);
 
144
    void GetPlayState(int32_t * playstate);
144
145
    void SetFilename(const char *filename);
145
146
    void GetFilename(char **filename);
146
147
    void GetMIMEType(char **_retval);
147
 
    void GetLoop(PRBool * _retval);
148
 
    void SetLoop(PRBool value);
 
148
    void GetLoop(bool * _retval);
 
149
    void SetLoop(bool value);
149
150
    void SetOnClick(const char *event);
150
151
    void SetOnMediaComplete(const char *event);
151
152
    void SetOnMouseUp(const char *event);
164
165
    NPP mInstance;
165
166
    gboolean windowless;
166
167
    gint nextid;
167
 
    uint16 mode;
 
168
    uint16_t mode;
168
169
    gchar *mimetype;
169
170
    GList *playlist;
170
171
    gboolean acceptdata;
189
190
    gchar *console;
190
191
    gchar *controls;
191
192
    gchar *user_agent;
 
193
    gchar *player_backend;
192
194
 
193
195
    // events
194
196
    gboolean post_dom_events;