summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-30 03:18:50 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-30 03:18:50 (EDT)
commit0509c7fdbf73cb5b732942954b05b4c4a6dd72f4 (patch)
tree474b58097ef239510b2bc28ded7f282b6f94b838 /src
parent8774137a27ee475ead620a83e7c6c0cf182363a2 (diff)
downloadmarquee-0509c7fdbf73cb5b732942954b05b4c4a6dd72f4.zip
marquee-0509c7fdbf73cb5b732942954b05b4c4a6dd72f4.tar.gz
marquee-0509c7fdbf73cb5b732942954b05b4c4a6dd72f4.tar.bz2
src/web-view-schemes/schemes.h: Add MqWebViewScheme union
And add to method parameter lists.
Diffstat (limited to 'src')
-rw-r--r--src/web-view-schemes/schemes.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/web-view-schemes/schemes.h b/src/web-view-schemes/schemes.h
index 177ea5c..8366748 100644
--- a/src/web-view-schemes/schemes.h
+++ b/src/web-view-schemes/schemes.h
@@ -34,12 +34,17 @@ typedef struct {
GFile *save_file;
} MqWebViewNormalScheme;
+typedef union {
+ MqWebViewNormalScheme normal;
+} MqWebViewScheme;
+
typedef struct {
- gchar * (*rewrite_uri) (const gchar *);
- gchar * (*display_uri) (const gchar *);
- gboolean (*context_menu)(MqWebView *, WebKitContextMenu *,
- GdkEvent *, WebKitHitTestResult *);
- void (*save_file) (MqWebView *);
+ gchar * (*rewrite_uri) (MqWebViewScheme *, const gchar *);
+ gchar * (*display_uri) (MqWebViewScheme *, const gchar *);
+ gboolean (*context_menu)(MqWebView *, MqWebViewScheme *,
+ WebKitContextMenu *, GdkEvent *,
+ WebKitHitTestResult *);
+ void (*save_file) (MqWebView *, MqWebViewScheme *);
} MqWebViewSchemeMethods;
extern MqWebViewSchemeMethods mq_web_view_normal_scheme_methods;