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/lib/drv/generic/remote_audio_pcm.c

    r0dd16778 rf9b2cb4c  
    146146        if (ret != EOK)
    147147                return NULL;
    148         return devman_device_connect(EXCHANGE_SERIALIZE, device_handle,
    149             IPC_FLAG_BLOCKING);
     148        return devman_device_connect(device_handle, IPC_FLAG_BLOCKING);
    150149}
    151150
     
    158157audio_pcm_sess_t *audio_pcm_open_service(service_id_t id)
    159158{
    160         return loc_service_connect(EXCHANGE_SERIALIZE, id, IPC_FLAG_BLOCKING);
     159        return loc_service_connect(id, INTERFACE_DDF, IPC_FLAG_BLOCKING);
    161160}
    162161
     
    322321
    323322        async_exch_t *exch = async_exchange_begin(sess);
     323       
    324324        int ret = async_req_1_0(exch, DEV_IFACE_ID(AUDIO_PCM_BUFFER_IFACE),
    325325            IPC_M_AUDIO_PCM_REGISTER_EVENTS);
    326326        if (ret == EOK) {
    327                 ret = async_connect_to_me(exch, 0, 0, 0, event_callback, arg);
    328         }
     327                port_id_t port;
     328                ret = async_create_callback_port(exch, INTERFACE_AUDIO_PCM_CB, 0, 0,
     329                    event_callback, arg, &port);
     330        }
     331       
    329332        async_exchange_end(exch);
    330333        return ret;
Note: See TracChangeset for help on using the changeset viewer.