Commit ed5ea7b2 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

Chromecast: move some code to a header

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent bfaa0ce9
......@@ -29,12 +29,12 @@
# include "config.h"
#endif
#include "chromecast.h"
#ifdef HAVE_POLL
# include <poll.h>
#endif
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_sout.h>
#include <vlc_tls.h>
#include <vlc_url.h>
......@@ -47,21 +47,9 @@
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/io/coded_stream.h>
#include "cast_channel.pb.h"
#include "../../misc/webservices/json.h"
// Status
enum
{
CHROMECAST_DISCONNECTED,
CHROMECAST_TLS_CONNECTED,
CHROMECAST_AUTHENTICATED,
CHROMECAST_APP_STARTED,
CHROMECAST_MEDIA_LOAD_SENT,
CHROMECAST_CONNECTION_DEAD,
};
#define PACKET_MAX_LEN 10 * 1024
#define PACKET_HEADER_LEN 4
......
/*****************************************************************************
* chromecast.cpp: Chromecast module for vlc
*****************************************************************************
* Copyright © 2014-2015 VideoLAN
*
* Authors: Adrien Maglo <magsoft@videolan.org>
* Jean-Baptiste Kempf <jb@videolan.org>
* Steve Lhomme <robux4@videolabs.io>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser 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.
*****************************************************************************/
/*****************************************************************************
* Preamble
*****************************************************************************/
#ifndef VLC_CHROMECAST_H
#define VLC_CHROMECAST_H
#include <vlc_common.h>
#include <vlc_plugin.h>
#include "cast_channel.pb.h"
// Status
enum
{
CHROMECAST_DISCONNECTED,
CHROMECAST_TLS_CONNECTED,
CHROMECAST_AUTHENTICATED,
CHROMECAST_APP_STARTED,
CHROMECAST_MEDIA_LOAD_SENT,
CHROMECAST_CONNECTION_DEAD,
};
#endif /* VLC_CHROMECAST_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