From cb52868b48be253e22a87863b3bd7ea582107d70 Mon Sep 17 00:00:00 2001 From: Ashish Gupta Date: Sun, 8 Oct 2017 22:04:11 +0200 Subject: Get rid of bloat --- frontends/kolibrios/gui_fetch_table.h | 42 ------------------------- frontends/kolibrios/gui_file_table.h | 37 ---------------------- frontends/kolibrios/gui_llcache_table.h | 49 ------------------------------ frontends/kolibrios/gui_search_table.h | 38 ----------------------- frontends/kolibrios/gui_search_web_table.h | 11 ------- frontends/kolibrios/gui_utf8_table.h | 18 ----------- 6 files changed, 195 deletions(-) delete mode 100644 frontends/kolibrios/gui_fetch_table.h delete mode 100644 frontends/kolibrios/gui_file_table.h delete mode 100644 frontends/kolibrios/gui_llcache_table.h delete mode 100644 frontends/kolibrios/gui_search_table.h delete mode 100644 frontends/kolibrios/gui_search_web_table.h delete mode 100644 frontends/kolibrios/gui_utf8_table.h (limited to 'frontends') diff --git a/frontends/kolibrios/gui_fetch_table.h b/frontends/kolibrios/gui_fetch_table.h deleted file mode 100644 index a57811576..000000000 --- a/frontends/kolibrios/gui_fetch_table.h +++ /dev/null @@ -1,42 +0,0 @@ -/* ------------------------------ */ -/* 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 -}; diff --git a/frontends/kolibrios/gui_file_table.h b/frontends/kolibrios/gui_file_table.h deleted file mode 100644 index 2c0795fa1..000000000 --- a/frontends/kolibrios/gui_file_table.h +++ /dev/null @@ -1,37 +0,0 @@ -/* ------------------------------ */ -/* Part about GUI FILE TABLE. Will contain all functions required as well. */ -/* ------------------------------ */ -nserror kolibri_mkpath(char **str, size_t *size, size_t nemb, va_list ap) -{ - -} - -nserror kolibri_basename(const char *path, char **str, size_t *size) -{ - -} - -nserror kolibri_nsurl_to_path(struct nsurl *url, char **path) -{ - -} - -nserror kolibri_path_to_nsurl(const char *path, struct nsurl **url) -{ - -} - -nserror kolibri_mkdir_all(const char *fname) -{ - -} - - -struct gui_file_table kolibri_gui_file_table = { - /* Mandantory entries */ - .mkpath = kolibri_mkpath, - .basename = kolibri_basename, - .nsurl_to_path = kolibri_nsurl_to_path, - .path_to_nsurl = kolibri_path_to_nsurl, - .mkdir_all = kolibri_mkdir_all -}; diff --git a/frontends/kolibrios/gui_llcache_table.h b/frontends/kolibrios/gui_llcache_table.h deleted file mode 100644 index c7995e5ee..000000000 --- a/frontends/kolibrios/gui_llcache_table.h +++ /dev/null @@ -1,49 +0,0 @@ -/* ------------------------------ */ -/* Part about GUI LLCACHE TABLE. Will contain all functions required as well. */ -/* ------------------------------ */ -nserror kolibri_initialise(const struct llcache_store_parameters *parameters) -{ - -} - - -nserror kolibri_finalise(void) -{ - -} - - -nserror kolibri_store(struct nsurl *url, enum backing_store_flags flags, - uint8_t *data, const size_t datalen) -{ - -} - - -nserror kolibri_fetch(struct nsurl *url, enum backing_store_flags flags, - uint8_t **data, size_t *datalen) -{ - -} - - -nserror kolibri_release(struct nsurl *url, enum backing_store_flags flags) -{ - -} - - -nserror kolibri_invalidate(struct nsurl *url) -{ - -} - - -struct gui_llcache_table kolibri_gui_llcache_table = { - .initialise = kolibri_initialise, - .finalise = kolibri_finalise, - .store = kolibri_store, - .fetch = kolibri_fetch, - .release = kolibri_release, - .invalidate = kolibri_invalidate -}; diff --git a/frontends/kolibrios/gui_search_table.h b/frontends/kolibrios/gui_search_table.h deleted file mode 100644 index 2cb361a34..000000000 --- a/frontends/kolibrios/gui_search_table.h +++ /dev/null @@ -1,38 +0,0 @@ -/* ------------------------------ */ -/* Part about GUI SEARCH TABLE. Will contain all functions required as well. */ -/* ------------------------------ */ - -void kolibri_status(bool found, void *p) -{ - -} - -void kolibri_hourglass(bool active, void *p) -{ - -} - -void kolibri_add_recent(const char *string, void *p) -{ - -} - -void kolibri_forward_state(bool active, void *p) -{ - -} - -void kolibri_back_state(bool active, void *p) -{ - -} - - - -struct gui_search_table kolibri_gui_search_table = { - .status = kolibri_status, - .hourglass = kolibri_hourglass, - .add_recent = kolibri_add_recent, - .forward_state = kolibri_forward_state, - .back_state = kolibri_back_state -}; diff --git a/frontends/kolibrios/gui_search_web_table.h b/frontends/kolibrios/gui_search_web_table.h deleted file mode 100644 index 1ef3206b3..000000000 --- a/frontends/kolibrios/gui_search_web_table.h +++ /dev/null @@ -1,11 +0,0 @@ -/* ------------------------------ */ -/* Part about GUI SEARCH WEB TABLE. Will contain all functions required as well. */ -/* ------------------------------ */ -nserror kolibri_search_provider_update(const char *provider_name, struct bitmap *ico_bitmap) -{ - -} - -struct gui_search_web_table kolibri_search_web_table = { - .provider_update = kolibri_search_provider_update -}; diff --git a/frontends/kolibrios/gui_utf8_table.h b/frontends/kolibrios/gui_utf8_table.h deleted file mode 100644 index 42a0c2b53..000000000 --- a/frontends/kolibrios/gui_utf8_table.h +++ /dev/null @@ -1,18 +0,0 @@ -/* ------------------------------ */ -/* Part about GUI UTF8 TABLE. Will contain all functions required as well. */ -/* ------------------------------ */ - -nserror kolibri_utf8_to_local(const char *string, size_t len, char **result) -{ - -} - -nserror kolibri_local_to_utf8(const char *string, size_t len, char **result) -{ - -} - -struct gui_utf8_table kolibri_gui_utf8_table = { - .utf8_to_local = kolibri_utf8_to_local, - .local_to_utf8 = kolibri_local_to_utf8 -}; -- cgit v1.2.3