Changeset b8341bc in mainline for uspace/srv/taskman/main.c


Ignore:
Timestamp:
2019-08-07T05:42:02Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
c675ab1
Parents:
b22b0a94
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-10-19 22:25:17)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-07 05:42:02)
Message:

taskman: IPC builerplate for task event API

  • Actual implementation tomorrow…

Conflicts:

uspace/lib/c/include/task.h

File:
1 edited

Legend:

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

    rb22b0a94 rb8341bc  
    7979        async_exchange_end(exch);
    8080
    81         /* After forward we can dispose all session-related resources */
     81        /* After forward we can dispose all session-related resources
     82         * TODO later could be recycled for notification API
     83         */
    8284        async_hangup(sess_ref->sess);
    8385        free(sess_ref);
     
    118120        int rc = task_set_retval(icall);
    119121        async_answer_0(iid, rc);
     122}
     123
     124static void taskman_ctl_ev_callback(ipc_callid_t iid, ipc_call_t *icall)
     125{
     126        printf("%s:%i from %llu\n", __func__, __LINE__, icall->in_task_id);
     127        async_answer_0(iid, ENOTSUP); // TODO interrupt here
    120128}
    121129
     
    152160                case TASKMAN_RETVAL:
    153161                        taskman_ctl_retval(callid, &call);
     162                        break;
     163                case TASKMAN_EVENT_CALLBACK:
     164                        taskman_ctl_ev_callback(callid, &call);
    154165                        break;
    155166                default:
     
    223234        case TASKMAN_CONTROL:
    224235                control_connection(iid, icall);
    225                 // ---- interrupt here ----
    226                 //   implement control connection body (setup wait)
    227                 // ------------------------
    228236                break;
    229237        default:
Note: See TracChangeset for help on using the changeset viewer.