~diwic/ubuntu/lucid/pulseaudio/bugfixes

« back to all changes in this revision

Viewing changes to src/pulsecore/asyncq.h

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2008-11-04 15:46:00 UTC
  • mfrom: (1.2.1 upstream) (1.1.6 lenny)
  • Revision ID: james.westby@ubuntu.com-20081104154600-hlzknpcazaam0nxm
Tags: 0.9.13-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Don't build against, and create jack package. Jack is not in main.
  - Remove --disable-per-user-esound-socket from configure flags, as we still
    want per user esound sockets.
  - Remove stop links from rc0 and rc6.
  - Change default resample algorithm and bubffer size.
  - Add alsa configuration files to route alsa applications via pulseaudio.
  - Move libasound2-plugins from Recommends to Depends.
* debian/pulseaudio.preinst: When upgrading from intrepid, remove
  /etc/X11/Xsession.d/70pulseaudio, as this was used to minimize a race
  condition when starting GNOME in intrepid. This race should not exist in
  jaunty once libcanberra is built to use pulseaudio as a backend.
* Do not spawn a pulseaudio server if clients fail to find a running server.
* Remove explicit version dependency for libspeex-dev to allow the package
  to be built for now.
* Regenerate autotools files to work with Ubuntu's newer libtool/libltdl.
* debian/control: libpulsecore5 -> libpulsecore8 to match the library
  soname.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef foopulseasyncqhfoo
2
2
#define foopulseasyncqhfoo
3
3
 
4
 
/* $Id: asyncq.h 1971 2007-10-28 19:13:50Z lennart $ */
5
 
 
6
4
/***
7
5
  This file is part of PulseAudio.
8
6
 
26
24
 
27
25
#include <sys/types.h>
28
26
#include <pulse/def.h>
 
27
#include <pulsecore/macro.h>
29
28
 
30
29
/* A simple, asynchronous, lock-free (if requested also wait-free)
31
30
 * queue. Not multiple-reader/multiple-writer safe. If that is
46
45
pa_asyncq* pa_asyncq_new(unsigned size);
47
46
void pa_asyncq_free(pa_asyncq* q, pa_free_cb_t free_cb);
48
47
 
49
 
void* pa_asyncq_pop(pa_asyncq *q, int wait);
50
 
int pa_asyncq_push(pa_asyncq *q, void *p, int wait);
51
 
 
52
 
int pa_asyncq_get_fd(pa_asyncq *q);
53
 
int pa_asyncq_before_poll(pa_asyncq *a);
54
 
void pa_asyncq_after_poll(pa_asyncq *a);
 
48
void* pa_asyncq_pop(pa_asyncq *q, pa_bool_t wait);
 
49
int pa_asyncq_push(pa_asyncq *q, void *p, pa_bool_t wait);
 
50
 
 
51
/* Similar to pa_asyncq_push(), but if the queue is full, postpone it
 
52
 * locally and delay until pa_asyncq_before_poll_post() */
 
53
void pa_asyncq_post(pa_asyncq*l, void *p);
 
54
 
 
55
/* For the reading side */
 
56
int pa_asyncq_read_fd(pa_asyncq *q);
 
57
int pa_asyncq_read_before_poll(pa_asyncq *a);
 
58
void pa_asyncq_read_after_poll(pa_asyncq *a);
 
59
 
 
60
/* For the writing side */
 
61
int pa_asyncq_write_fd(pa_asyncq *q);
 
62
void pa_asyncq_write_before_poll(pa_asyncq *a);
 
63
void pa_asyncq_write_after_poll(pa_asyncq *a);
55
64
 
56
65
#endif