1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/gmyth/src/libgmyth/gmyth_remote_encoder.h Wed Sep 20 23:45:35 2006 +0100
1.3 @@ -0,0 +1,89 @@
1.4 +/**
1.5 + * GMyth Library
1.6 + *
1.7 + * @file gmyth/gmyth_remote_encoder.h
1.8 + *
1.9 + * @brief <p> GMythRemoteEncoder class defines functions for playing live tv.
1.10 + *
1.11 + * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
1.12 + * @author Hallyson Luiz de Morais Melo <hallyson.melo@indt.org.br>
1.13 + *
1.14 + *//*
1.15 + *
1.16 + * This program is free software; you can redistribute it and/or modify
1.17 + * it under the terms of the GNU Lesser General Public License as published by
1.18 + * the Free Software Foundation; either version 2 of the License, or
1.19 + * (at your option) any later version.
1.20 + *
1.21 + * This program is distributed in the hope that it will be useful,
1.22 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.23 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.24 + * GNU General Public License for more details.
1.25 + *
1.26 + * You should have received a copy of the GNU Lesser General Public License
1.27 + * along with this program; if not, write to the Free Software
1.28 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1.29 + */
1.30 +
1.31 +#ifndef __GMYTH_REMOTE_ENCODER_H__
1.32 +#define __GMYTH_REMOTE_ENCODER_H__
1.33 +
1.34 +#include <glib-object.h>
1.35 +
1.36 +#include "gmyth_socket.h"
1.37 +
1.38 +#include <stdio.h>
1.39 +#include <stdlib.h>
1.40 +#include <string.h>
1.41 +#include <netdb.h>
1.42 +#include <sys/socket.h>
1.43 +#include <unistd.h>
1.44 +
1.45 +#define G_BEGIN_DECLS
1.46 +
1.47 +#define GMYTH_REMOTE_ENCODER_TYPE (gmyth_remote_encoder_get_type ())
1.48 +#define GMYTH_REMOTE_ENCODER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_REMOTE_ENCODER_TYPE, GMythRemoteEncoder))
1.49 +#define GMYTH_REMOTE_ENCODER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_REMOTE_ENCODER_TYPE, GMythRemoteEncoderClass))
1.50 +#define IS_GMYTH_REMOTE_ENCODER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_REMOTE_ENCODER_TYPE))
1.51 +#define IS_GMYTH_REMOTE_ENCODER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_REMOTE_ENCODER_TYPE))
1.52 +#define GMYTH_REMOTE_ENCODER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_REMOTE_ENCODER_TYPE, GMythRemoteEncoderClass))
1.53 +
1.54 +
1.55 +typedef struct _GMythRemoteEncoder GMythRemoteEncoder;
1.56 +typedef struct _GMythRemoteEncoderClass GMythRemoteEncoderClass;
1.57 +
1.58 +struct _GMythRemoteEncoderClass
1.59 +{
1.60 + GObjectClass parent_class;
1.61 +
1.62 + /* callbacks */
1.63 + /* no one for now */
1.64 +};
1.65 +
1.66 +struct _GMythRemoteEncoder
1.67 +{
1.68 + GObject parent;
1.69 +
1.70 + /* socket descriptor */
1.71 + GMythSocket *myth_socket;
1.72 +
1.73 + int recorder_num;
1.74 + GString *hostname;
1.75 + int port;
1.76 +};
1.77 +
1.78 +
1.79 +GType gmyth_remote_encoder_get_type (void);
1.80 +
1.81 +GMythRemoteEncoder* gmyth_remote_encoder_new (int num,
1.82 + GString *hostname,
1.83 + gshort port);
1.84 +
1.85 +gboolean gmyth_remote_encoder_setup (GMythRemoteEncoder *encoder);
1.86 +gboolean gmyth_remote_encoder_spawntv (GMythRemoteEncoder *remote_encoder,
1.87 + GString *tvchain_id);
1.88 +gboolean gmyth_remote_encoder_stop_livetv (GMythRemoteEncoder *remote_encoder);
1.89 +
1.90 +#define G_END_DECLS
1.91 +
1.92 +#endif /* __GMYTH_REMOTE_ENCODER_H__ */