summaryrefslogtreecommitdiffstats
path: root/src/web-view-schemes
diff options
context:
space:
mode:
Diffstat (limited to 'src/web-view-schemes')
-rw-r--r--src/web-view-schemes/schemes.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/web-view-schemes/schemes.h b/src/web-view-schemes/schemes.h
index e6f82d4..7ed7a0b 100644
--- a/src/web-view-schemes/schemes.h
+++ b/src/web-view-schemes/schemes.h
@@ -19,7 +19,7 @@
* along with Marquee. If not, see <http://www.gnu.org/licenses/>.
*/
-typedef union _MqWebViewScheme MqWebViewScheme;
+typedef struct _MqWebViewScheme MqWebViewScheme;
#ifndef MQ_WEB_VIEW_SCHEMES_H
#define MQ_WEB_VIEW_SCHEMES_H
@@ -43,14 +43,17 @@ typedef struct {
const gchar *uri;
} MqWebViewViewSourceScheme;
-union _MqWebViewScheme {
- MqWebViewNormalScheme normal;
- MqWebViewViewSourceScheme view_source;
+struct _MqWebViewScheme {
+ union { /* C11: Anonymous union whose members are accessed directly */
+ MqWebViewNormalScheme normal;
+ MqWebViewViewSourceScheme view_source;
+ };
};
typedef struct {
gboolean (*match_uri) (const gchar *uri);
void (*initialize) (MqWebView *, MqWebViewScheme *, const gchar *);
+ gboolean (*ready) (MqWebView *, MqWebViewScheme *);
void (*finalize) (MqWebViewScheme *);
gchar * (*rewrite_uri) (MqWebView *, MqWebViewScheme *, const gchar *);
gchar * (*display_uri) (MqWebView *, MqWebViewScheme *, const gchar *);