mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-30 09:20:07 +02:00
Rename (private) GSource.id and id parameter to
Wed Nov 28 18:34:22 2001 Owen Taylor <otaylor@redhat.com> * glib/gmain.[ch]: Rename (private) GSource.id and id parameter to g_main_context_find_source_by_id() to avoid problems with Objective C where 'id' is a keyword. (#65616)
This commit is contained in:
parent
f344cb2cc2
commit
13852a10d4
@ -1,3 +1,10 @@
|
|||||||
|
Wed Nov 28 18:34:22 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.[ch]: Rename (private) GSource.id and
|
||||||
|
id parameter to g_main_context_find_source_by_id()
|
||||||
|
to avoid problems with Objective C where 'id' is
|
||||||
|
a keyword. (#65616)
|
||||||
|
|
||||||
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
|
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
|
||||||
|
|
||||||
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
|
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
Wed Nov 28 18:34:22 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.[ch]: Rename (private) GSource.id and
|
||||||
|
id parameter to g_main_context_find_source_by_id()
|
||||||
|
to avoid problems with Objective C where 'id' is
|
||||||
|
a keyword. (#65616)
|
||||||
|
|
||||||
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
|
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
|
||||||
|
|
||||||
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
|
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
Wed Nov 28 18:34:22 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.[ch]: Rename (private) GSource.id and
|
||||||
|
id parameter to g_main_context_find_source_by_id()
|
||||||
|
to avoid problems with Objective C where 'id' is
|
||||||
|
a keyword. (#65616)
|
||||||
|
|
||||||
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
|
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
|
||||||
|
|
||||||
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
|
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
Wed Nov 28 18:34:22 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.[ch]: Rename (private) GSource.id and
|
||||||
|
id parameter to g_main_context_find_source_by_id()
|
||||||
|
to avoid problems with Objective C where 'id' is
|
||||||
|
a keyword. (#65616)
|
||||||
|
|
||||||
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
|
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
|
||||||
|
|
||||||
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
|
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
Wed Nov 28 18:34:22 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.[ch]: Rename (private) GSource.id and
|
||||||
|
id parameter to g_main_context_find_source_by_id()
|
||||||
|
to avoid problems with Objective C where 'id' is
|
||||||
|
a keyword. (#65616)
|
||||||
|
|
||||||
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
|
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
|
||||||
|
|
||||||
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
|
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
Wed Nov 28 18:34:22 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.[ch]: Rename (private) GSource.id and
|
||||||
|
id parameter to g_main_context_find_source_by_id()
|
||||||
|
to avoid problems with Objective C where 'id' is
|
||||||
|
a keyword. (#65616)
|
||||||
|
|
||||||
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
|
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
|
||||||
|
|
||||||
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
|
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
Wed Nov 28 18:34:22 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.[ch]: Rename (private) GSource.id and
|
||||||
|
id parameter to g_main_context_find_source_by_id()
|
||||||
|
to avoid problems with Objective C where 'id' is
|
||||||
|
a keyword. (#65616)
|
||||||
|
|
||||||
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
|
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
|
||||||
|
|
||||||
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
|
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
Wed Nov 28 18:34:22 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.[ch]: Rename (private) GSource.id and
|
||||||
|
id parameter to g_main_context_find_source_by_id()
|
||||||
|
to avoid problems with Objective C where 'id' is
|
||||||
|
a keyword. (#65616)
|
||||||
|
|
||||||
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
|
2001-11-28 Daniel Elstner <daniel.elstner@gmx.net>
|
||||||
|
|
||||||
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
|
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Wed Nov 28 18:50:19 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/glib-sections.txt: Update.
|
||||||
|
|
||||||
2001-11-28 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2001-11-28 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* glib/tmpl/date.sgml: Fix g_usleep docs.
|
* glib/tmpl/date.sgml: Fix g_usleep docs.
|
||||||
|
@ -43,6 +43,7 @@ gssize
|
|||||||
gldouble
|
gldouble
|
||||||
GLIB_SIZEOF_VOID_P
|
GLIB_SIZEOF_VOID_P
|
||||||
GLIB_SIZEOF_LONG
|
GLIB_SIZEOF_LONG
|
||||||
|
GLIB_SIZEOF_SIZE_T
|
||||||
</SECTION>
|
</SECTION>
|
||||||
|
|
||||||
<SECTION>
|
<SECTION>
|
||||||
|
@ -349,8 +349,10 @@ g_main_context_pending().
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
@context:
|
@context:
|
||||||
@id:
|
@source_id:
|
||||||
@Returns:
|
@Returns:
|
||||||
|
<!-- # Unused Parameters # -->
|
||||||
|
@id:
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### FUNCTION g_main_context_find_source_by_user_data ##### -->
|
<!-- ##### FUNCTION g_main_context_find_source_by_user_data ##### -->
|
||||||
|
@ -178,10 +178,10 @@ Specifies the type of traveral performed by g_tree_traverse(),
|
|||||||
g_node_traverse() and g_node_find().
|
g_node_traverse() and g_node_find().
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@G_PRE_ORDER: visits a node, then its children.
|
|
||||||
@G_IN_ORDER: vists a node's left child first, then the node itself, then its
|
@G_IN_ORDER: vists a node's left child first, then the node itself, then its
|
||||||
right child. This is the one to use if you want the output sorted according
|
right child. This is the one to use if you want the output sorted according
|
||||||
to the compare function.
|
to the compare function.
|
||||||
|
@G_PRE_ORDER: visits a node, then its children.
|
||||||
@G_POST_ORDER: visits the node's children, then the node itself.
|
@G_POST_ORDER: visits the node's children, then the node itself.
|
||||||
@G_LEVEL_ORDER: is not implemented for
|
@G_LEVEL_ORDER: is not implemented for
|
||||||
<link linkend="glib-Balanced-Binary-Trees">Balanced Binary Trees</link>.
|
<link linkend="glib-Balanced-Binary-Trees">Balanced Binary Trees</link>.
|
||||||
|
@ -224,7 +224,7 @@ Specifies which nodes are visited during several of the tree functions,
|
|||||||
including g_node_traverse() and g_node_find().
|
including g_node_traverse() and g_node_find().
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@G_TRAVERSE_LEAFS: only leaf nodes should be visited.
|
@G_TRAVERSE_LEAFS: only leaf nodes should be visited.
|
||||||
@G_TRAVERSE_NON_LEAFS: only non-leaf nodes should be visited.
|
@G_TRAVERSE_NON_LEAFS: only non-leaf nodes should be visited.
|
||||||
@G_TRAVERSE_ALL: all nodes should be visited.
|
@G_TRAVERSE_ALL: all nodes should be visited.
|
||||||
@G_TRAVERSE_MASK:
|
@G_TRAVERSE_MASK:
|
||||||
|
@ -46,6 +46,62 @@ Parameter Specifications
|
|||||||
|
|
||||||
@parent_instance:
|
@parent_instance:
|
||||||
|
|
||||||
|
<!-- ##### ENUM GTypeFundamentals ##### -->
|
||||||
|
<para>
|
||||||
|
The predefined identifiers of the reserved fundamental types.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
@G_TYPE_INVALID: Usually a return value indicating an error.
|
||||||
|
@G_TYPE_NONE: A synonym for the "void" type in C.
|
||||||
|
@G_TYPE_INTERFACE: Root type of all interface types.
|
||||||
|
@G_TYPE_CHAR: Identifier for the built-in type "gchar".
|
||||||
|
@G_TYPE_UCHAR: Identifier for the built-in type "guchar".
|
||||||
|
@G_TYPE_BOOLEAN: Identifier for the built-in type "gboolean".
|
||||||
|
@G_TYPE_INT: Identifier for the built-in type "gint".
|
||||||
|
@G_TYPE_UINT: Identifier for the built-in type "guint".
|
||||||
|
@G_TYPE_LONG: Identifier for the built-in type "glong".
|
||||||
|
@G_TYPE_ULONG: Identifier for the built-in type "gulong".
|
||||||
|
@G_TYPE_INT64:
|
||||||
|
@G_TYPE_UINT64:
|
||||||
|
@G_TYPE_ENUM: Identifier for the "#GEnum" type.
|
||||||
|
@G_TYPE_FLAGS: Identifier for the "#GFlags" type.
|
||||||
|
@G_TYPE_FLOAT: Identifier for the built-in type "gfloat".
|
||||||
|
@G_TYPE_DOUBLE: Identifier for the built-in type "gdouble".
|
||||||
|
@G_TYPE_STRING: Identifier for a pointer to a null-terminated string "gchar*".
|
||||||
|
@G_TYPE_POINTER: Identifier for anonymous pointers "void*".
|
||||||
|
@G_TYPE_BOXED: Identifier for the "#GBoxed" type.
|
||||||
|
@G_TYPE_PARAM: Identifier for the "#GParam" type.
|
||||||
|
@G_TYPE_OBJECT: Identifier for the "#GObject" type.
|
||||||
|
@G_TYPE_RESERVED_BSE_FIRST: First fundamental type ID reserved for BSE.
|
||||||
|
@G_TYPE_RESERVED_BSE_LAST: Last fundamental type ID reserved for BSE.
|
||||||
|
@G_TYPE_RESERVED_LAST_FUNDAMENTAL:
|
||||||
|
@G_TYPE_CONSTANT_TYPES:
|
||||||
|
@G_TYPE_CLOSURE:
|
||||||
|
@G_TYPE_VALUE:
|
||||||
|
@G_TYPE_VALUE_ARRAY:
|
||||||
|
@G_TYPE_GSTRING:
|
||||||
|
@G_TYPE_PARAM_CHAR:
|
||||||
|
@G_TYPE_PARAM_UCHAR:
|
||||||
|
@G_TYPE_PARAM_BOOLEAN:
|
||||||
|
@G_TYPE_PARAM_INT:
|
||||||
|
@G_TYPE_PARAM_UINT:
|
||||||
|
@G_TYPE_PARAM_LONG:
|
||||||
|
@G_TYPE_PARAM_ULONG:
|
||||||
|
@G_TYPE_PARAM_INT64:
|
||||||
|
@G_TYPE_PARAM_UINT64:
|
||||||
|
@G_TYPE_PARAM_UNICHAR:
|
||||||
|
@G_TYPE_PARAM_ENUM:
|
||||||
|
@G_TYPE_PARAM_FLAGS:
|
||||||
|
@G_TYPE_PARAM_FLOAT:
|
||||||
|
@G_TYPE_PARAM_DOUBLE:
|
||||||
|
@G_TYPE_PARAM_STRING:
|
||||||
|
@G_TYPE_PARAM_PARAM:
|
||||||
|
@G_TYPE_PARAM_BOXED:
|
||||||
|
@G_TYPE_PARAM_POINTER:
|
||||||
|
@G_TYPE_PARAM_VALUE_ARRAY:
|
||||||
|
@G_TYPE_PARAM_CLOSURE:
|
||||||
|
@G_TYPE_PARAM_OBJECT:
|
||||||
|
|
||||||
<!-- ##### MACRO G_IS_PARAM_SPEC_CLOSURE ##### -->
|
<!-- ##### MACRO G_IS_PARAM_SPEC_CLOSURE ##### -->
|
||||||
<para>
|
<para>
|
||||||
|
|
||||||
|
@ -161,62 +161,6 @@ interfaces and C++ classes containing only pure virtual functions.
|
|||||||
@type: A #GType value.
|
@type: A #GType value.
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### ENUM GTypeFundamentals ##### -->
|
|
||||||
<para>
|
|
||||||
The predefined identifiers of the reserved fundamental types.
|
|
||||||
</para>
|
|
||||||
|
|
||||||
@G_TYPE_INVALID: Usually a return value indicating an error.
|
|
||||||
@G_TYPE_NONE: A synonym for the "void" type in C.
|
|
||||||
@G_TYPE_INTERFACE: Root type of all interface types.
|
|
||||||
@G_TYPE_CHAR: Identifier for the built-in type "gchar".
|
|
||||||
@G_TYPE_UCHAR: Identifier for the built-in type "guchar".
|
|
||||||
@G_TYPE_BOOLEAN: Identifier for the built-in type "gboolean".
|
|
||||||
@G_TYPE_INT: Identifier for the built-in type "gint".
|
|
||||||
@G_TYPE_UINT: Identifier for the built-in type "guint".
|
|
||||||
@G_TYPE_LONG: Identifier for the built-in type "glong".
|
|
||||||
@G_TYPE_ULONG: Identifier for the built-in type "gulong".
|
|
||||||
@G_TYPE_INT64:
|
|
||||||
@G_TYPE_UINT64:
|
|
||||||
@G_TYPE_ENUM: Identifier for the "#GEnum" type.
|
|
||||||
@G_TYPE_FLAGS: Identifier for the "#GFlags" type.
|
|
||||||
@G_TYPE_FLOAT: Identifier for the built-in type "gfloat".
|
|
||||||
@G_TYPE_DOUBLE: Identifier for the built-in type "gdouble".
|
|
||||||
@G_TYPE_STRING: Identifier for a pointer to a null-terminated string "gchar*".
|
|
||||||
@G_TYPE_POINTER: Identifier for anonymous pointers "void*".
|
|
||||||
@G_TYPE_BOXED: Identifier for the "#GBoxed" type.
|
|
||||||
@G_TYPE_PARAM: Identifier for the "#GParam" type.
|
|
||||||
@G_TYPE_OBJECT: Identifier for the "#GObject" type.
|
|
||||||
@G_TYPE_RESERVED_BSE_FIRST: First fundamental type ID reserved for BSE.
|
|
||||||
@G_TYPE_RESERVED_BSE_LAST: Last fundamental type ID reserved for BSE.
|
|
||||||
@G_TYPE_RESERVED_LAST_FUNDAMENTAL:
|
|
||||||
@G_TYPE_CONSTANT_TYPES:
|
|
||||||
@G_TYPE_CLOSURE:
|
|
||||||
@G_TYPE_VALUE:
|
|
||||||
@G_TYPE_VALUE_ARRAY:
|
|
||||||
@G_TYPE_GSTRING:
|
|
||||||
@G_TYPE_PARAM_CHAR:
|
|
||||||
@G_TYPE_PARAM_UCHAR:
|
|
||||||
@G_TYPE_PARAM_BOOLEAN:
|
|
||||||
@G_TYPE_PARAM_INT:
|
|
||||||
@G_TYPE_PARAM_UINT:
|
|
||||||
@G_TYPE_PARAM_LONG:
|
|
||||||
@G_TYPE_PARAM_ULONG:
|
|
||||||
@G_TYPE_PARAM_INT64:
|
|
||||||
@G_TYPE_PARAM_UINT64:
|
|
||||||
@G_TYPE_PARAM_UNICHAR:
|
|
||||||
@G_TYPE_PARAM_ENUM:
|
|
||||||
@G_TYPE_PARAM_FLAGS:
|
|
||||||
@G_TYPE_PARAM_FLOAT:
|
|
||||||
@G_TYPE_PARAM_DOUBLE:
|
|
||||||
@G_TYPE_PARAM_STRING:
|
|
||||||
@G_TYPE_PARAM_PARAM:
|
|
||||||
@G_TYPE_PARAM_BOXED:
|
|
||||||
@G_TYPE_PARAM_POINTER:
|
|
||||||
@G_TYPE_PARAM_VALUE_ARRAY:
|
|
||||||
@G_TYPE_PARAM_CLOSURE:
|
|
||||||
@G_TYPE_PARAM_OBJECT:
|
|
||||||
|
|
||||||
<!-- ##### STRUCT GTypeInterface ##### -->
|
<!-- ##### STRUCT GTypeInterface ##### -->
|
||||||
<para>
|
<para>
|
||||||
An opaque structure used as the base of all interface types.
|
An opaque structure used as the base of all interface types.
|
||||||
|
12
glib/gmain.c
12
glib/gmain.c
@ -794,7 +794,7 @@ g_source_attach (GSource *source,
|
|||||||
LOCK_CONTEXT (context);
|
LOCK_CONTEXT (context);
|
||||||
|
|
||||||
source->context = context;
|
source->context = context;
|
||||||
result = source->id = context->next_id++;
|
result = source->source_id = context->next_id++;
|
||||||
|
|
||||||
source->ref_count++;
|
source->ref_count++;
|
||||||
g_source_list_add (source, context);
|
g_source_list_add (source, context);
|
||||||
@ -901,7 +901,7 @@ g_source_get_id (GSource *source)
|
|||||||
g_return_val_if_fail (source->context != NULL, 0);
|
g_return_val_if_fail (source->context != NULL, 0);
|
||||||
|
|
||||||
LOCK_CONTEXT (source->context);
|
LOCK_CONTEXT (source->context);
|
||||||
result = source->id;
|
result = source->source_id;
|
||||||
UNLOCK_CONTEXT (source->context);
|
UNLOCK_CONTEXT (source->context);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@ -1317,7 +1317,7 @@ g_source_unref (GSource *source)
|
|||||||
/**
|
/**
|
||||||
* g_main_context_find_source_by_id:
|
* g_main_context_find_source_by_id:
|
||||||
* @context: a #GMainContext (if %NULL, the default context will be used)
|
* @context: a #GMainContext (if %NULL, the default context will be used)
|
||||||
* @id: the source ID, as returned by g_source_get_id()
|
* @source_id: the source ID, as returned by g_source_get_id()
|
||||||
*
|
*
|
||||||
* Finds a #GSource given a pair of context and ID
|
* Finds a #GSource given a pair of context and ID
|
||||||
*
|
*
|
||||||
@ -1325,11 +1325,11 @@ g_source_unref (GSource *source)
|
|||||||
**/
|
**/
|
||||||
GSource *
|
GSource *
|
||||||
g_main_context_find_source_by_id (GMainContext *context,
|
g_main_context_find_source_by_id (GMainContext *context,
|
||||||
guint id)
|
guint source_id)
|
||||||
{
|
{
|
||||||
GSource *source;
|
GSource *source;
|
||||||
|
|
||||||
g_return_val_if_fail (id > 0, FALSE);
|
g_return_val_if_fail (source_id > 0, FALSE);
|
||||||
|
|
||||||
if (context == NULL)
|
if (context == NULL)
|
||||||
context = g_main_context_default ();
|
context = g_main_context_default ();
|
||||||
@ -1340,7 +1340,7 @@ g_main_context_find_source_by_id (GMainContext *context,
|
|||||||
while (source)
|
while (source)
|
||||||
{
|
{
|
||||||
if (!SOURCE_DESTROYED (source) &&
|
if (!SOURCE_DESTROYED (source) &&
|
||||||
source->id == id)
|
source->source_id == source_id)
|
||||||
break;
|
break;
|
||||||
source = source->next;
|
source = source->next;
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ struct _GSource
|
|||||||
|
|
||||||
gint priority;
|
gint priority;
|
||||||
guint flags;
|
guint flags;
|
||||||
guint id;
|
guint source_id;
|
||||||
|
|
||||||
GSList *poll_fds;
|
GSList *poll_fds;
|
||||||
|
|
||||||
@ -143,7 +143,7 @@ gboolean g_main_context_pending (GMainContext *context);
|
|||||||
/* For implementation of legacy interfaces
|
/* For implementation of legacy interfaces
|
||||||
*/
|
*/
|
||||||
GSource *g_main_context_find_source_by_id (GMainContext *context,
|
GSource *g_main_context_find_source_by_id (GMainContext *context,
|
||||||
guint id);
|
guint source_id);
|
||||||
GSource *g_main_context_find_source_by_user_data (GMainContext *context,
|
GSource *g_main_context_find_source_by_user_data (GMainContext *context,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
GSource *g_main_context_find_source_by_funcs_user_data (GMainContext *context,
|
GSource *g_main_context_find_source_by_funcs_user_data (GMainContext *context,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user