Changeset cf2af94 in mainline for uspace/lib/c/generic/clipboard.c


Ignore:
Timestamp:
2011-02-09T11:46:47Z (14 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cb15135a
Parents:
a49c4002 (diff), 0b37882 (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.
Message:

Merge mainline changes

Local modifications:

  • change pipefs and ext2 to build again (use async_* calls instead of ipc_*)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/clipboard.c

    ra49c4002 rcf2af94  
    3939
    4040#include <clipboard.h>
     41#include <ipc/ns.h>
    4142#include <ipc/services.h>
    4243#include <ipc/clipboard.h>
     
    5455{
    5556        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);
    5758}
    5859
     
    7576                clip_connect();
    7677               
    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);
    7879               
    7980                async_serialize_end();
     
    8586               
    8687                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);
    8889                if (rc != EOK) {
    89                         ipcarg_t rc_orig;
     90                        sysarg_t rc_orig;
    9091                        async_wait_for(req, &rc_orig);
    9192                        async_serialize_end();
     
    119120                clip_connect();
    120121               
    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);
    124125               
    125126                async_serialize_end();
     
    158159                       
    159160                        if (rc != EOK) {
    160                                 ipcarg_t rc_orig;
     161                                sysarg_t rc_orig;
    161162                                async_wait_for(req, &rc_orig);
    162163                                async_serialize_end();
Note: See TracChangeset for help on using the changeset viewer.