Changeset f9b2cb4c in mainline for uspace/app/nic/nic.c


Ignore:
Timestamp:
2015-08-23T12:50:23Z (9 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9ef495f
Parents:
0dd16778
Message:

unify interface API

  • introduce new interfaces
  • unify location service clients to always expect service ID as the second argument
  • remove obsolete methods that take explicit exchange management arguments (first phase)
  • use interfaces in device drivers, devman, location service, logger, inet
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/nic/nic.c

    r0dd16778 rf9b2cb4c  
    9999        printf("Using device: %s\n", svc_name);
    100100
    101         sess = loc_service_connect(EXCHANGE_SERIALIZE, nics[i], 0);
     101        sess = loc_service_connect(nics[i], INTERFACE_DDF, 0);
    102102        if (sess == NULL) {
    103103                printf("Error connecting to service.\n");
     
    117117        int rc;
    118118
    119         sess = loc_service_connect(EXCHANGE_SERIALIZE, svc_id, 0);
     119        sess = loc_service_connect(svc_id, INTERFACE_DDF, 0);
    120120        if (sess == NULL) {
    121121                printf("Error connecting to service.\n");
    122122                goto error;
    123123        }
    124 
     124       
    125125        rc = nic_get_address(sess, &info->address);
    126126        if (rc != EOK) {
Note: See TracChangeset for help on using the changeset viewer.