renatofilho@320: /**
renatofilho@320: * GMyth Library
renatofilho@320: *
renatofilho@320: * @file gmyth/gmyth_util.h
renatofilho@320: *
renatofilho@320: * @brief
This component provides utility functions.
renatofilho@320: *
renatofilho@320: * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
renatofilho@320: * @author Hallyson Luiz de Morais Melo
renatofilho@320: *
renatofilho@320: *//*
renatofilho@320: *
renatofilho@320: * This program is free software; you can redistribute it and/or modify
renatofilho@320: * it under the terms of the GNU Lesser General Public License as published by
renatofilho@320: * the Free Software Foundation; either version 2 of the License, or
renatofilho@320: * (at your option) any later version.
renatofilho@320: *
renatofilho@320: * This program is distributed in the hope that it will be useful,
renatofilho@320: * but WITHOUT ANY WARRANTY; without even the implied warranty of
renatofilho@320: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
renatofilho@320: * GNU General Public License for more details.
renatofilho@320: *
renatofilho@320: * You should have received a copy of the GNU Lesser General Public License
renatofilho@320: * along with this program; if not, write to the Free Software
renatofilho@320: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
renatofilho@320: */
renatofilho@320:
renatofilho@320: #ifndef GMYTH_UTIL_H_
renatofilho@320: #define GMYTH_UTIL_H_
renatofilho@320:
renatofilho@320: #include
renatofilho@320: #include
renatofilho@320:
renatofilho@320: #include "gmyth_stringlist.h"
renatofilho@320: #include "gmyth_backendinfo.h"
renatofilho@320:
renatofilho@320: G_BEGIN_DECLS
renatofilho@320:
renatofilho@320: GString *gmyth_util_time_to_isoformat(time_t time_value);
renatofilho@320: GString *gmyth_util_time_to_string (time_t time_value);
renatofilho@320: time_t gmyth_util_string_to_time (GString* time_str);
renatofilho@320: gint64 gmyth_util_decode_long_long (GMythStringList *strlist,
renatofilho@320: guint offset);
renatofilho@320:
renatofilho@320: gchar* gmyth_util_time_to_isoformat_from_time_val_fmt ( const gchar *fmt_string, const GTimeVal* time_val );
renatofilho@320:
renatofilho@320: GTimeVal *gmyth_util_string_to_time_val_fmt ( const gchar *fmt_string, const gchar* time_str );
renatofilho@320:
renatofilho@320: GTimeVal *gmyth_util_string_to_time_val ( const gchar* time_str );
renatofilho@320:
renatofilho@320: gchar *gmyth_util_time_to_isoformat_from_time_val( const GTimeVal *time);
renatofilho@320: gchar *gmyth_util_time_to_mythformat_from_time_val ( const GTimeVal* time );
renatofilho@320:
renatofilho@320: gchar *gmyth_util_time_to_string_only_date ( const GTimeVal* time );
renatofilho@320:
renatofilho@320: gchar *gmyth_util_time_to_string_only_time ( const GTimeVal* time );
renatofilho@320:
renatofilho@320: gchar *gmyth_util_time_to_string_from_time_val ( const GTimeVal *time_val );
renatofilho@320:
renatofilho@320: struct tm *gmyth_util_time_val_to_date ( const GTimeVal* time );
renatofilho@320:
renatofilho@320: gboolean gmyth_util_file_exists (GMythBackendInfo *backend_info, const gchar* filename);
renatofilho@320:
renatofilho@320: G_END_DECLS
renatofilho@320:
renatofilho@320: #endif /*GMYTH_UTIL_H_*/