Commit 6087a230 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Remove numerous includes from common.h

Only include what you need, where you need it.
parent e60fdfd9
......@@ -29,15 +29,10 @@
#define _GNU_SOURCE
#include <tizen.h>
#include <stdio.h>
#include <stdlib.h>
#include <storage.h>
#include <app.h>
#include <player.h>
#include <Elementary.h>
#include <system_settings.h>
#include <efl_extension.h>
#include <tizen.h>
#include <dlog.h>
#ifdef LOG_TAG
......@@ -51,4 +46,6 @@
#define ICON_DIR "/opt/usr/apps/"PACKAGE"/res/images/"
#include <Evas.h>
#endif /* __vlc_common_H__ */
......@@ -29,6 +29,8 @@
#include "audio_popup.h"
#include "audio_player.h"
#include <Elementary.h>
/* Set the panel list labels */
const char *audio_popup_list[] = {
"Jump to Time", "PLayback Speed", "Sleep in"
......
......@@ -26,9 +26,12 @@
#ifndef MAIN_POPUP_LIST_H_
#define MAIN_POPUP_LIST_H_
#include "interface.h"
#include "audio_player.h"
#include <Elementary.h>
typedef struct audio_popup_data
{
int index;
......
......@@ -28,6 +28,11 @@
#include <Edje.h>
#include <Emotion.h>
#include <app.h>
#include <efl_extension.h>
#include <storage.h>
#include <system_settings.h>
#include "interface.h"
#include "navigation_menu.h"
#include "audio_player.h"
......
......@@ -27,6 +27,7 @@
#include "common.h"
#include "interface.h"
#include "main_popup_list.h"
#include <Elementary.h>
/* Set the panel list labels */
const char *popup_list[] = {
......
......@@ -26,7 +26,9 @@
#ifndef MAIN_POPUP_LIST_H_
#define MAIN_POPUP_LIST_H_
#include "interface.h"
#include <Elementary.h>
typedef struct general_popup_data
{
......
......@@ -29,6 +29,8 @@
#include "interface.h"
#include "audio_player.h"
#include <Elementary.h>
/* Set the panel list labels */
const char *menu_list[] = {
"Video", "Audio", "Directory", "Settings", "About"
......
......@@ -28,6 +28,8 @@
#define PANEL_GENLIST_H_
#include "interface.h"
#include <Elementary.h>
typedef struct menu_cb_data
{
int index;
......
/*****************************************************************************
* 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
******************************************************************************/
#include "common.h"
#include "../interface.h"
#include "views/about_view.h"
#include <Elementary.h>
static Evas_Object*
create_about_section(Evas_Object *nf_toolbar)
......
......@@ -32,6 +32,10 @@
#include <limits.h>
#include <unistd.h>
#include <Elementary.h>
#include <storage.h>
#include <app.h>
#include "interface.h"
#include "views/audio_view.h"
#include "audio_player.h"
......
......@@ -29,6 +29,8 @@
#include "audio_player.h"
#include <Elementary.h>
typedef struct audio_list_data {
char *file_path;
......
......@@ -32,9 +32,9 @@
#include <limits.h>
#include <unistd.h>
#include <Elementary.h>
#include "views/directory_view.h"
void
list_selected_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
{
......
......@@ -27,6 +27,8 @@
#ifndef SETTINGS_VIEW_H_
#define SETTINGS_VIEW_H_
#include <Elementary.h>
typedef struct setting_data
{
int index;
......
......@@ -29,6 +29,8 @@
#include <tizen.h>
#include <Elementary.h>
#include <player.h>
#ifndef VIDEOP_H_
#define VIDEOP_H_
......
......@@ -27,6 +27,8 @@
#ifndef FILES_H_
#define FILES_H_
#include <Elementary.h>
typedef struct video_list_data {
Evas_Object *parent;
char *file_path;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment