chromecast_common.h 1.8 KB
Newer Older
1 2 3
/*****************************************************************************
 * chromecast_common.h: Chromecast common code between modules for vlc
 *****************************************************************************
4
 * Copyright © 2015-2016 VideoLAN
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
 *
 * 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.
 *****************************************************************************/

#ifndef VLC_CHROMECAST_COMMON_H
#define VLC_CHROMECAST_COMMON_H

28 29
#include <vlc_input.h>

30 31 32 33
# ifdef __cplusplus
extern "C" {
# endif

34
#define CC_SHARED_VAR_NAME "cc_sout"
35 36 37 38 39

typedef struct
{
    void *p_opaque;

40 41 42
    void (*pf_set_length)(void*, mtime_t length);
    mtime_t (*pf_get_time)(void*);
    double (*pf_get_position)(void*);
43
    void (*pf_set_initial_time)( void*, mtime_t time );
44

45
    void (*pf_pace)(void*);
46

47
    void (*pf_set_pause_state)(void*, bool paused);
48

49
    void (*pf_set_meta)(void*, vlc_meta_t *p_meta);
50

51 52 53 54 55 56 57 58
} chromecast_common;

# ifdef __cplusplus
}
# endif

#endif // VLC_CHROMECAST_COMMON_H