Lines Matching refs:context

41 process_content (ExpatParseContext *context)  in process_content()  argument
43 if (context->failed) in process_content()
46 if (_dbus_string_get_length (&context->content) > 0) in process_content()
48 if (!bus_config_parser_content (context->parser, in process_content()
49 &context->content, in process_content()
50 context->error)) in process_content()
52 context->failed = TRUE; in process_content()
55 _dbus_string_set_length (&context->content, 0); in process_content()
66 ExpatParseContext *context = userData; in expat_StartElementHandler() local
74 if (context->failed) in expat_StartElementHandler()
77 if (!process_content (context)) in expat_StartElementHandler()
90 dbus_set_error (context->error, DBUS_ERROR_NO_MEMORY, NULL); in expat_StartElementHandler()
91 context->failed = TRUE; in expat_StartElementHandler()
107 if (!bus_config_parser_start_element (context->parser, in expat_StartElementHandler()
111 context->error)) in expat_StartElementHandler()
115 context->failed = TRUE; in expat_StartElementHandler()
127 ExpatParseContext *context = userData; in expat_EndElementHandler() local
129 if (!process_content (context)) in expat_EndElementHandler()
132 if (!bus_config_parser_end_element (context->parser, in expat_EndElementHandler()
134 context->error)) in expat_EndElementHandler()
136 context->failed = TRUE; in expat_EndElementHandler()
147 ExpatParseContext *context = userData; in expat_CharacterDataHandler() local
148 if (context->failed) in expat_CharacterDataHandler()
151 if (!_dbus_string_append_len (&context->content, in expat_CharacterDataHandler()
154 dbus_set_error (context->error, DBUS_ERROR_NO_MEMORY, NULL); in expat_CharacterDataHandler()
155 context->failed = TRUE; in expat_CharacterDataHandler()
170 ExpatParseContext context; in bus_config_load() local
177 context.error = error; in bus_config_load()
178 context.failed = FALSE; in bus_config_load()
182 if (!_dbus_string_init (&context.content)) in bus_config_load()
191 _dbus_string_free (&context.content); in bus_config_load()
218 context.parser = parser; in bus_config_load()
220 XML_SetUserData (expat, &context); in bus_config_load()
247 if (context.error != NULL && in bus_config_load()
248 !dbus_error_is_set (context.error)) in bus_config_load()
270 if (context.failed) in bus_config_load()
278 _dbus_string_free (&context.content); in bus_config_load()
288 _dbus_string_free (&context.content); in bus_config_load()