Top | ![]() |
![]() |
![]() |
![]() |
gboolean (*XbBuilderFixupFunc) (XbBuilderFixup *self
,XbBuilderNode *bn
,gpointer user_data
,GError **error
);
XbBuilderFixup * xb_builder_fixup_new (const gchar *id
,XbBuilderFixupFunc func
,gpointer user_data
,GDestroyNotify user_data_free
);
Creates a function that will get run on every XbBuilderNode compile creates.
Since: 0.1.3
gint
xb_builder_fixup_get_max_depth (XbBuilderFixup *self
);
Gets the maximum depth used for this fixup, if each node is being visited.
Since: 0.1.3
void xb_builder_fixup_set_max_depth (XbBuilderFixup *self
,gint max_depth
);
Sets the maximum depth used for this fixup. Use a max_depth
of 0 to only
visit the root node.
Setting a maximum depth may increase performance considerably if using fixup functions on large and deeply nested XML files.
Since: 0.1.3