60 lines
1.9 KiB
C
60 lines
1.9 KiB
C
/*
|
|
* tvheadend, transport functions
|
|
* Copyright (C) 2007 Andreas Öman
|
|
*
|
|
* 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 3 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, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef TRANSPORTS_H
|
|
#define TRANSPORTS_H
|
|
|
|
#include <libavcodec/avcodec.h>
|
|
|
|
unsigned int transport_compute_weight(struct th_transport_list *head);
|
|
|
|
int transport_start(th_transport_t *t, unsigned int weight, int force_start);
|
|
|
|
void transport_stop(th_transport_t *t, int flush_subscriptions);
|
|
|
|
th_transport_t *transport_create(const char *identifier, int type,
|
|
int source_type);
|
|
|
|
th_transport_t *transport_find_by_identifier(const char *identifier);
|
|
|
|
void transport_map_channel(th_transport_t *t, channel_t *ch);
|
|
|
|
void transport_unmap_channel(th_transport_t *t);
|
|
|
|
th_transport_t *transport_find(channel_t *ch, unsigned int weight);
|
|
|
|
th_stream_t *transport_add_stream(th_transport_t *t, int pid,
|
|
tv_streamtype_t type);
|
|
|
|
void transport_set_priority(th_transport_t *t, int prio);
|
|
|
|
void transport_settings_write(th_transport_t *t);
|
|
|
|
const char *transport_servicetype_txt(th_transport_t *t);
|
|
|
|
int transport_is_tv(th_transport_t *t);
|
|
|
|
int transport_is_available(th_transport_t *t);
|
|
|
|
void transport_destroy(th_transport_t *t);
|
|
|
|
void transport_signal_status(th_transport_t *t, int newstatus);
|
|
|
|
const char *transport_status_to_text(int status);
|
|
|
|
#endif /* TRANSPORTS_H */
|