video_view.h 1.89 KB
Newer Older
Nicolas Pomepuy's avatar
Nicolas Pomepuy committed
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
/*****************************************************************************
 * Copyright © 2015 VideoLAN, VideoLabs SAS
 *****************************************************************************
 *
 * Authors: Nicolas Rechatin [nicolas@videolabs.io]
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/
/*
 * By committing to this project, you allow VideoLAN and VideoLabs to relicense
 * the code to a different OSI approved license, in case it is required for
 * compatibility with the Store
 *****************************************************************************/

27 28 29
#ifndef VIDEO_VIEW_H_
#define VIDEO_VIEW_H_

30
#include "ui/interface.h"
31 32
#include <Elementary.h>

33
typedef struct video_list_item video_list_item;
Nicolas Pomepuy's avatar
Nicolas Pomepuy committed
34

35
interface_view*
36
create_video_view(interface *intf, Evas_Object *parent);
Nicolas Pomepuy's avatar
Nicolas Pomepuy committed
37

38
void
39
video_view_update(view_sys* vv, Eina_List* p_content);
40

41
video_list_item *
42
video_view_append_item(view_sys *videoview, media_item* p_item);
43 44

void
45
video_view_clear(view_sys* videoview);
46 47 48 49 50 51 52

const media_item*
video_list_item_get_media_item(video_list_item* p_item);

void
video_list_item_set_media_item(video_list_item* p_item, const media_item* p_media_item);

53
#endif /* VIDEO_VIEW_H_ */