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


Ignore:
Timestamp:
2013-04-06T13:11:44Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eca79ff
Parents:
5c98bb28
Message:

hound: user mutex to protect stream list

File:
1 edited

Legend:

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

    r5c98bb28 r599034e  
    3939#include <adt/list.h>
    4040#include <hound/protocol.h>
     41#include <fibril_synch.h>
     42
    4143#include "audio_source.h"
    4244#include "audio_sink.h"
     
    4749        audio_source_t *source;
    4850        audio_sink_t *sink;
     51        fibril_mutex_t guard;
    4952} hound_ctx_t;
    5053
     
    7174    size_t size);
    7275int hound_ctx_stream_read(hound_ctx_stream_t *stream, void *buffer, size_t size);
    73 int hound_ctx_stream_add_self(hound_ctx_stream_t *stream, void *data,
     76ssize_t hound_ctx_stream_add_self(hound_ctx_stream_t *stream, void *data,
    7477    size_t size, const pcm_format_t *f);
    7578void hound_ctx_stream_drain(hound_ctx_stream_t *stream);
    76 int hound_ctx_stream_add(hound_ctx_stream_t *stream, void *buffer, size_t size,
    77     pcm_format_t format);
    7879
    7980#endif
Note: See TracChangeset for help on using the changeset viewer.