/usr/include/gthumb-3.6/gthumb/gth-time.h is in gthumb-dev 3:3.6.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* GThumb
*
* Copyright (C) 2009 The Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef GTH_TIME_H
#define GTH_TIME_H
#include <glib.h>
G_BEGIN_DECLS
#define GTH_TYPE_DATETIME (gth_datetime_get_type ())
typedef struct {
guint8 hour;
guint8 min;
guint8 sec;
guint usec;
} GthTime;
typedef struct {
GDate *date;
GthTime *time;
} GthDateTime;
GType gth_datetime_get_type (void);
GthTime * gth_time_new (void);
void gth_time_free (GthTime *time);
void gth_time_clear (GthTime *time);
gboolean gth_time_valid (GthTime *time);
void gth_time_set_hms (GthTime *time,
guint8 hour,
guint8 min,
guint8 sec,
guint usec);
GthDateTime * gth_datetime_new (void);
void gth_datetime_free (GthDateTime *dt);
void gth_datetime_clear (GthDateTime *dt);
void gth_datetime_copy (GthDateTime *src,
GthDateTime *dest);
gboolean gth_datetime_valid (GthDateTime *dt);
gboolean gth_datetime_valid_date (GthDateTime *dt);
void gth_datetime_from_timeval (GthDateTime *dt,
GTimeVal *tv);
gboolean gth_datetime_from_exif_date (GthDateTime *dt,
const char *exif_date);
void gth_datetime_from_struct_tm (GthDateTime *dt,
struct tm *tm);
void gth_datetime_from_gdate (GthDateTime *dt,
GDate *date);
char * gth_datetime_to_exif_date (GthDateTime *dt);
gboolean gth_datetime_to_struct_tm (GthDateTime *dt,
struct tm *tm);
gboolean gth_datetime_to_timeval (GthDateTime *dt,
GTimeVal *tv);
char * gth_datetime_strftime (GthDateTime *dt,
const char *format);
G_END_DECLS
#endif /* GTH_TIME_H */
|