Changeset eb522e8 in mainline for uspace/lib/c/generic/clipboard.c
- Timestamp:
- 2011-06-01T08:43:42Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8d6c1f1
- Parents:
- 9e2e715 (diff), e51a514 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/clipboard.c
r9e2e715 reb522e8 39 39 40 40 #include <clipboard.h> 41 #include <ipc/ns.h> 41 42 #include <ipc/services.h> 42 43 #include <ipc/clipboard.h> … … 54 55 { 55 56 while (clip_phone < 0) 56 clip_phone = ipc_connect_me_to_blocking(PHONE_NS,SERVICE_CLIPBOARD, 0, 0);57 clip_phone = service_connect_blocking(SERVICE_CLIPBOARD, 0, 0); 57 58 } 58 59 … … 75 76 clip_connect(); 76 77 77 ipcarg_t rc = async_req_1_0(clip_phone, CLIPBOARD_PUT_DATA, CLIPBOARD_TAG_NONE);78 sysarg_t rc = async_req_1_0(clip_phone, CLIPBOARD_PUT_DATA, CLIPBOARD_TAG_NONE); 78 79 79 80 async_serialize_end(); … … 85 86 86 87 aid_t req = async_send_1(clip_phone, CLIPBOARD_PUT_DATA, CLIPBOARD_TAG_DATA, NULL); 87 ipcarg_t rc = async_data_write_start(clip_phone, (void *) str, size);88 sysarg_t rc = async_data_write_start(clip_phone, (void *) str, size); 88 89 if (rc != EOK) { 89 ipcarg_t rc_orig;90 sysarg_t rc_orig; 90 91 async_wait_for(req, &rc_orig); 91 92 async_serialize_end(); … … 119 120 clip_connect(); 120 121 121 ipcarg_t size;122 ipcarg_t tag;123 ipcarg_t rc = async_req_0_2(clip_phone, CLIPBOARD_CONTENT, &size, &tag);122 sysarg_t size; 123 sysarg_t tag; 124 sysarg_t rc = async_req_0_2(clip_phone, CLIPBOARD_CONTENT, &size, &tag); 124 125 125 126 async_serialize_end(); … … 158 159 159 160 if (rc != EOK) { 160 ipcarg_t rc_orig;161 sysarg_t rc_orig; 161 162 async_wait_for(req, &rc_orig); 162 163 async_serialize_end();
Note:
See TracChangeset
for help on using the changeset viewer.