Ignore:
Timestamp:
2018-03-22T06:49:35Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
77f0a1d
Parents:
3e242d2
git-author:
Jakub Jermar <jakub@…> (2018-03-21 23:29:06)
git-committer:
Jakub Jermar <jakub@…> (2018-03-22 06:49:35)
Message:

Prefer handle over ID in naming handle variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/audio/hound/audio_device.c

    r3e242d2 ra46e56b  
    5353static errno_t device_sink_connection_callback(audio_sink_t *sink, bool new);
    5454static errno_t device_source_connection_callback(audio_source_t *source, bool new);
    55 static void device_event_callback(cap_call_handle_t iid, ipc_call_t *icall, void *arg);
     55static void device_event_callback(cap_call_handle_t icall_handle, ipc_call_t *icall, void *arg);
    5656static errno_t device_check_format(audio_sink_t* sink);
    5757static errno_t get_buffer(audio_device_t *dev);
     
    261261 * @param arg (unused)
    262262 */
    263 static void device_event_callback(cap_call_handle_t iid, ipc_call_t *icall, void *arg)
     263static void device_event_callback(cap_call_handle_t icall_handle, ipc_call_t *icall, void *arg)
    264264{
    265265        struct timeval time1;
     
    267267
    268268        /* Answer initial request */
    269         async_answer_0(iid, EOK);
     269        async_answer_0(icall_handle, EOK);
    270270        audio_device_t *dev = arg;
    271271        assert(dev);
    272272        while (1) {
    273273                ipc_call_t call;
    274                 cap_call_handle_t callid = async_get_call(&call);
    275                 async_answer_0(callid, EOK);
     274                cap_call_handle_t chandle = async_get_call(&call);
     275                async_answer_0(chandle, EOK);
    276276                switch(IPC_GET_IMETHOD(call)) {
    277277                case PCM_EVENT_FRAMES_PLAYED:
Note: See TracChangeset for help on using the changeset viewer.