~ubuntu-branches/debian/sid/glib2.0/sid

« back to all changes in this revision

Viewing changes to .pc/03_revert_git_single_include_error.patch/glib/deprecated/grel.h

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-05-08 06:25:57 UTC
  • mfrom: (1.27.14) (3.1.181 experimental)
  • Revision ID: package-import@ubuntu.com-20130508062557-i7gbku66mls70gi2
Tags: 2.36.1-2
Merge experimental branch, upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* GLIB - Library of useful routines for C programming
2
 
 * Copyright (C) 1995-1997  Peter Mattis, Spencer Kimball and Josh MacDonald
3
 
 *
4
 
 * This library is free software; you can redistribute it and/or
5
 
 * modify it under the terms of the GNU Lesser General Public
6
 
 * License as published by the Free Software Foundation; either
7
 
 * version 2 of the License, or (at your option) any later version.
8
 
 *
9
 
 * This library is distributed in the hope that it will be useful,
10
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
 
 * Lesser General Public License for more details.
13
 
 *
14
 
 * You should have received a copy of the GNU Lesser General Public
15
 
 * License along with this library; if not, write to the
16
 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
 
 * Boston, MA 02111-1307, USA.
18
 
 */
19
 
 
20
 
/*
21
 
 * Modified by the GLib Team and others 1997-2000.  See the AUTHORS
22
 
 * file for a list of people on the GLib Team.  See the ChangeLog
23
 
 * files for a list of changes.  These files are distributed with
24
 
 * GLib at ftp://ftp.gtk.org/pub/gtk/.
25
 
 */
26
 
 
27
 
#if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
28
 
#error "Only <glib.h> can be included directly."
29
 
#endif
30
 
 
31
 
#ifndef __G_REL_H__
32
 
#define __G_REL_H__
33
 
 
34
 
#include <glib/gtypes.h>
35
 
 
36
 
G_BEGIN_DECLS
37
 
 
38
 
typedef struct _GRelation       GRelation;
39
 
typedef struct _GTuples         GTuples;
40
 
 
41
 
struct _GTuples
42
 
{
43
 
  guint len;
44
 
};
45
 
 
46
 
/* GRelation
47
 
 *
48
 
 * Indexed Relations.  Imagine a really simple table in a
49
 
 * database.  Relations are not ordered.  This data type is meant for
50
 
 * maintaining a N-way mapping.
51
 
 *
52
 
 * g_relation_new() creates a relation with FIELDS fields
53
 
 *
54
 
 * g_relation_destroy() frees all resources
55
 
 * g_tuples_destroy() frees the result of g_relation_select()
56
 
 *
57
 
 * g_relation_index() indexes relation FIELD with the provided
58
 
 *   equality and hash functions.  this must be done before any
59
 
 *   calls to insert are made.
60
 
 *
61
 
 * g_relation_insert() inserts a new tuple.  you are expected to
62
 
 *   provide the right number of fields.
63
 
 *
64
 
 * g_relation_delete() deletes all relations with KEY in FIELD
65
 
 * g_relation_select() returns ...
66
 
 * g_relation_count() counts ...
67
 
 */
68
 
 
69
 
GLIB_DEPRECATED_IN_2_26
70
 
GRelation* g_relation_new     (gint         fields);
71
 
GLIB_DEPRECATED_IN_2_26
72
 
void       g_relation_destroy (GRelation   *relation);
73
 
GLIB_DEPRECATED_IN_2_26
74
 
void       g_relation_index   (GRelation   *relation,
75
 
                               gint         field,
76
 
                               GHashFunc    hash_func,
77
 
                               GEqualFunc   key_equal_func);
78
 
GLIB_DEPRECATED_IN_2_26
79
 
void       g_relation_insert  (GRelation   *relation,
80
 
                               ...);
81
 
GLIB_DEPRECATED_IN_2_26
82
 
gint       g_relation_delete  (GRelation   *relation,
83
 
                               gconstpointer  key,
84
 
                               gint         field);
85
 
GLIB_DEPRECATED_IN_2_26
86
 
GTuples*   g_relation_select  (GRelation   *relation,
87
 
                               gconstpointer  key,
88
 
                               gint         field);
89
 
GLIB_DEPRECATED_IN_2_26
90
 
gint       g_relation_count   (GRelation   *relation,
91
 
                               gconstpointer  key,
92
 
                               gint         field);
93
 
GLIB_DEPRECATED_IN_2_26
94
 
gboolean   g_relation_exists  (GRelation   *relation,
95
 
                               ...);
96
 
GLIB_DEPRECATED_IN_2_26
97
 
void       g_relation_print   (GRelation   *relation);
98
 
GLIB_DEPRECATED_IN_2_26
99
 
void       g_tuples_destroy   (GTuples     *tuples);
100
 
GLIB_DEPRECATED_IN_2_26
101
 
gpointer   g_tuples_index     (GTuples     *tuples,
102
 
                               gint         index_,
103
 
                               gint         field);
104
 
 
105
 
G_END_DECLS
106
 
 
107
 
#endif /* __G_REL_H__ */