Commit 51486354 authored by Thomas Guillem's avatar Thomas Guillem

add playback_service base

parent e2bfc3fd
......@@ -37,6 +37,7 @@
#include "ui/interface.h"
#include "media_storage.h"
#include "playback_service.h"
#include "medialibrary.hpp"
struct application {
......@@ -45,6 +46,7 @@ struct application {
/* media_library */
media_library *p_mediaLibrary;
interface *p_intf;
playback_service *p_ps;
};
static bool
......@@ -63,6 +65,8 @@ app_create(void *data)
/* */
app->p_intf = intf_create_base_gui(app);
app->p_ps = playback_service_create(app);
return true;
}
......@@ -90,6 +94,7 @@ app_terminate(void *data)
application *app = data;
DeleteMediaLibrary(app->p_mediaLibrary);
intf_destroy(app->p_intf);
playback_service_destroy(app->p_ps);
free(app);
emotion_shutdown();
}
......
/*****************************************************************************
* Copyright © 2015 VideoLAN, VideoLabs SAS
*****************************************************************************
*
* 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 "playback_service.h"
struct playback_service {
};
playback_service *
playback_service_create(application *p_app)
{
playback_service *p_ps = calloc(1, sizeof(playback_service));
if (!p_ps)
return NULL;
return p_ps;
}
void
playback_service_destroy(playback_service *p_ps)
{
free(p_ps);
}
/*****************************************************************************
* Copyright © 2015 VideoLAN, VideoLabs SAS
*****************************************************************************
*
* 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
*****************************************************************************/
#ifndef PLAYBACK_SERVICE_H
#define PLAYBACK_SERVICE_H
#include "application.h"
typedef struct playback_service playback_service;
playback_service *
playback_service_create(application *p_app);
void
playback_service_destroy(playback_service *p_ps);
#endif /* PLAYBACK_SERVICE_H */
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