Changeset 2203521d89348a28dc1d0381c5ed8d28ee8d9de3

Show
Ignore:
Timestamp:
01/06/08 00:30:59 (6 months ago)
Author:
Christophe Mutricy <xtophe@videolan.org>
git-committer:
Christophe Mutricy <xtophe@videolan.org> 1212273059 +0100
git-parent:

[31a8cbee8c72701d11dc5152b91256134c8165c8]

git-author:
Christophe Mutricy <xtophe@videolan.org> 1212273027 +0100
Message:

Don't use deprecated and removed API in Mozilla plugin.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • projects/mozilla/Makefile.am

    r6d9fde8 r2203521  
    1313    control/npolibvlc.cpp \ 
    1414    control/npolibvlc.h \ 
    15     control/npovlc.cpp \ 
    16     control/npovlc.h \ 
    1715    control/nporuntime.cpp \ 
    1816    control/nporuntime.h \ 
  • projects/mozilla/control/npolibvlc.cpp

    r31a8cbe r2203521  
    118118            case ID_root_VersionInfo: 
    119119            { 
    120                 int len = strlen(VLC_Version()); 
     120                int len = strlen(libvlc_get_version()); 
    121121                NPUTF8 *retval =(NPUTF8*)NPN_MemAlloc(len); 
    122122                if( retval ) 
    123123                { 
    124                     memcpy(retval, VLC_Version(), len); 
     124                    memcpy(retval, libvlc_get_version(), len); 
    125125                    STRINGN_TO_NPVARIANT(retval, len, result); 
    126126                } 
     
    163163                if( argCount == 0 ) 
    164164                { 
    165                     int len = strlen(VLC_Version()); 
     165                    int len = strlen(libvlc_get_version()); 
    166166                    NPUTF8 *retval =(NPUTF8*)NPN_MemAlloc(len); 
    167167                    if( retval ) 
    168168                    { 
    169                         memcpy(retval, VLC_Version(), len); 
     169                        memcpy(retval, libvlc_get_version(), len); 
    170170                        STRINGN_TO_NPVARIANT(retval, len, result); 
    171171                    } 
  • projects/mozilla/vlcplugin.cpp

    r07f363a r2203521  
    230230 
    231231    /* assign plugin script root class */ 
    232     if( (NULL != progid) && (!strcmp(progid, "VideoLAN.VLCPlugin.2")) ) 
    233     { 
    234         /* new APIs */ 
    235         p_scriptClass = RuntimeNPClass<LibvlcRootNPObject>::getClass(); 
    236     } 
    237     else 
    238     { 
    239         /* legacy APIs */ 
    240         p_scriptClass = RuntimeNPClass<VlcNPObject>::getClass(); 
    241     } 
     232    /* new APIs */ 
     233    p_scriptClass = RuntimeNPClass<LibvlcRootNPObject>::getClass(); 
    242234 
    243235    return NPERR_NO_ERROR; 
  • projects/mozilla/vlcshell.cpp

    r31a8cbe r2203521  
    9696        case NPPVpluginDescriptionString: 
    9797            snprintf( psz_desc, sizeof(psz_desc), PLUGIN_DESCRIPTION, 
    98                       VLC_Version() ); 
     98                      libvlc_get_version() ); 
    9999            *((char **)value) = psz_desc; 
    100100            return NPERR_NO_ERROR;