Changeset f9b2cb4c in mainline for uspace/srv/hid
- Timestamp:
- 2015-08-23T12:50:23Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9ef495f
- Parents:
- 0dd16778
- Location:
- uspace/srv/hid
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/compositor/compositor.c
r0dd16778 rf9b2cb4c 896 896 ipc_call_t call; 897 897 ipc_callid_t callid; 898 service_id_t service_id = (service_id_t) IPC_GET_ARG 1(*icall);898 service_id_t service_id = (service_id_t) IPC_GET_ARG2(*icall); 899 899 900 900 /* Allocate resources for new window and register it to the location service. */ … … 1175 1175 async_sess_t *sess; 1176 1176 1177 sess = loc_service_connect( EXCHANGE_SERIALIZE, sid, 0);1177 sess = loc_service_connect(sid, INTERFACE_DDF, 0); 1178 1178 if (sess == NULL) { 1179 1179 printf("%s: Unable to connect to visualizer %s\n", NAME, svc); … … 1182 1182 1183 1183 async_exch_t *exch = async_exchange_begin(sess); 1184 rc = async_connect_to_me(exch, sid, 0, 0, vsl_notifications, NULL); 1184 1185 port_id_t port; 1186 rc = async_create_callback_port(exch, INTERFACE_VISUALIZER_CB, 0, 0, 1187 vsl_notifications, NULL, &port); 1188 1185 1189 async_exchange_end(exch); 1186 1190 … … 2145 2149 } 2146 2150 2147 sess = loc_service_connect( EXCHANGE_ATOMIC, dsid, 0);2151 sess = loc_service_connect(dsid, INTERFACE_INPUT, 0); 2148 2152 if (sess == NULL) { 2149 2153 printf("%s: Unable to connect to input service %s\n", NAME, -
uspace/srv/hid/console/console.c
r0dd16778 rf9b2cb4c 508 508 509 509 for (size_t i = 0; i < CONSOLE_COUNT; i++) { 510 if (consoles[i].dsid == (service_id_t) IPC_GET_ARG 1(*icall)) {510 if (consoles[i].dsid == (service_id_t) IPC_GET_ARG2(*icall)) { 511 511 cons = &consoles[i]; 512 512 break; … … 536 536 } 537 537 538 sess = loc_service_connect( EXCHANGE_ATOMIC, dsid, 0);538 sess = loc_service_connect(dsid, INTERFACE_INPUT, 0); 539 539 if (sess == NULL) { 540 540 printf("%s: Unable to connect to input service %s\n", NAME, … … 561 561 int rc = loc_service_get_id(svc, &dsid, 0); 562 562 if (rc == EOK) { 563 sess = loc_service_connect( EXCHANGE_SERIALIZE, dsid, 0);563 sess = loc_service_connect(dsid, INTERFACE_OUTPUT, 0); 564 564 if (sess == NULL) { 565 565 printf("%s: Unable to connect to output service %s\n", -
uspace/srv/hid/input/ctl/kbdev.c
r0dd16778 rf9b2cb4c 94 94 static int kbdev_ctl_init(kbd_dev_t *kdev) 95 95 { 96 async_sess_t *sess = loc_service_connect( EXCHANGE_SERIALIZE,97 kdev->svc_id, 0);96 async_sess_t *sess = loc_service_connect(kdev->svc_id, 97 INTERFACE_DDF, 0); 98 98 if (sess == NULL) { 99 99 printf("%s: Failed starting session with '%s.'\n", NAME, … … 120 120 } 121 121 122 int rc = async_connect_to_me(exch, 0, 0, 0, kbdev_callback_conn, kbdev); 122 port_id_t port; 123 int rc = async_create_callback_port(exch, INTERFACE_KBD_CB, 0, 0, 124 kbdev_callback_conn, kbdev, &port); 125 123 126 if (rc != EOK) { 124 127 printf("%s: Failed creating callback connection from '%s'.\n", -
uspace/srv/hid/input/input.c
r0dd16778 rf9b2cb4c 745 745 if (irc_service) { 746 746 while (irc_sess == NULL) 747 irc_sess = service_connect_blocking( EXCHANGE_SERIALIZE,748 SERVICE_IRC, 0);747 irc_sess = service_connect_blocking(SERVICE_IRC, 748 INTERFACE_IRC, 0); 749 749 } 750 750 -
uspace/srv/hid/input/port/adb.c
r0dd16778 rf9b2cb4c 69 69 return rc; 70 70 71 dev_sess = loc_service_connect( EXCHANGE_ATOMIC, service_id, 0);71 dev_sess = loc_service_connect(service_id, INTERFACE_DDF, 0); 72 72 if (dev_sess == NULL) { 73 73 printf("%s: Failed to connect to device\n", NAME); … … 82 82 } 83 83 84 rc = async_connect_to_me(exch, 0, 0, 0, kbd_port_events, NULL); 84 port_id_t port; 85 rc = async_create_callback_port(exch, INTERFACE_ADB_CB, 0, 0, 86 kbd_port_events, NULL, &port); 87 85 88 async_exchange_end(exch); 86 89 if (rc != EOK) { -
uspace/srv/hid/input/port/adb_mouse.c
r0dd16778 rf9b2cb4c 84 84 return rc; 85 85 86 dev_sess = loc_service_connect( EXCHANGE_ATOMIC, service_id, 0);86 dev_sess = loc_service_connect(service_id, INTERFACE_DDF, 0); 87 87 if (dev_sess == NULL) { 88 88 printf("%s: Failed to connect to device\n", NAME); … … 98 98 99 99 /* NB: The callback connection is slotted for removal */ 100 rc = async_connect_to_me(exch, 0, 0, 0, mouse_port_events, NULL); 100 port_id_t port; 101 rc = async_create_callback_port(exch, INTERFACE_ADB_CB, 0, 0, 102 mouse_port_events, NULL, &port); 103 101 104 async_exchange_end(exch); 102 105 if (rc != EOK) { -
uspace/srv/hid/input/port/chardev.c
r0dd16778 rf9b2cb4c 84 84 } 85 85 86 dev_sess = loc_service_connect( EXCHANGE_ATOMIC, service_id,86 dev_sess = loc_service_connect(service_id, INTERFACE_DDF, 87 87 IPC_FLAG_BLOCKING); 88 88 if (dev_sess == NULL) { … … 98 98 } 99 99 100 /* NB: The callback connection is slotted for removal */ 101 rc = async_connect_to_me(exch, 0, 0, 0, kbd_port_events, NULL); 100 port_id_t port; 101 rc = async_create_callback_port(exch, INTERFACE_CHAR_CB, 0, 0, 102 kbd_port_events, NULL, &port); 103 102 104 async_exchange_end(exch); 103 105 -
uspace/srv/hid/input/proto/mousedev.c
r0dd16778 rf9b2cb4c 118 118 static int mousedev_proto_init(mouse_dev_t *mdev) 119 119 { 120 async_sess_t *sess = loc_service_connect(EXCHANGE_SERIALIZE, 121 mdev->svc_id, 0); 120 async_sess_t *sess = loc_service_connect(mdev->svc_id, INTERFACE_DDF, 0); 122 121 if (sess == NULL) { 123 122 printf("%s: Failed starting session with '%s'\n", NAME, … … 143 142 } 144 143 145 int rc = async_connect_to_me(exch, 0, 0, 0, mousedev_callback_conn, mousedev); 144 port_id_t port; 145 int rc = async_create_callback_port(exch, INTERFACE_MOUSE_CB, 0, 0, 146 mousedev_callback_conn, mousedev, &port); 147 146 148 async_exchange_end(exch); 147 149 async_hangup(sess); -
uspace/srv/hid/isdv4_tablet/main.c
r0dd16778 rf9b2cb4c 69 69 async_sess_t *sess = 70 70 async_callback_receive(EXCHANGE_SERIALIZE); 71 71 72 fibril_mutex_lock(&client_mutex); 72 if (client_sess == NULL) { 73 client_sess = sess; 74 } 73 74 if (client_sess == NULL) 75 client_sess = sess; 76 75 77 fibril_mutex_unlock(&client_mutex); 76 78 … … 262 264 printf(NAME ": Using serial port %s\n", serial_port_name); 263 265 264 async_sess_t *sess = loc_service_connect( EXCHANGE_SERIALIZE, svc_id,266 async_sess_t *sess = loc_service_connect(svc_id, INTERFACE_DDF, 265 267 IPC_FLAG_BLOCKING); 266 268 if (!sess) { -
uspace/srv/hid/remcons/remcons.c
r0dd16778 rf9b2cb4c 217 217 { 218 218 /* Find the user. */ 219 telnet_user_t *user = telnet_user_get_for_client_connection(IPC_GET_ARG 1(*icall));219 telnet_user_t *user = telnet_user_get_for_client_connection(IPC_GET_ARG2(*icall)); 220 220 if (user == NULL) { 221 221 async_answer_0(iid, ENOENT);
Note:
See TracChangeset
for help on using the changeset viewer.