static HRESULT WINAPI Registrar_ResourceUnregisterSz(IRegistrar* iface, LPCOLESTR resFileName, LPCOLESTR szID, LPCOLESTR szType) { Registrar *This = (Registrar*)iface; TRACE("(%p)->(%s %s %s)\n", This, debugstr_w(resFileName), debugstr_w(szID), debugstr_w(szType)); return resource_register(This, resFileName, szID, szType, FALSE); }
static HRESULT WINAPI Registrar_ResourceUnregister(IRegistrar* iface, LPCOLESTR resFileName, UINT nID, LPCOLESTR szType) { Registrar *This = (Registrar*)iface; TRACE("(%p)->(%s %d %s)\n", This, debugstr_w(resFileName), nID, debugstr_w(szType)); return resource_register(This, resFileName, MAKEINTRESOURCEW(nID), szType, FALSE); }
void system_initprotocol(void) { service_initprotocol(&protocol, 2000, protocol_match, protocol_root, protocol_parent, protocol_child, protocol_create, protocol_destroy, protocol_step, protocol_open, protocol_close, protocol_read, protocol_write, protocol_seek, protocol_map); resource_register(&protocol.resource); }
static HRESULT WINAPI Registrar_ResourceRegister(IRegistrar* iface, LPCOLESTR resFileName, UINT nID, LPCOLESTR szType) { Registrar *This = impl_from_IRegistrar(iface); TRACE("(%p)->(%s %d %s)\n", iface, debugstr_w(resFileName), nID, debugstr_w(szType)); return resource_register(This, resFileName, MAKEINTRESOURCEW(nID), szType, TRUE); }
static HRESULT WINAPI Registrar_ResourceRegisterSz(IRegistrar* iface, LPCOLESTR resFileName, LPCOLESTR szID, LPCOLESTR szType) { Registrar *This = impl_from_IRegistrar(iface); TRACE("(%p)->(%s %s %s)\n", This, debugstr_w(resFileName), debugstr_w(szID), debugstr_w(szType)); return resource_register(This, resFileName, szID, szType, TRUE); }
void ethernet_registerprotocol(struct ethernet_protocol *protocol) { resource_register(&protocol->resource); system_addchild(&protocol->root, &protocol->data); system_addchild(&root, &protocol->root); }
void ethernet_registerinterface(struct ethernet_interface *interface) { resource_register(&interface->resource); system_addchild(&interface->root, &interface->ctrl); system_addchild(&interface->root, &interface->data); system_addchild(&interface->root, &interface->addr); system_addchild(&root, &interface->root); }
void module_register(void) { resource_register(&interface.resource); system_registernode(&root); system_addchild(&root, &critical); system_addchild(&root, &error); system_addchild(&root, &warning); system_addchild(&root, &info); }
void arch_setup(struct service_backend *backend) { core_init(&core0, 0, ARCH_KERNELSTACKADDRESS + ARCH_KERNELSTACKSIZE, 0); arch_configuregdt(); arch_configureidt(); arch_configuretss(&tss0, core0.id, core0.sp); mapkernel(0, 0x00000000, 0x00000000, 0x00400000); mapkernel(1, 0x00400000, 0x00400000, 0x00400000); mapkernel(2, 0x00800000, 0x00800000, 0x00400000); mapkernel(3, 0x00C00000, 0x00C00000, 0x00400000); mmu_setdirectory(getkerneldirectory()); mmu_enable(); kernel_setup((char *)ARCH_MAILBOXADDRESS); kernel_setcallback(coreget, coreassign); abi_setup(spawn, despawn); binary_setupelf(); service_setupcpio(); resource_register(&backend->resource); setuptask(); arch_leave(&core0); }