[svn r389] Some improvements on recorded file detection.
4 * @file gmyth/gmyth_util.h
6 * @brief <p> This component provides utility functions.
8 * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
9 * @author Hallyson Luiz de Morais Melo <hallyson.melo@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
34 #include "gmyth_stringlist.h"
35 #include "gmyth_backendinfo.h"
39 GString *gmyth_util_time_to_isoformat(time_t time_value);
40 GString *gmyth_util_time_to_string (time_t time_value);
41 time_t gmyth_util_string_to_time (GString* time_str);
42 gint64 gmyth_util_decode_long_long (GMythStringList *strlist,
45 gchar* gmyth_util_time_to_isoformat_from_time_val_fmt ( const gchar *fmt_string, const GTimeVal* time_val );
47 GTimeVal *gmyth_util_string_to_time_val_fmt ( const gchar *fmt_string, const gchar* time_str );
49 GTimeVal *gmyth_util_string_to_time_val ( const gchar* time_str );
51 gchar *gmyth_util_time_to_isoformat_from_time_val( const GTimeVal *time);
52 gchar *gmyth_util_time_to_mythformat_from_time_val ( const GTimeVal* time );
54 gchar *gmyth_util_time_to_string_only_date ( const GTimeVal* time );
56 gchar *gmyth_util_time_to_string_only_time ( const GTimeVal* time );
58 gchar *gmyth_util_time_to_string_from_time_val ( const GTimeVal *time_val );
60 struct tm *gmyth_util_time_val_to_date ( const GTimeVal* time );
62 gboolean gmyth_util_file_exists (GMythBackendInfo *backend_info, const gchar* filename);
64 gboolean gmyth_util_file_exists_and_get_remote_dir (GMythBackendInfo *backend_info,
65 const gchar* filename, gchar** current_dir);
67 gchar* gmyth_util_create_filename( const gint chan_id, const GTimeVal* start_time );
71 #endif /*GMYTH_UTIL_H_*/