summaryrefslogtreecommitdiff
path: root/frontends/kolibrios/gui_fetch_table.h
diff options
context:
space:
mode:
authorAshish Gupta <ashmew2@gmail.com>2017-04-05 21:39:01 +0200
committerAshish Gupta <ashmew2@gmail.com>2017-10-25 22:04:54 +0200
commita618be2a69a347128a4e29c879abf4a913421f52 (patch)
treebc2c47924baf985e202b61bcf4c9acec7fe44ea1 /frontends/kolibrios/gui_fetch_table.h
parent341c22d2a593040c558de5f9b82d3f740207d82f (diff)
downloadnetsurf-a618be2a69a347128a4e29c879abf4a913421f52.tar.gz
netsurf-a618be2a69a347128a4e29c879abf4a913421f52.tar.bz2
Add kolibrios/ dir : Step 1 towards porting this to Kolibri OS
Diffstat (limited to 'frontends/kolibrios/gui_fetch_table.h')
-rw-r--r--frontends/kolibrios/gui_fetch_table.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/frontends/kolibrios/gui_fetch_table.h b/frontends/kolibrios/gui_fetch_table.h
new file mode 100644
index 000000000..a57811576
--- /dev/null
+++ b/frontends/kolibrios/gui_fetch_table.h
@@ -0,0 +1,42 @@
+/* ------------------------------ */
+/* Part about GUI FETCHER table. Will contain all functions required as well. */
+/* ------------------------------ */
+
+const char *kolibri_get_mimetype_file(const char *unix_path)
+{
+
+}
+
+
+struct nsurl* kolibri_get_resource_url(const char *path)
+{
+
+}
+
+ /* Can be used to always load some .html file probably */
+
+nserror kolibri_get_resource_data(const char *path, const uint8_t **data, size_t *data_len)
+{
+
+}
+
+
+nserror kolibri_release_resource_data(const uint8_t *data)
+{
+
+}
+
+ /*get_ and release_ functions work in unison one after another*/
+
+char *kolibri_find_mimetype_file(const char *ro_path)
+{
+
+}
+
+struct gui_fetch_table kolibri_fetch_table = {
+ .filetype = kolibri_get_mimetype_file,
+ .get_resource_url = kolibri_get_resource_url,
+ .get_resource_data = kolibri_get_resource_data,
+ .release_resource_data = kolibri_release_resource_data,
+ .mimetype = kolibri_find_mimetype_file
+};