~diwic/ubuntu/lucid/pulseaudio/bugfixes

« back to all changes in this revision

Viewing changes to src/pulse/mainloop-signal.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 foomainloopsignalhfoo
2
2
#define foomainloopsignalhfoo
3
3
 
4
 
/* $Id: mainloop-signal.h 1426 2007-02-13 15:35:19Z ossman $ */
5
 
 
6
4
/***
7
5
  This file is part of PulseAudio.
8
6
 
9
 
  Copyright 2004-2006 Lennart Poettering
 
7
  Copyright 2004-2008 Lennart Poettering
10
8
  Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB
11
9
 
12
10
  PulseAudio is free software; you can redistribute it and/or modify
39
37
 * signals. However, you may hook signal support into an abstract main loop via the routines defined herein.
40
38
 */
41
39
 
 
40
/** An opaque UNIX signal event source object */
 
41
typedef struct pa_signal_event pa_signal_event;
 
42
 
 
43
typedef void (*pa_signal_cb_t) (pa_mainloop_api *api, pa_signal_event*e, int sig, void *userdata);
 
44
 
 
45
typedef void (*pa_signal_destroy_cb_t) (pa_mainloop_api *api, pa_signal_event*e, void *userdata);
 
46
 
42
47
/** Initialize the UNIX signal subsystem and bind it to the specified main loop */
43
48
int pa_signal_init(pa_mainloop_api *api);
44
49
 
45
50
/** Cleanup the signal subsystem */
46
51
void pa_signal_done(void);
47
52
 
48
 
/** An opaque UNIX signal event source object */
49
 
typedef struct pa_signal_event pa_signal_event;
50
 
 
51
53
/** Create a new UNIX signal event source object */
52
 
pa_signal_event* pa_signal_new(int sig, void (*callback) (pa_mainloop_api *api, pa_signal_event*e, int sig, void *userdata), void *userdata);
 
54
pa_signal_event* pa_signal_new(int sig, pa_signal_cb_t callback, void *userdata);
53
55
 
54
56
/** Free a UNIX signal event source object */
55
57
void pa_signal_free(pa_signal_event *e);
56
58
 
57
59
/** Set a function that is called when the signal event source is destroyed. Use this to free the userdata argument if required */
58
 
void pa_signal_set_destroy(pa_signal_event *e, void (*callback) (pa_mainloop_api *api, pa_signal_event*e, void *userdata));
 
60
void pa_signal_set_destroy(pa_signal_event *e, pa_signal_destroy_cb_t callback);
59
61
 
60
62
PA_C_DECL_END
61
63