[webkit-help] How to add new WEBKIT_API function

y w ytrac00 at yahoo.com
Mon Jan 21 15:19:20 PST 2013


Hi all,

   I am using the webkit night archive r116865,  I build it with GTK port  on Ubuntu 12.04. It build successfully.
   I created my own function mytest(WebKitWebView* webView)  and add it in webkitwebview.h   WEBKIT_API void mytest(WebKitWebView* webView); 
and webkitwebview.cpp  void mytest(WebKitWebView* webView) {    printf("Get in my function!") ;  }
I will can the function when the page load is completed: 
void loadStatusCb(WebKitWebView *web_view, GParamSpec *pspec,  gpointer data){
    if (webkit_web_view_get_load_status(web_view) == WEBKIT_LOAD_FINISHED)    {		printf("get_load_status -->> WEBKIT_LOAD_FINISHED \n");                 mytest(web_view)			return;    }  }
compile and link is no problem, but when I run it I got error undefined symbol:  mytest
Do I need also configure my function in some setting file?Does any one know how to solve it?
Thanks,Yang 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20130121/ff8b12c1/attachment.html>


More information about the webkit-help mailing list