diff --git a/rktwebview_test.cpp b/rktwebview_test.cpp index 36c3024..1aa1199 100644 --- a/rktwebview_test.cpp +++ b/rktwebview_test.cpp @@ -8,6 +8,11 @@ #endif #include "utils.h" +void evt_cb(int n) +{ + fprintf(stderr, "events waiting: %d\n", n); +} + int main(int argc, char *argv[]) { std::string me = argv[0]; @@ -31,6 +36,7 @@ int main(int argc, char *argv[]) #endif int context = rkt_webview_new_context("", nullptr); + rkt_webview_register_evt_callback(evt_cb); int wv = rkt_webview_create(context, 0); rkt_webview_set_title(wv, "Hi there, this is a title!");