Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 472c09d in mainline for uspace/srv/devmap/devmap.c


Ignore:
Timestamp:
2010-02-03T15:18:40Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
b4cbef1
Parents:
28be7fa
Message:

more consistent naming scheme:

async_data_blob_receive → async_data_receive
async_data_string_receive → async_string_receive
CLIPBOARD_TAG_BLOB → CLIPBOARD_TAG_DATA

async_data_receive can now check the granularity of the received data
async_string_receive can now return the raw size of the received data

replace several common patterns of async_data_write_receive/_finalize
with a single async_data_receive/_string_receive (this greatly improves
code readability)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devmap/devmap.c

    r28be7fa r472c09d  
    396396         * Get driver name
    397397         */
    398         int rc = async_data_string_receive(&driver->name, DEVMAP_NAME_MAXLEN);
     398        int rc = async_string_receive(&driver->name, DEVMAP_NAME_MAXLEN, NULL);
    399399        if (rc != EOK) {
    400400                free(driver);
     
    510510        /* Get fqdn */
    511511        char *fqdn;
    512         int rc = async_data_string_receive(&fqdn, DEVMAP_NAME_MAXLEN);
     512        int rc = async_string_receive(&fqdn, DEVMAP_NAME_MAXLEN, NULL);
    513513        if (rc != EOK) {
    514514                free(device);
     
    622622       
    623623        /* Get fqdn */
    624         int rc = async_data_string_receive(&fqdn, DEVMAP_NAME_MAXLEN);
     624        int rc = async_string_receive(&fqdn, DEVMAP_NAME_MAXLEN, NULL);
    625625        if (rc != EOK) {
    626626                ipc_answer_0(iid, rc);
     
    683683       
    684684        /* Get device name */
    685         int rc = async_data_string_receive(&name, DEVMAP_NAME_MAXLEN);
     685        int rc = async_string_receive(&name, DEVMAP_NAME_MAXLEN, NULL);
    686686        if (rc != EOK) {
    687687                ipc_answer_0(iid, rc);
Note: See TracChangeset for help on using the changeset viewer.