switch (webkit_web_view_get_load_status(view)) {
case WEBKIT_LOAD_PROVISIONAL:
#ifdef FEATURE_AUTOCMD
- autocmd_run(NULL, AU_PAGE_LOAD_PROVISIONAL, NULL);
+ autocmd_run(AU_PAGE_LOAD_PROVISIONAL, NULL, NULL);
#endif
/* update load progress in statusbar */
vb.state.progress = 0;
case WEBKIT_LOAD_COMMITTED:
uri = webkit_web_view_get_uri(view);
#ifdef FEATURE_AUTOCMD
- autocmd_run(NULL, AU_PAGE_LOAD_COMMITED, uri);
+ autocmd_run(AU_PAGE_LOAD_COMMITED, uri, NULL);
#endif
{
WebKitWebFrame *frame = webkit_web_view_get_main_frame(view);
case WEBKIT_LOAD_FIRST_VISUALLY_NON_EMPTY_LAYOUT:
#ifdef FEATURE_AUTOCMD
uri = webkit_web_view_get_uri(view);
- autocmd_run(NULL, AU_PAGE_LOAD_FIRST_LAYOUT, uri);
+ autocmd_run(AU_PAGE_LOAD_FIRST_LAYOUT, uri, NULL);
#endif
/* if we load a page from a submitted form, leave the insert mode */
if (vb.mode->id == 'i') {
case WEBKIT_LOAD_FINISHED:
uri = webkit_web_view_get_uri(view);
#ifdef FEATURE_AUTOCMD
- autocmd_run(NULL, AU_PAGE_LOAD_FINISHED, uri);
+ autocmd_run(AU_PAGE_LOAD_FINISHED, uri, NULL);
#endif
/* update load progress in statusbar */
vb.state.progress = 100;
case WEBKIT_LOAD_FAILED:
#ifdef FEATURE_AUTOCMD
uri = webkit_web_view_get_uri(view);
- autocmd_run(NULL, AU_PAGE_LOAD_FAILED, uri);
+ autocmd_run(AU_PAGE_LOAD_FAILED, uri, NULL);
#endif
break;
}
}
#ifdef FEATURE_AUTOCMD
- autocmd_run(NULL, AU_DOWNLOAD_START, webkit_download_get_uri(download));
+ autocmd_run(AU_DOWNLOAD_START, webkit_download_get_uri(download), NULL);
#endif
if (use_external && *download_cmd) {
/* run download with external program */
}
if (status != WEBKIT_DOWNLOAD_STATUS_FINISHED) {
#ifdef FEATURE_AUTOCMD
- autocmd_run(NULL, AU_DOWNLOAD_FAILED, webkit_download_get_uri(download));
+ autocmd_run(AU_DOWNLOAD_FAILED, webkit_download_get_uri(download), NULL);
#endif
vb_echo(VB_MSG_ERROR, false, "Error downloading %s", file);
} else {
#ifdef FEATURE_AUTOCMD
- autocmd_run(NULL, AU_DOWNLOAD_FINISHED, webkit_download_get_uri(download));
+ autocmd_run(AU_DOWNLOAD_FINISHED, webkit_download_get_uri(download), NULL);
#endif
vb_echo(VB_MSG_NORMAL, false, "Download %s finished", file);
}