[webkit-dev] Pushing data to plugin

Jack Wootton jackwootton at gmail.com
Fri Mar 20 08:15:07 PDT 2009


I'm unsure about how I can access the Browser functions.  Assuming
control is in a plugin instance object, and a plugin instance object
is created using New.  The parameter of type NPP is passed into the
New method of the plugin instance object.  Using this parameter I can
access two pointers

ndata (pointing to the browser)
pdata (pointing to the plugin instance object)

How can I use ndata to call Brwoser functions such as NPN_GetURL?

The plugin instance object is created using Newm which accepts aHow
can the plugin instance object access the the Browser functions

2009/3/20 Jack Wootton <jackwootton at gmail.com>:
> Ah, I forgot about that. I have populated the Browser function pointer
> table with NPP_New, Destroy and GetValue, but not the others I need.
> Thank you for alerting me to this.  Hopefully this should do it.
> 2009/3/20 Alexey Proskuryakov <ap at webkit.org>:
>> 20.03.2009, в 17:23, Jack Wootton написал(а):
>>> Does anyone have any experience with these functions?  I am trying to
>>> use them but am getting link errors.  Which library to i need to link
>>> against to use them?
>> A plug-in gets pointers to these functions in an NPNetscapeFuncs structure
>> passed to its initialization routine. So, there is no library to link
>> against.
>> - WBR, Alexey Proskuryakov
> --
> Regards
> Jack


More information about the webkit-dev mailing list