Blame src/grl-range-value.h

Packit 67b98c
/*
Packit 67b98c
 * Copyright (C) 2011 Igalia S.L.
Packit 67b98c
 *
Packit 67b98c
 * Contact: Iago Toral Quiroga <itoral@igalia.com>
Packit 67b98c
 *
Packit 67b98c
 * This library is free software; you can redistribute it and/or
Packit 67b98c
 * modify it under the terms of the GNU Lesser General Public License
Packit 67b98c
 * as published by the Free Software Foundation; version 2.1 of
Packit 67b98c
 * the License, or (at your option) any later version.
Packit 67b98c
 *
Packit 67b98c
 * This library is distributed in the hope that it will be useful, but
Packit 67b98c
 * WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 67b98c
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Packit 67b98c
 * Lesser General Public License for more details.
Packit 67b98c
 *
Packit 67b98c
 * You should have received a copy of the GNU Lesser General Public
Packit 67b98c
 * License along with this library; if not, write to the Free Software
Packit 67b98c
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
Packit 67b98c
 * 02110-1301 USA
Packit 67b98c
 *
Packit 67b98c
 */
Packit 67b98c
Packit 67b98c
#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION)
Packit 67b98c
#error "Only <grilo.h> can be included directly."
Packit 67b98c
#endif
Packit 67b98c
Packit 67b98c
#if !defined (_GRL_RANGE_VALUE_HELPER_H_)
Packit 67b98c
#define _GRL_RANGE_VALUE_HELPER_H_
Packit 67b98c
Packit 67b98c
#include <glib-object.h>
Packit 67b98c
Packit 67b98c
typedef struct {
Packit 67b98c
  GValue *min;
Packit 67b98c
  GValue *max;
Packit 67b98c
} GrlRangeValue;
Packit 67b98c
Packit 67b98c
G_BEGIN_DECLS
Packit 67b98c
Packit 67b98c
GrlRangeValue *grl_range_value_new (GValue *min,
Packit 67b98c
                                    GValue *max);
Packit 67b98c
Packit 67b98c
void grl_range_value_free (GrlRangeValue *range);
Packit 67b98c
Packit 67b98c
GHashTable *grl_range_value_hashtable_new (void);
Packit 67b98c
Packit 67b98c
GrlRangeValue *grl_range_value_dup (const GrlRangeValue *range);
Packit 67b98c
Packit 67b98c
void grl_range_value_hashtable_insert (GHashTable *hash_table,
Packit 67b98c
                                       gpointer key,
Packit 67b98c
                                       GValue *min,
Packit 67b98c
                                       GValue *max);
Packit 67b98c
Packit 67b98c
GType grl_range_value_get_type (void);
Packit 67b98c
Packit 67b98c
G_END_DECLS
Packit 67b98c
Packit 67b98c
#endif /* _GRL_RANGE_VALUE_HELPER_H_ */