/usr/include/gthumb-3.4/gthumb/gvaluehash.h is in gthumb-dev 3:3.4.3-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 82 83 84 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* GThumb
*
* Copyright (C) 2010 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 G_VALUE_HASH_H
#define G_VALUE_HASH_H
#include <glib.h>
#include <glib-object.h>
G_BEGIN_DECLS
/**
* GValueHash:
*
* A #GValueHash contains an hash table of strings associated to #GValue
* elements.
*/
typedef struct _GValueHash GValueHash;
GValueHash * g_value_hash_new (void);
void g_value_hash_ref (GValueHash *self);
void g_value_hash_unref (GValueHash *self);
void g_value_hash_set_boolean (GValueHash *self,
const char *key,
gboolean value);
void g_value_hash_set_float (GValueHash *self,
const char *key,
float value);
void g_value_hash_set_int (GValueHash *self,
const char *key,
int value);
void g_value_hash_set_string (GValueHash *self,
const char *key,
const char *value);
void g_value_hash_set_stringv (GValueHash *self,
const char *key,
char **value);
void g_value_hash_set_string_list (GValueHash *self,
const char *key,
GList *value);
void g_value_hash_set_value (GValueHash *self,
const char *key,
GValue *value);
GValue * g_value_hash_get_value (GValueHash *self,
const char *key);
gboolean g_value_hash_is_set (GValueHash *self,
const char *key);
#define g_value_hash_get_boolean(self, key) (g_value_get_boolean (g_value_hash_get_value ((self), (key))))
#define g_value_hash_get_float(self, key) (g_value_get_float (g_value_hash_get_value ((self), (key))))
#define g_value_hash_get_int(self, key) (g_value_get_int (g_value_hash_get_value ((self), (key))))
#define g_value_hash_get_string(self, key) (g_value_get_string (g_value_hash_get_value ((self), (key))))
#define g_value_hash_get_stringv(self, key) ((char **) g_value_get_boxed (g_value_hash_get_value ((self), (key))))
#define g_value_hash_get_string_list(self, key) ((GList *) g_value_get_boxed (g_value_hash_get_value ((self), (key))))
#define g_value_hash_get_boolean_or_default(self, key, _default) (g_value_hash_is_set ((self), (key)) ? g_value_get_boolean (g_value_hash_get_value ((self), (key))) : (_default))
#define g_value_hash_get_float_or_default(self, key, _default) (g_value_hash_is_set ((self), (key)) ? g_value_get_float (g_value_hash_get_value ((self), (key))) : (_default))
#define g_value_hash_get_int_or_default(self, key, _default) (g_value_hash_is_set ((self), (key)) ? g_value_get_int (g_value_hash_get_value ((self), (key))) : (_default))
#define g_value_hash_get_string_or_default(self, key, _default) (g_value_hash_is_set ((self), (key)) ? g_value_get_string (g_value_hash_get_value ((self), (key))) : (_default))
#define g_value_hash_get_stringv_or_default(self, key, _default) (g_value_hash_is_set ((self), (key)) ? (char **) g_value_get_boxed (g_value_hash_get_value ((self), (key))) : (_default))
#define g_value_hash_get_string_list_or_default(self, key, _default) (g_value_hash_is_set ((self), (key)) ? (GList *) g_value_get_boxed (g_value_hash_get_value ((self), (key))) : (_default))
void g_value_hash_unset (GValueHash *self,
const char *key);
void g_value_hash_clear (GValueHash *self);
G_END_DECLS
#endif /* G_VALUE_HASH_H */
|