summaryrefslogtreecommitdiff
path: root/frontends/kolibrios/gui_fetch_table.h
blob: a57811576bf0a44a0c73f6d8a79074d45a3c094b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
};