Lines Matching defs:context

64 static int parse_xml_annotation(Context *context, uint64_t *flags) {
74 assert(context);
81 t = xml_tokenize(&context->current, &name, &context->xml_state, NULL);
179 static int parse_xml_node(Context *context, const char *prefix, unsigned n_depth) {
207 assert(context);
219 t = xml_tokenize(&context->current, &name, &context->xml_state, NULL);
248 r = parse_xml_node(context, np, n_depth+1);
259 if (context->ops->on_path) {
260 r = context->ops->on_path(node_path ? node_path : np, context->userdata);
318 context->member_flags |= SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE;
321 r = parse_xml_annotation(context, &context->interface_flags);
332 if (context->ops->on_interface) {
333 r = context->ops->on_interface(context->interface_name, context->interface_flags, context->userdata);
338 context_reset_interface(context);
354 free(context->interface_name);
355 context->interface_name = name;
380 r = parse_xml_annotation(context, &context->member_flags);
391 if (context->ops->on_method) {
392 r = context->ops->on_method(context->interface_name, context->member_name, context->member_signature, context->member_result, context->member_flags, context->userdata);
397 context_reset_member(context);
414 free(context->member_name);
415 context->member_name = name;
442 r = parse_xml_annotation(context, NULL);
456 if (!strextend(&context->member_signature, argument_type, NULL))
459 if (!strextend(&context->member_result, argument_type, NULL))
530 r = parse_xml_annotation(context, &context->member_flags);
541 if (context->ops->on_signal) {
542 r = context->ops->on_signal(context->interface_name, context->member_name, context->member_signature, context->member_flags, context->userdata);
547 context_reset_member(context);
564 free(context->member_name);
565 context->member_name = name;
591 r = parse_xml_annotation(context, NULL);
602 if (!strextend(&context->member_signature, argument_type, NULL))
658 r = parse_xml_annotation(context, &context->member_flags);
670 if (context->ops->on_property) {
671 r = context->ops->on_property(context->interface_name, context->member_name, context->member_signature, context->member_writable, context->member_flags, context->userdata);
676 context_reset_member(context);
693 free(context->member_name);
694 context->member_name = name;
710 free(context->member_signature);
711 context->member_signature = name;
728 context->member_writable = true;
742 Context context = {
757 r = xml_tokenize(&context.current, &name, &context.xml_state, NULL);
771 r = parse_xml_node(&context, prefix, 0);
787 context_reset_interface(&context);