Changeset 566992e1 in mainline for uspace/srv


Ignore:
Timestamp:
2015-08-22T05:01:24Z (10 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)

Location:
uspace/srv
Files:
2 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       
  • uspace/srv/ns/clonable.c

    r57dea62 r566992e1  
    6464bool service_clonable(service_t service)
    6565{
    66         return (service == SERVICE_LOAD);
     66        return (service == SERVICE_LOADER);
    6767}
    6868
     
    8989       
    9090        /* Currently we can only handle a single type of clonable service. */
    91         assert(csr->service == SERVICE_LOAD);
     91        assert(csr->service == SERVICE_LOADER);
    9292       
    9393        ipc_answer_0(callid, EOK);
     
    113113    ipc_callid_t callid)
    114114{
    115         assert(service == SERVICE_LOAD);
     115        assert(service == SERVICE_LOADER);
    116116       
    117117        cs_req_t *csr = malloc(sizeof(cs_req_t));
Note: See TracChangeset for help on using the changeset viewer.