#include <string.h>
-#include "glib.h"
+#include "gstrfuncs.h"
+#include "gmessages.h"
+#include "gunicode.h"
+
+#undef G_DISABLE_DEPRECATED
+
+#include "gcompletion.h"
#include "galias.h"
/**
* retrieves the item's string from the data structure. You can change
* the way in which strings are compared by setting a different
* #GCompletionStrncmpFunc in g_completion_set_compare().
+ *
+ * GCompletion has been marked as deprecated, since this API is rarely
+ * used and not very actively maintained.
**/
/**
* @items: the list of items to add.
*
* Adds items to the #GCompletion.
+ *
+ * Deprecated: 2.26: Rarely used API
**/
void
g_completion_add_items (GCompletion* cmp,
* @items: the items to remove.
*
* Removes items from a #GCompletion.
+ *
+ * Deprecated: 2.26: Rarely used API
**/
void
g_completion_remove_items (GCompletion* cmp,
* @cmp: the #GCompletion.
*
* Removes all items from the #GCompletion.
+ *
+ * Deprecated: 2.26: Rarely used API
**/
void
g_completion_clear_items (GCompletion* cmp)
* not be changed.
*
* Since: 2.4
+ *
+ * Deprecated: 2.26: Rarely used API
**/
GList*
g_completion_complete_utf8 (GCompletion *cmp,
*
* Attempts to complete the string @prefix using the #GCompletion
* target items.
+ *
+ * Deprecated: 2.26: Rarely used API
**/
GList*
g_completion_complete (GCompletion* cmp,
* @cmp: the #GCompletion.
*
* Frees all memory used by the #GCompletion.
+ *
+ * Deprecated: 2.26: Rarely used API
**/
void
g_completion_free (GCompletion* cmp)
*
* Sets the function to use for string comparisons. The default string
* comparison function is strncmp().
+ *
+ * Deprecated: 2.26: Rarely used API
**/
void
g_completion_set_compare(GCompletion *cmp,
#include <stdarg.h>
#include <string.h>
-#include "glib.h"
+#include "ghash.h"
+#include "gmessages.h"
+#include "gtestutils.h"
+#include "gstring.h"
+
+#undef G_DISABLE_DEPRECATED
+
+#include "grel.h"
#include "galias.h"
/**
* To destroy the #GRelation, use g_relation_destroy().
*
* To help debug #GRelation objects, use g_relation_print().
+ *
+ * GRelation has been marked as deprecated, since this API has never
+ * been fully implemented, is not very actively maintained and rarely
+ * used.
**/
typedef struct _GRealTuples GRealTuples;
*
* Creates a new #GRelation with the given number of fields. Note that
* currently the number of fields must be 2.
+ *
+ * Deprecated: 2.26: Rarely used API
**/
GRelation*
g_relation_new (gint fields)
* Destroys the #GRelation, freeing all memory allocated. However, it
* does not free memory allocated for the tuple data, so you should
* free that first if appropriate.
+ *
+ * Deprecated: 2.26: Rarely used API
**/
void
g_relation_destroy (GRelation *relation)
*
* Creates an index on the given field. Note that this must be called
* before any records are added to the #GRelation.
+ *
+ * Deprecated: 2.26: Rarely used API
**/
void
g_relation_index (GRelation *relation,
* or #gconstpointer.
*
* Inserts a record into a #GRelation.
+ *
+ * Deprecated: 2.26: Rarely used API
**/
void
g_relation_insert (GRelation *relation,
*
* Deletes any records from a #GRelation that have the given key value
* in the given field.
+ *
+ * Deprecated: 2.26: Rarely used API
**/
gint
g_relation_delete (GRelation *relation,
* Returns all of the tuples which have the given key in the given
* field. Use g_tuples_index() to access the returned records. The
* returned records should be freed with g_tuples_destroy().
+ *
+ * Deprecated: 2.26: Rarely used API
**/
GTuples*
g_relation_select (GRelation *relation,
*
* Returns the number of tuples in a #GRelation that have the given
* value in the given field.
+ *
+ * Deprecated: 2.26: Rarely used API
**/
gint
g_relation_count (GRelation *relation,
* Returns %TRUE if a record with the given values exists in a
* #GRelation. Note that the values are compared directly, so that, for
* example, two copies of the same string will not match.
+ *
+ * Deprecated: 2.26: Rarely used API
**/
gboolean
g_relation_exists (GRelation *relation, ...)
* should always be called after g_relation_select() when you are
* finished with the records. The records are not removed from the
* #GRelation.
+ *
+ * Deprecated: 2.26: Rarely used API
**/
void
g_tuples_destroy (GTuples *tuples0)
* Gets a field from the records returned by g_relation_select(). It
* returns the given field of the record at the given index. The
* returned value should not be changed.
+ *
+ * Deprecated: 2.26: Rarely used API
**/
gpointer
g_tuples_index (GTuples *tuples0,
*
* Outputs information about all records in a #GRelation, as well as
* the indexes. It is for debugging.
+ *
+ * Deprecated: 2.26: Rarely used API
**/
void
g_relation_print (GRelation *relation)