midgard/midgard_timestamp.h

00001 /*
00002  * Copyright (c) 2005 Jukka Zitting <jz@yukatan.fi>
00003  *
00004  * This program is free software; you can redistribute it and/or modify it
00005  * under the terms of the GNU Lesser General Public License as published
00006  * by the Free Software Foundation; either version 2 of the License, or
00007  * (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017  */
00018 #ifndef MIDGARD_TIMESTAMP_H
00019 #define MIDGARD_TIMESTAMP_H
00020 
00021 #include <time.h>
00022 #include <glib.h>
00023 #include <glib-object.h>
00024 
00028 #define MIDGARD_TYPE_TIMESTAMP (midgard_timestamp_get_type())
00029 
00034 extern GType midgard_timestamp_get_type(void);
00035 
00044 extern gchar *midgard_timestamp_dup_string(const GValue *value);
00045 
00053 extern void midgard_timestamp_set_string(GValue *value, const gchar *time);
00054 
00061 extern time_t midgard_timestamp_get_time(const GValue *value);
00062 
00069 extern void midgard_timestamp_set_time(GValue *value, time_t time);
00070 
00071 #endif

Generated on Thu Feb 22 06:15:14 2007 for midgard-core by  doxygen 1.4.6