void fetch_rsrc_register(void) { lwc_string *scheme; int err; err = find_app_resources(); if (err < B_OK) { warn_user("Resources", strerror(err)); return; } if (lwc_intern_string("rsrc", SLEN("rsrc"), &scheme) != lwc_error_ok) { die("Failed to initialise the fetch module " "(couldn't intern \"rsrc\")."); } fetch_add_fetcher(scheme, fetch_rsrc_initialise, fetch_rsrc_can_fetch, fetch_rsrc_setup, fetch_rsrc_start, fetch_rsrc_abort, fetch_rsrc_free, fetch_rsrc_poll, fetch_rsrc_finalise); }
void ami_fetch_file_register(void) { if (!fetch_add_fetcher("file", ami_fetch_file_initialise, ami_fetch_file_setup, ami_fetch_file_start, ami_fetch_file_abort, ami_fetch_file_free, ami_fetch_file_poll, ami_fetch_file_finalise)) { LOG(("Unable to register Amiga fetcher for file:")); } }
void fetch_data_register(void) { lwc_string *scheme = lwc_string_ref(corestring_lwc_data); fetch_add_fetcher(scheme, fetch_data_initialise, fetch_data_can_fetch, fetch_data_setup, fetch_data_start, fetch_data_abort, fetch_data_free, fetch_data_poll, fetch_data_finalise); }
void fetch_resource_register(void) { lwc_string *scheme; if (lwc_intern_string("resource", SLEN("resource"), &scheme) != lwc_error_ok) { die("Failed to initialise the fetch module " "(couldn't intern \"resource\")."); } fetch_add_fetcher(scheme, fetch_resource_initialise, fetch_resource_can_fetch, fetch_resource_setup, fetch_resource_start, fetch_resource_abort, fetch_resource_free, fetch_resource_poll, fetch_resource_finalise); }