/usr/include/evolution-data-server-3.2/libedata-cal/e-cal-backend-intervaltree.h is in libedata-cal1.2-dev 3.2.3-0ubuntu7.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 85 86 87 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Authors: Stanislav Slusny <slusnys@gmail.com>
*
* Copyright 2008
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef E_INTERVALTREE_H
#define E_INTERVALTREE_H
#include <libecal/e-cal-component.h>
#include <libecal/e-cal-recur.h>
#define E_INTERVALTREE_DEBUG 1
#define E_TYPE_INTERVALTREE (e_intervaltree_get_type ())
#define E_INTERVALTREE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), E_TYPE_INTERVALTREE, EIntervalTree))
#define E_INTERVALTREE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), E_TYPE_INTERVALTREE, EIntervalTreeClass))
#define E_IS_INTERVALTREE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), E_TYPE_INTERVALTREE))
#define E_IS_INTERVALTREE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), E_TYPE_INTERVALTREE))
#define E_INTERVALTREE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), E_TYPE_INTERVALTREE, EIntervalTreeClass))
G_BEGIN_DECLS
/* #undef E_INTERVALTREE_DEBUG */
/*
* Implementation of the interval node as described in Introduction to Algorithms
* book by Cormen et al, chapter 14.3.
*
* Basically, the interval tree is the red-black tree, the node key is the start
* of the interval.
*/
typedef struct _EIntervalTree EIntervalTree;
typedef struct _EIntervalTreeClass EIntervalTreeClass;
typedef struct _EIntervalTreePrivate EIntervalTreePrivate;
/**
* EIntervalTree:
*
* Since: 2.32
**/
struct _EIntervalTree
{
GObject parent;
EIntervalTreePrivate *priv;
};
struct _EIntervalTreeClass
{
GObjectClass parent;
};
GType e_intervaltree_get_type (void);
EIntervalTree * e_intervaltree_new (void);
gboolean e_intervaltree_insert (EIntervalTree *tree, time_t start, time_t end, ECalComponent *comp);
gboolean e_intervaltree_remove (EIntervalTree *tree, const gchar *uid, const gchar *rid);
void e_intervaltree_destroy (EIntervalTree *tree);
GList *
e_intervaltree_search (EIntervalTree *tree, time_t start, time_t end);
#ifdef E_INTERVALTREE_DEBUG
void e_intervaltree_dump (EIntervalTree *tree);
#endif
G_END_DECLS
#endif /* E_INTERVALTREE_H */
|