Changeset 0b63dc2 in mainline for uspace/lib/ddev/src/ddev_srv.c
- Timestamp:
- 2019-12-07T20:26:28Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- df1a019
- Parents:
- 71cbe5c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ddev/src/ddev_srv.c
r71cbe5c r0b63dc2 45 45 #include <stdio.h> 46 46 47 /** Connect to a GC. 48 * 49 * XXX As a workaround here we tell the client the values of arg2 and arg3 50 * needed to connect to the GC using async_connect_me_to(), these need 51 * to be provided by the ddev_ops_t.get_gc. Different values are needed 52 * for a DDF driver or a regular server. This would not be needed if we 53 * had a proper way of creating an endpoint and passing it to our client. 54 */ 55 static void ddev_get_gc_srv(ddev_srv_t *srv, ipc_call_t *icall) 56 { 57 sysarg_t arg2; 58 sysarg_t arg3; 59 errno_t rc; 60 61 printf("ddev_get_gc_srv\n"); 62 63 if (srv->ops->get_gc == NULL) { 64 async_answer_0(icall, ENOTSUP); 65 return; 66 } 67 68 rc = srv->ops->get_gc(srv->arg, &arg2, &arg3); 69 async_answer_2(icall, rc, arg2, arg3); 70 } 71 47 72 void ddev_conn(ipc_call_t *icall, ddev_srv_t *srv) 48 73 { 49 74 /* Accept the connection */ 50 75 async_accept_0(icall); 51 printf("d isplay_conn\n");76 printf("ddev_conn\n"); 52 77 53 78 while (true) { … … 66 91 switch (method) { 67 92 case DDEV_GET_GC: 93 ddev_get_gc_srv(srv, &call); 94 break; 68 95 default: 69 96 async_answer_0(&call, ENOTSUP);
Note:
See TracChangeset
for help on using the changeset viewer.