Changeset aab8e3d3 in mainline for uspace/srv/audio/hound/hound_ctx.h


Ignore:
Timestamp:
2013-04-03T19:02:48Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8f8ec69
Parents:
b893cd6
Message:

hound: initialize ctx source/sink

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/audio/hound/hound_ctx.h

    rb893cd6 raab8e3d3  
    3939#include <adt/list.h>
    4040#include <hound/protocol.h>
     41#include "audio_source.h"
     42#include "audio_sink.h"
    4143
    4244typedef struct {
    4345        link_t link;
     46        list_t streams;
     47        audio_source_t *source;
     48        audio_sink_t *sink;
    4449} hound_ctx_t;
    4550
    4651static inline hound_ctx_t *hound_ctx_from_link(link_t *l)
    4752{
    48         return list_get_instance(l, hound_ctx_t, link);
     53        return l ? list_get_instance(l, hound_ctx_t, link) : NULL;
    4954}
    5055
Note: See TracChangeset for help on using the changeset viewer.