[webkit-help] How to add new WEBKIT_API function
y w
ytrac00 at yahoo.com
Mon Jan 21 15:22:52 PST 2013
correct some spelling error;
--- On Mon, 1/21/13, y w <ytrac00 at yahoo.com> wrote:
From: y w <ytrac00 at yahoo.com>
Subject: How to add new WEBKIT_API function
To: webkit-help at lists.webkit.org
Received: Monday, January 21, 2013, 6:19 PM
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 call 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/cb3cdfef/attachment.html>
More information about the webkit-help
mailing list