~ubuntu-branches/ubuntu/intrepid/rhythmbox/intrepid

« back to all changes in this revision

Viewing changes to podcast/rhythmbox-itms-plugin.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2008-09-03 10:54:50 UTC
  • mfrom: (1.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20080903105450-mslsln15n2ap6g7o
Tags: 0.11.6svn20080903-0ubuntu1
* New upstream snapshot:
  - doesn't crash when eject an audio player (lp: #263268)
* debian/patches/80_new_libmtp_build.patch:
  - the change is in the new version
* debian/rules:
  - don't specify a gecko variant that's not required in the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include "config.h"
28
28
 
29
29
#include <string.h>
30
 
#include <glib.h>
31
30
#include <npupp.h>
32
31
 
33
32
static NPNetscapeFuncs mozilla_functions;
35
34
static NPError
36
35
plugin_new_instance (NPMIMEType mime_type,
37
36
                     NPP instance,
38
 
                     guint16 mode,
39
 
                     gint16 argc,
 
37
                     uint16 mode,
 
38
                     int16 argc,
40
39
                     char **argn,
41
40
                     char **argv,
42
41
                     NPSavedData *saved)
56
55
                   NPMIMEType type,
57
56
                   NPStream *stream_ptr,
58
57
                   NPBool seekable,
59
 
                   guint16 *stype)
 
58
                   uint16 *stype)
60
59
{
61
60
        return NPERR_INVALID_PARAM;
62
61
}
89
88
              NPStream *stream,
90
89
              int32 offset,
91
90
              int32 len,
92
 
              gpointer buffer)
 
91
              void *buffer)
93
92
{
94
93
        return -1;
95
94
}
97
96
static NPError
98
97
plugin_get_value (NPP instance,
99
98
                  NPPVariable variable,
100
 
                  gpointer value)
 
99
                  void *value)
101
100
{
102
101
        NPError err = NPERR_NO_ERROR;
103
102
 
111
110
                break;
112
111
 
113
112
        case NPPVpluginNeedsXEmbed:
114
 
                *((NPBool *) value) = PR_FALSE;
 
113
                *((NPBool *) value) = FALSE;
115
114
                break;
116
115
 
117
116
        default:
125
124
NPError
126
125
NP_GetValue (void *future,
127
126
             NPPVariable variable,
128
 
             gpointer value)
 
127
             void *value)
129
128
{
130
129
        return plugin_get_value (NULL, variable, value);
131
130
}