1.1 --- a/gmyth/src/gmyth_file.h Mon Apr 16 16:01:17 2007 +0100
1.2 +++ b/gmyth/src/gmyth_file.h Wed May 23 16:11:29 2007 +0100
1.3 @@ -9,23 +9,23 @@
1.4 * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
1.5 * @author Rosfran Lins Borges <rosfran.borges@indt.org.br>
1.6 *
1.7 - *//*
1.8 - *
1.9 - * This program is free software; you can redistribute it and/or modify
1.10 - * it under the terms of the GNU Lesser General Public License as published by
1.11 - * the Free Software Foundation; either version 2 of the License, or
1.12 - * (at your option) any later version.
1.13 - *
1.14 - * This program is distributed in the hope that it will be useful,
1.15 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.16 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.17 - * GNU General Public License for more details.
1.18 - *
1.19 - * You should have received a copy of the GNU Lesser General Public License
1.20 - * along with this program; if not, write to the Free Software
1.21 - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1.22 - */
1.23 -
1.24 + *//*
1.25 + *
1.26 + * This program is free software; you can redistribute it and/or modify
1.27 + * it under the terms of the GNU Lesser General Public License as published by
1.28 + * the Free Software Foundation; either version 2 of the License, or
1.29 + * (at your option) any later version.
1.30 + *
1.31 + * This program is distributed in the hope that it will be useful,
1.32 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.33 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.34 + * GNU General Public License for more details.
1.35 + *
1.36 + * You should have received a copy of the GNU Lesser General Public License
1.37 + * along with this program; if not, write to the Free Software
1.38 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1.39 + */
1.40 +
1.41 #ifndef __GMYTH_FILE_H__
1.42 #define __GMYTH_FILE_H__
1.43
1.44 @@ -43,53 +43,50 @@
1.45 #include <unistd.h>
1.46
1.47 G_BEGIN_DECLS
1.48 -
1.49 #define GMYTH_FILE_TYPE (gmyth_file_get_type ())
1.50 #define GMYTH_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMYTH_FILE_TYPE, GMythFile))
1.51 #define GMYTH_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_FILE_TYPE, GMythFileClass))
1.52 #define IS_GMYTH_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GMYTH_FILE_TYPE))
1.53 #define IS_GMYTH_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GMYTH_FILE_TYPE))
1.54 #define GMYTH_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GMYTH_FILE_TYPE, GMythFileClass))
1.55 -
1.56 -typedef enum {
1.57 - GMYTH_FILE_READ_OK = 0,
1.58 - GMYTH_FILE_READ_NEXT_PROG_CHAIN = 1,
1.59 - GMYTH_FILE_READ_ERROR = 2,
1.60 - GMYTH_FILE_READ_EOF = 3
1.61 + typedef enum
1.62 +{
1.63 + GMYTH_FILE_READ_OK = 0,
1.64 + GMYTH_FILE_READ_NEXT_PROG_CHAIN = 1,
1.65 + GMYTH_FILE_READ_ERROR = 2,
1.66 + GMYTH_FILE_READ_EOF = 3
1.67 } GMythFileReadResult;
1.68
1.69 -typedef struct _GMythFile GMythFile;
1.70 -typedef struct _GMythFileClass GMythFileClass;
1.71 -typedef struct _GMythFilePrivate GMythFilePrivate;
1.72 +typedef struct _GMythFile GMythFile;
1.73 +typedef struct _GMythFileClass GMythFileClass;
1.74 +typedef struct _GMythFilePrivate GMythFilePrivate;
1.75
1.76 struct _GMythFile
1.77 {
1.78 - GObject parent;
1.79 - GMythFilePrivate *priv;
1.80 + GObject parent;
1.81 + GMythFilePrivate *priv;
1.82 };
1.83
1.84 struct _GMythFileClass
1.85 {
1.86 - GObjectClass parent_class;
1.87 + GObjectClass parent_class;
1.88 };
1.89
1.90 -GType gmyth_file_get_type (void);
1.91 -GMythFile* gmyth_file_new (GMythBackendInfo *backend_info);
1.92 -gchar* gmyth_file_get_file_name (GMythFile *file);
1.93 -void gmyth_file_set_file_name (GMythFile *file, const gchar* filename);
1.94 -gboolean gmyth_file_setup (GMythFile *file,
1.95 - const gchar* filename);
1.96 -void gmyth_file_close (GMythFile *file);
1.97 -gboolean gmyth_file_is_open (GMythFile *file);
1.98 +GType gmyth_file_get_type (void);
1.99 +GMythFile *gmyth_file_new (GMythBackendInfo * backend_info);
1.100 +gchar *gmyth_file_get_file_name (GMythFile * file);
1.101 +void gmyth_file_set_file_name (GMythFile * file, const gchar * filename);
1.102 +gboolean gmyth_file_setup (GMythFile * file, const gchar * filename);
1.103 +void gmyth_file_close (GMythFile * file);
1.104 +gboolean gmyth_file_is_open (GMythFile * file);
1.105
1.106 -guint64 gmyth_file_get_filesize (GMythFile *file);
1.107 -void gmyth_file_set_filesize (GMythFile *file, guint64 filesize);
1.108 +guint64 gmyth_file_get_filesize (GMythFile * file);
1.109 +void gmyth_file_set_filesize (GMythFile * file, guint64 filesize);
1.110
1.111 -gint64 gmyth_file_get_offset (GMythFile *file);
1.112 -void gmyth_file_set_offset (GMythFile *file, gint64 offset);
1.113 +gint64 gmyth_file_get_offset (GMythFile * file);
1.114 +void gmyth_file_set_offset (GMythFile * file, gint64 offset);
1.115
1.116 -gchar* gmyth_file_get_uri (GMythFile *file);
1.117 +gchar *gmyth_file_get_uri (GMythFile * file);
1.118
1.119 G_END_DECLS
1.120 -
1.121 #endif /* __GMYTH_FILE_H__ */