diff options
-rw-r--r-- | src/web-view-schemes/methods.c | 7 | ||||
-rw-r--r-- | src/web-view-schemes/schemes.h | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/web-view-schemes/methods.c b/src/web-view-schemes/methods.c index 96c5496..e46f0b1 100644 --- a/src/web-view-schemes/methods.c +++ b/src/web-view-schemes/methods.c @@ -21,6 +21,13 @@ #include "schemes.h" +void +mq_web_view_scheme_connect_ready_callback(MqWebViewScheme *scheme, + void (*ready_cb)(MqWebViewScheme *, MqWebView *)) +{ + scheme->ready_cb = ready_cb; +} + static gboolean check_and_set_methods(MqWebViewSchemeMethods **methods, MqWebViewScheme *scheme, const gchar *uri, diff --git a/src/web-view-schemes/schemes.h b/src/web-view-schemes/schemes.h index 3c27769..fd8f7a5 100644 --- a/src/web-view-schemes/schemes.h +++ b/src/web-view-schemes/schemes.h @@ -68,6 +68,10 @@ extern MqWebViewSchemeMethods mq_web_view_normal_scheme_methods; extern MqWebViewSchemeMethods mq_web_view_view_source_scheme_methods; void +mq_web_view_scheme_connect_ready_callback(MqWebViewScheme *scheme, + void (*ready_cb)(MqWebViewScheme *, MqWebView *)); + +void mq_web_view_scheme_set_methods(MqWebViewSchemeMethods **methods, MqWebViewScheme *scheme, const gchar *uri); |