[svn r826] gmyth-ls and gmyth_query now considers db_port. Thanks to Bastien Nocera for his patch.
4 * @file gmyth/gmyth_vlc.h
6 * @brief <p> GMythVLC library provides functions that
7 * interact with a VLC server running telnet interface.
9 * Copyright (C) 2007 INdT - Instituto Nokia de Tecnologia.
10 * @author Artur Duque de Souza <artur.souza@indt.org.br>
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU Lesser General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU Lesser General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 #ifndef __GMYTH_VLC_H__
29 #define __GMYTH_VLC_H__
31 #include <glib-object.h>
40 #include <sys/types.h>
41 #include <netinet/in.h>
42 #include <sys/socket.h>
45 #include "gmyth_backendinfo.h"
46 #include "gmyth_util.h"
49 #define VLC_TELNET_PORT 4212
53 typedef struct _GMythVlc GMythVlc;
58 // Number of outputs used
66 struct sockaddr_in their_addr;
73 int gmyth_vlc_setup_output(GMythVlc * vlc, int output,
74 gchar * kind, gchar * opts);
77 int gmyth_vlc_clean_playlist(GMythVlc * vlc);
80 int gmyth_vlc_control_input(GMythVlc * vlc, int output,
83 int gmyth_vlc_create_input(GMythVlc * vlc, int output,
86 int gmyth_vlc_create_channel(GMythVlc * vlc, gchar * type,
87 int port, int vcodec);
89 int gmyth_vlc_connect(GMythVlc * vlc,
90 GMythBackendInfo * backend_info,
91 gchar * passwd, int port);
93 int gmyth_vlc_disconnect(GMythVlc * vlc);
96 #endif /* __GMYTH_VLC_H__ */