Home | History | Annotate | Download | only in gobject

Lines Matching defs:vtable

279   GTypeInterface *vtable;
450 CLASSED_NODE_IFACES_ENTRIES (node)[j].vtable = NULL;
919 if (entry && entry->vtable == NULL && !type_iface_peek_holder_L (iface, NODE_TYPE (node)))
921 /* ok, we do conform to this interface already, but the interface vtable was not
978 GTypeValueTable *vtable = NULL;
988 vtable = pnode->data->common.value_table;
1011 vtable
1036 vtable = G_STRUCT_MEMBER_P (data, sizeof (ClassData));
1050 vtable = G_STRUCT_MEMBER_P (data, sizeof (IFaceData));
1063 vtable = G_STRUCT_MEMBER_P (data, sizeof (CommonData));
1073 /* we allocate the vtable and its strings together with the type data, so
1074 * children can take over their parent's vtable pointer, and we don't
1077 *vtable = *value_table;
1078 p = G_STRUCT_MEMBER_P (vtable, sizeof (*vtable));
1080 vtable->collect_format = p;
1088 vtable->lcopy_format = p;
1092 node->data->common.value_table = vtable;
1188 g_assert (entries[i].vtable == NULL && entries[i].init_state == UNINITIALIZED);
1206 entries[i].vtable = NULL;
1214 entries[i].vtable = parent_entry->vtable;
1729 GTypeInterface *vtable = g_malloc0 (iface->data->iface.vtable_size);
1730 iface->data->iface.dflt_vtable = vtable;
1731 vtable->g_type = NODE_TYPE (iface);
1732 vtable->g_instance_type = 0;
1738 iface->data->iface.vtable_init_base (vtable);
1740 iface->data->iface.dflt_init (vtable, (gpointer) iface->data->iface.dflt_data);
1748 * the interface vtable; type_iface_vtable_iface_init_Wm() does the remainder.
1751 * this type/iface pair, so the vtable from the parent type should
1761 GTypeInterface *vtable = NULL;
1773 g_assert (iface->data && entry && entry->vtable == NULL && iholder && iholder->info);
1783 vtable = g_memdup (pentry->vtable, iface->data->iface.vtable_size);
1785 if (!vtable)
1786 vtable = g_memdup (iface->data->iface.dflt_vtable, iface->data->iface.vtable_size);
1787 entry->vtable = vtable;
1788 vtable->g_type = NODE_TYPE (iface);
1789 vtable->g_instance_type = NODE_TYPE (node);
1794 iface->data->iface.vtable_init_base (vtable);
1797 return TRUE; /* initialized the vtable */
1812 GTypeInterface *vtable = NULL;
1821 vtable = entry->vtable;
1827 iholder->info->interface_init (vtable, iholder->info->interface_data);
1837 check_func (check_data, (gpointer)vtable);
1845 GTypeInterface *vtable)
1855 g_assert (entry && entry->vtable == vtable && iholder->info);
1857 entry->vtable = NULL;
1863 iholder->info->interface_finalize (vtable, iholder->info->interface_data);
1865 iface->data->iface.vtable_finalize_base (vtable);
1868 vtable->g_type = 0;
1869 vtable->g_instance_type = 0;
1870 g_free (vtable);
1967 entry->vtable = pentry->vtable;
1972 g_assert (entry->vtable != NULL);
2038 if (entry->vtable)
2040 if (type_iface_vtable_finalize_Wm (lookup_type_node_I (entry->iface_type), node, entry->vtable))
2048 * iface vtable came from parent
2050 entry->vtable = NULL;
2253 * Adds a function to be called after an interface vtable is
2841 gpointer vtable = NULL;
2855 if (entry && entry->vtable) /* entry is relocatable */
2856 vtable = entry->vtable;
2863 return vtable;
2884 gpointer vtable = NULL;
2900 if (entry && entry->vtable) /* entry is relocatable */
2901 vtable = entry->vtable;
2908 return vtable;
2916 * and returns the default interface vtable for the type.
2918 * If the type is not currently in use, then the default vtable
2920 * the base interface init and default vtable init functions for
2929 * Returns: the default vtable for the interface; call
2946 g_warning ("cannot retrieve default vtable for invalid or non-interface type '%s'",
2975 * default interface vtable.
2979 * Returns: the default vtable for the interface, or %NULL
2986 gpointer vtable;
2991 vtable = node->data->iface.dflt_vtable;
2993 vtable = NULL;
2996 return vtable;
3001 * @g_iface: the default vtable structure for a interface, as
3005 * interface default vtable @g_iface. If the type is dynamic, then
3008 * vtable (the <structfield>class_finalize</structfield> member of
3017 GTypeInterface *vtable = g_iface;
3021 node = lookup_type_node_I (vtable->g_type);
3028 g_warning ("cannot unreference invalid interface default vtable for '%s'",
3029 type_descriptive_name_I (vtable->g_type));
3894 GTypeValueTable *vtable = NULL;
3914 vtable = node->data->common.value_table;
3936 if (vtable)
3937 return vtable;