func ProcessInterfaceInfo(ii *gi.InterfaceInfo) { name := ii.Name() cprefix := gi.DefaultRepository().CPrefix(ii.Namespace()) cgotype := CgoTypeForInterface(gi.ToBaseInfo(ii), TypePointer) printf("%s\n", ExecuteTemplate(InterfaceTemplate, map[string]string{ "name": name, "cprefix": cprefix, "cgotype": cgotype, "typeinit": ii.TypeInit(), "gobjectns": Config.Sys.GNS, })) for i, n := 0, ii.NumMethod(); i < n; i++ { meth := ii.Method(i) if IsMethodBlacklisted(name, meth.Name()) { printf("// blacklisted: %s.%s (method)\n", name, meth.Name()) continue } ProcessFunctionInfo(meth, gi.ToBaseInfo(ii)) } }
func (this *binding_generator) process_interface_info(ii *gi.InterfaceInfo) { p := printer_to(&this.go_bindings) name := ii.Name() cprefix := gi.DefaultRepository().CPrefix(ii.Namespace()) cgotype := cgo_type_for_interface(gi.ToBaseInfo(ii), type_pointer) p("%s\n", execute_template(interface_template, map[string]string{ "name": name, "cprefix": cprefix, "cgotype": cgotype, "typeinit": ii.TypeInit(), "gobjectns": config.gns, })) for i, n := 0, ii.NumMethod(); i < n; i++ { meth := ii.Method(i) if config.is_method_blacklisted(name, meth.Name()) { p("// blacklisted: %s.%s (method)\n", name, meth.Name()) continue } this.process_function_info(meth) } }