summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyerim Kim <rimi.kim@samsung.com>2017-05-22 09:35:45 (GMT)
committerHyerim Kim <rimi.kim@samsung.com>2017-05-22 09:35:45 (GMT)
commitb6ced148d814f7d0f126afbecefe018087636baa (patch)
treebf8ba6e5c5ab4e58b7d25cc84f6d2de07b9abb98
parent3b02641b37a8323392c11a2e9c5a7d5f43e4fd3e (diff)
downloadair_home-b6ced148d814f7d0f126afbecefe018087636baa.zip
air_home-b6ced148d814f7d0f126afbecefe018087636baa.tar.gz
air_home-b6ced148d814f7d0f126afbecefe018087636baa.tar.bz2
Change-Id: I1da64cc453eab2c0dc21faff9d9934772e9d6f7d Signed-off-by: Hyerim Kim <rimi.kim@samsung.com>
-rw-r--r--CMakeLists.txt1
-rw-r--r--packaging/org.tizen.home.spec1
-rw-r--r--src/data/data_recent.c84
3 files changed, 0 insertions, 86 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 234de56..9e00841 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -71,7 +71,6 @@ pkg_check_modules(PKGS REQUIRED
libgum
app-utils
pkgmgr-info
- tv-service
ecore-wayland
ui-gadget-1
bundle
diff --git a/packaging/org.tizen.home.spec b/packaging/org.tizen.home.spec
index eae9147..c3a4826 100644
--- a/packaging/org.tizen.home.spec
+++ b/packaging/org.tizen.home.spec
@@ -17,7 +17,6 @@ BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(libgum)
BuildRequires: pkgconfig(app-utils)
BuildRequires: pkgconfig(pkgmgr-info)
-BuildRequires: pkgconfig(tv-service)
BuildRequires: pkgconfig(ecore-wayland)
BuildRequires: pkgconfig(ui-gadget-1)
BuildRequires: pkgconfig(capi-web-history)
diff --git a/src/data/data_recent.c b/src/data/data_recent.c
index 8f3f04a..44cf9cf 100644
--- a/src/data/data_recent.c
+++ b/src/data/data_recent.c
@@ -20,8 +20,6 @@
#include <app_contents.h>
#include <glib.h>
#include <pkgmgr-info.h>
-#include <tv_service_proxy_channel_info.h>
-#include <tv_service_proxy_epg.h>
#include <media_content.h>
#include <app_media.h>
#include <app_define.h>
@@ -129,77 +127,6 @@ static void _app_list_foreach(gpointer data, gpointer user_data)
pkgmgrinfo_appinfo_destroy_appinfo(handle);
}
-static void _get_program(int service_id, char *program, int len)
-{
- TvServiceEpg epg_svc;
- TvServiceEpgEventData epg_data;
- int r;
-
- r = tv_service_epg_create(&epg_svc);
- if (r != TVS_ERROR_OK)
- return;
-
- r = tv_service_epg_get_cache_current_program(epg_svc, service_id,
- &epg_data);
- if (r != TVS_ERROR_OK) {
- _ERR("failed to get epg data: %d", service_id);
- tv_service_epg_destroy(epg_svc);
- return;
- }
-
- snprintf(program, len, "%s", epg_data.title_text);
-
- tv_service_epg_destroy(epg_svc);
-}
-
-static void _channel_list_foreach(gpointer data, gpointer user_data)
-{
- struct recent_data *rdata;
- struct datamgr_item *di;
- struct thumbnail_data *thumbnail;
- struct datamgr *dm;
- TvServiceChannel channel;
- int r;
- char buf[BUF_TITLE_MAX];
- char program[BUF_TITLE_MAX];
-
- if (!data || !user_data) {
- _ERR("Invalid argument");
- return;
- }
-
- rdata = data;
- dm = user_data;
-
- r = tv_service_get_channel(atoi(rdata->id), &channel);
- if (r != TVS_ERROR_OK) {
- _ERR("failed to get channel");
- return;
- }
-
- if (channel.minor > 0)
- snprintf(buf, sizeof(buf), "%ld-%ld %s", channel.major,
- channel.minor, channel.program_name);
- else
- snprintf(buf, sizeof(buf), "%ld %s", channel.major,
- channel.program_name);
-
- _get_program(atoi(rdata->id), program, sizeof(program));
-
- di = _new_datamgr_item(buf, program, APP_ID_LIVETV,
- PARAM_SERVICE_ID, rdata->id, NULL,
- IMAGE_RECENT_ICON_CHANNEL, 1, rdata->time);
- if (di) {
- thumbnail = calloc(1, sizeof(*thumbnail));
- if (thumbnail) {
- thumbnail->file = strdup(IMAGE_RECENT_THUMB_CHANNEL);
- thumbnail->type = THUMBNAIL_FILE;
- di->thumbnail = thumbnail;
- }
- dm->list = eina_list_append(dm->list, di);
- }
-}
-
static void _set_up_string(char *str)
{
while (*str) {
@@ -562,9 +489,6 @@ static Eina_List *_get_items(struct datamgr *dm)
if (!_load_recent(dm, CONTENTS_APP, -1, _app_list_foreach))
_ERR("failed to load recent app contents");
- if (!_load_recent(dm, CONTENTS_CHANNEL, 1, _channel_list_foreach))
- _ERR("failed to load recent channel contents");
-
if (!_load_recent(dm, CONTENTS_GALLERY, 1, _gallery_list_foreach))
_ERR("failed to load recent gallery contents");
@@ -592,7 +516,6 @@ static void _fini(struct datamgr *dm)
_unload_recent(dm);
media_content_disconnect();
- tv_service_channel_info_destroy();
}
static bool _init(struct datamgr *dm)
@@ -604,15 +527,8 @@ static bool _init(struct datamgr *dm)
return false;
}
- r = tv_service_channel_info_create();
- if (r != TVS_ERROR_OK) {
- _ERR("failed to create tv service");
- return false;
- }
-
r = media_content_connect();
if (r != MEDIA_CONTENT_ERROR_NONE) {
- tv_service_channel_info_destroy();
_ERR("failed to connect media content");
return false;
}