Changeset 87a31ef2 in mainline for uspace/srv/ns/ns.c


Ignore:
Timestamp:
2019-08-07T11:47:00Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
d5cca04
Parents:
4ff66ae
git-author:
Michal Koutny <xm.koutny+hos@…> (2015-11-15 11:47:07)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-07 11:47:00)
Message:

ns: Created simplified taskman API using low-level IPC API only

Conflicts:

uspace/lib/c/generic/async.c
uspace/lib/c/generic/private/async.h
uspace/lib/c/include/task.h
uspace/srv/ns/ns.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/ns/ns.c

    r4ff66ae r87a31ef2  
    4444#include <stdio.h>
    4545#include <errno.h>
    46 #define TASKMAN_DISABLE_ASYNC
    47 #include <taskman.h>
    48 #undef TASKMAN_DISABLE_ASYNC
     46#include <ipc/taskman.h>
     47#include <taskman_noasync.h>
    4948
    5049#include "ns.h"
     
    121120                return rc;
    122121       
    123         rc = taskman_intro_ns();
     122        rc = taskman_intro_ns_noasync();
    124123        if (rc != EOK) {
    125124                printf("%s: not accepted by taskman (%i)\n", NAME, rc);
    126125                return rc;
    127126        }
    128 
     127        task_retval_noasync(0);
     128       
    129129        async_set_fallback_port_handler(ns_connection, NULL);
    130130
    131131        printf("%s: Accepting connections\n", NAME);
    132         // TODO enable NS to use task_retval(0)
     132       
    133133        async_manager();
    134134
Note: See TracChangeset for help on using the changeset viewer.