~diwic/ubuntu/lucid/pulseaudio/bugfixes

« back to all changes in this revision

Viewing changes to src/tests/cpulimit-test.c

  • 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
 
/* $Id: cpulimit-test.c 1418 2007-01-04 13:43:45Z ossman $ */
2
 
 
3
1
/***
4
2
  This file is part of PulseAudio.
5
3
 
30
28
#include <signal.h>
31
29
 
32
30
#include <pulse/mainloop.h>
33
 
#include <pulsecore/gccmacro.h>
 
31
#include <pulse/gccmacro.h>
34
32
 
35
33
#ifdef TEST2
36
34
#include <pulse/mainloop-signal.h>
44
42
 
45
43
#ifdef TEST2
46
44
 
47
 
static void func(pa_mainloop_api *m, PA_GCC_UNUSED pa_signal_event *e, PA_GCC_UNUSED int sig, PA_GCC_UNUSED void *userdata) {
 
45
static void func(pa_mainloop_api *m, pa_signal_event *e, int sig, void *userdata) {
48
46
    time_t now;
49
47
    time(&now);
50
48
 
57
55
 
58
56
#endif
59
57
 
60
 
int main(PA_GCC_UNUSED int argc, PA_GCC_UNUSED char *argv[]) {
 
58
int main(int argc, char *argv[]) {
61
59
    pa_mainloop *m;
62
60
 
63
61
    m = pa_mainloop_new();