Lines Matching refs:interface
173 struct interface { struct
245 struct interface *interface; member
564 static struct interface *
567 struct interface *interface; in create_interface() local
569 interface = xzalloc(sizeof *interface); in create_interface()
570 interface->loc = loc; in create_interface()
571 interface->name = xstrdup(name); in create_interface()
572 interface->uppercase_name = uppercase_dup(name); in create_interface()
573 interface->version = version; in create_interface()
574 interface->since = 1; in create_interface()
575 wl_list_init(&interface->request_list); in create_interface()
576 wl_list_init(&interface->event_list); in create_interface()
577 wl_list_init(&interface->enumeration_list); in create_interface()
579 return interface; in create_interface()
583 free_interface(struct interface *interface) in free_interface() argument
588 free(interface->name); in free_interface()
589 free(interface->uppercase_name); in free_interface()
590 free_description(interface->description); in free_interface()
592 wl_list_for_each_safe(m, next_m, &interface->request_list, link) in free_interface()
594 wl_list_for_each_safe(m, next_m, &interface->event_list, link) in free_interface()
596 wl_list_for_each_safe(e, next_e, &interface->enumeration_list, link) in free_interface()
599 free(interface); in free_interface()
687 } else if (version > ctx->interface->version) { in version_from_since()
689 version, ctx->interface->version); in version_from_since()
703 struct interface *interface; in start_element() local
765 interface = create_interface(ctx->loc, name, version); in start_element()
766 ctx->interface = interface; in start_element()
768 &interface->link); in start_element()
778 wl_list_insert(ctx->interface->request_list.prev, in start_element()
781 wl_list_insert(ctx->interface->event_list.prev, in start_element()
789 if (version < ctx->interface->since) in start_element()
791 ctx->interface->since = version; in start_element()
864 wl_list_insert(ctx->interface->enumeration_list.prev, in start_element()
898 else if (ctx->interface) in start_element()
899 ctx->interface->description = description; in start_element()
908 struct interface *interface, in find_enumeration() argument
911 struct interface *i; in find_enumeration()
930 } else if (interface) { in find_enumeration()
933 wl_list_for_each(e, &interface->enumeration_list, link) in find_enumeration()
943 struct interface *interface, in verify_arguments() argument
957 e = find_enumeration(ctx->protocol, interface, in verify_arguments()
1010 struct interface *i; in end_element()
1062 emit_opcodes(struct wl_list *message_list, struct interface *interface) in emit_opcodes() argument
1073 interface->uppercase_name, m->uppercase_name, opcode++); in emit_opcodes()
1079 emit_opcode_versions(struct wl_list *message_list, struct interface *interface) in emit_opcode_versions() argument
1084 printf("/**\n * @ingroup iface_%s\n */\n", interface->name); in emit_opcode_versions()
1086 interface->uppercase_name, m->uppercase_name, m->since); in emit_opcode_versions()
1121 emit_stubs(struct wl_list *message_list, struct interface *interface) in emit_stubs() argument
1127 printf("/** @ingroup iface_%s */\n", interface->name); in emit_stubs()
1133 interface->name, interface->name, interface->name, in emit_stubs()
1134 interface->name); in emit_stubs()
1136 printf("/** @ingroup iface_%s */\n", interface->name); in emit_stubs()
1142 interface->name, interface->name, interface->name, in emit_stubs()
1143 interface->name); in emit_stubs()
1150 interface->name, interface->name, interface->name, in emit_stubs()
1151 interface->name); in emit_stubs()
1163 fail(&interface->loc, in emit_stubs()
1166 interface->name); in emit_stubs()
1170 if (!has_destroy && strcmp(interface->name, "wl_display") != 0) { in emit_stubs()
1171 printf("/** @ingroup iface_%s */\n", interface->name); in emit_stubs()
1178 interface->name, interface->name, interface->name, in emit_stubs()
1179 interface->name); in emit_stubs()
1190 interface->name, m->name); in emit_stubs()
1201 " * @ingroup iface_%s\n", interface->name); in emit_stubs()
1214 interface->name, m->name, in emit_stubs()
1215 interface->name, interface->name); in emit_stubs()
1239 interface->name, in emit_stubs()
1240 interface->uppercase_name, in emit_stubs()
1250 interface->name, in emit_stubs()
1251 interface->uppercase_name, in emit_stubs()
1258 interface->name, in emit_stubs()
1259 interface->uppercase_name, in emit_stubs()
1277 interface->name); in emit_stubs()
1290 emit_event_wrappers(struct wl_list *message_list, struct interface *interface) in emit_event_wrappers() argument
1296 if (strcmp(interface->name, "wl_display") == 0) in emit_event_wrappers()
1303 interface->name, in emit_event_wrappers()
1313 interface->name, m->name); in emit_event_wrappers()
1331 interface->uppercase_name, m->uppercase_name); in emit_event_wrappers()
1342 emit_enumerations(struct interface *interface) in emit_enumerations() argument
1347 wl_list_for_each(e, &interface->enumeration_list, link) { in emit_enumerations()
1351 interface->uppercase_name, e->uppercase_name); in emit_enumerations()
1353 interface->uppercase_name, e->uppercase_name); in emit_enumerations()
1357 printf(" * @ingroup iface_%s\n", interface->name); in emit_enumerations()
1363 printf("enum %s_%s {\n", interface->name, e->name); in emit_enumerations()
1374 interface->uppercase_name, in emit_enumerations()
1384 printf("/**\n * @ingroup iface_%s\n */\n", interface->name); in emit_enumerations()
1386 interface->uppercase_name, in emit_enumerations()
1393 interface->uppercase_name, e->uppercase_name); in emit_enumerations()
1398 emit_structs(struct wl_list *message_list, struct interface *interface, enum side side) in emit_structs() argument
1408 printf(" * @ingroup iface_%s\n", interface->name); in emit_structs()
1409 printf(" * @struct %s_%s\n", interface->name, in emit_structs()
1412 printf("struct %s_%s {\n", interface->name, in emit_structs()
1449 indent(n), interface->name, interface->name); in emit_structs()
1478 " */\n", interface->name); in emit_structs()
1486 interface->name, interface->name, interface->name, in emit_structs()
1487 indent(14 + strlen(interface->name)), in emit_structs()
1488 interface->name, in emit_structs()
1489 interface->name, in emit_structs()
1549 struct interface *i; in emit_mainpage_blurb()
1589 struct interface *i, *i_next; in emit_header()
1737 struct interface *interface, const char *suffix) in emit_messages() argument
1747 interface->name, suffix); in emit_messages()
1800 struct interface *i, *next; in emit_code()