mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-28 01:57:14 +02:00
New function to get the currently open element. (#70448)
* glib/gmarkup.h: * glib/gmarkup.c (g_markup_parse_context_get_element): New function to get the currently open element. (#70448)
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2002-07-15 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gmarkup.h:
|
||||||
|
* glib/gmarkup.c (g_markup_parse_context_get_element): New
|
||||||
|
function to get the currently open element. (#70448)
|
||||||
|
|
||||||
2002-07-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2002-07-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
|
* tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
2002-07-15 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gmarkup.h:
|
||||||
|
* glib/gmarkup.c (g_markup_parse_context_get_element): New
|
||||||
|
function to get the currently open element. (#70448)
|
||||||
|
|
||||||
2002-07-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2002-07-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
|
* tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
2002-07-15 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gmarkup.h:
|
||||||
|
* glib/gmarkup.c (g_markup_parse_context_get_element): New
|
||||||
|
function to get the currently open element. (#70448)
|
||||||
|
|
||||||
2002-07-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2002-07-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
|
* tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
2002-07-15 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gmarkup.h:
|
||||||
|
* glib/gmarkup.c (g_markup_parse_context_get_element): New
|
||||||
|
function to get the currently open element. (#70448)
|
||||||
|
|
||||||
2002-07-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2002-07-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
|
* tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
2002-07-15 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gmarkup.h:
|
||||||
|
* glib/gmarkup.c (g_markup_parse_context_get_element): New
|
||||||
|
function to get the currently open element. (#70448)
|
||||||
|
|
||||||
2002-07-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2002-07-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
|
* tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
2002-07-15 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gmarkup.h:
|
||||||
|
* glib/gmarkup.c (g_markup_parse_context_get_element): New
|
||||||
|
function to get the currently open element. (#70448)
|
||||||
|
|
||||||
2002-07-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2002-07-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
|
* tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
2002-07-15 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gmarkup.h:
|
||||||
|
* glib/gmarkup.c (g_markup_parse_context_get_element): New
|
||||||
|
function to get the currently open element. (#70448)
|
||||||
|
|
||||||
2002-07-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2002-07-04 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
|
* tests/*.c: Added #undef G_DISABLE_ASSERT and #undef G_LOG_DOMAIN
|
||||||
|
@@ -1705,6 +1705,24 @@ g_markup_parse_context_end_parse (GMarkupParseContext *context,
|
|||||||
return context->state != STATE_ERROR;
|
return context->state != STATE_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* g_markup_parse_context_get_element:
|
||||||
|
* @context: a #GMarkupParseContext
|
||||||
|
* @returns: the name of the currently open element, or %NULL
|
||||||
|
*
|
||||||
|
* Retrieves the name of the currently open element.
|
||||||
|
**/
|
||||||
|
G_CONST_RETURN gchar *
|
||||||
|
g_markup_parse_context_get_element (GMarkupParseContext *context)
|
||||||
|
{
|
||||||
|
g_return_if_fail (context != NULL);
|
||||||
|
|
||||||
|
if (context->tag_stack == NULL)
|
||||||
|
return NULL;
|
||||||
|
else
|
||||||
|
return current_element (context);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* g_markup_parse_context_get_position:
|
* g_markup_parse_context_get_position:
|
||||||
* @context: a #GMarkupParseContext
|
* @context: a #GMarkupParseContext
|
||||||
|
@@ -107,6 +107,7 @@ gboolean g_markup_parse_context_parse (GMarkupParseContext *context,
|
|||||||
|
|
||||||
gboolean g_markup_parse_context_end_parse (GMarkupParseContext *context,
|
gboolean g_markup_parse_context_end_parse (GMarkupParseContext *context,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
G_CONST_RETURN gchar *g_markup_parse_context_get_element (GMarkupParseContext *context);
|
||||||
|
|
||||||
/* For user-constructed error messages, has no precise semantics */
|
/* For user-constructed error messages, has no precise semantics */
|
||||||
void g_markup_parse_context_get_position (GMarkupParseContext *context,
|
void g_markup_parse_context_get_position (GMarkupParseContext *context,
|
||||||
|
Reference in New Issue
Block a user