diff options
Diffstat (limited to 'src/web-view-schemes')
-rw-r--r-- | src/web-view-schemes/schemes.h | 15 |
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; |