Changeset 566992e1 in mainline for uspace/srv/loader/main.c


Ignore:
Timestamp:
2015-08-22T05:01:24Z (9 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d9e68d0
Parents:
57dea62
Message:

extremely rudimentary support for interfaces and ports
(does not do much, but it is backward and forward compatible)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/loader/main.c

    r57dea62 r566992e1  
    443443int main(int argc, char *argv[])
    444444{
    445         /* Set a handler of incomming connections. */
    446445        async_set_fallback_port_handler(ldr_connection, NULL);
    447446       
     
    452451                return rc;
    453452       
    454         /* Register at naming service. */
    455         rc = service_register(SERVICE_LOAD);
     453        /* Create port */
     454        port_id_t port;
     455        rc = async_create_port(INTERFACE_LOADER, ldr_connection, NULL, &port);
    456456        if (rc != EOK)
    457457                return rc;
    458458       
     459        /* Register at naming service. */
     460        rc = service_register(SERVICE_LOADER);
     461        if (rc != EOK)
     462                return rc;
     463       
    459464        async_manager();
    460465       
Note: See TracChangeset for help on using the changeset viewer.