Blame pulse/pulse.h

Packit Service cd2a00
/*-*- linux-c -*-*/
Packit Service cd2a00
Packit Service cd2a00
/*
Packit Service cd2a00
 * ALSA <-> PulseAudio plugins
Packit Service cd2a00
 *
Packit Service cd2a00
 * Copyright (c) 2006 by Pierre Ossman <ossman@cendio.se>
Packit Service cd2a00
 *
Packit Service cd2a00
 * This library is free software; you can redistribute it and/or modify
Packit Service cd2a00
 * it under the terms of the GNU Lesser General Public License as
Packit Service cd2a00
 * published by the Free Software Foundation; either version 2.1 of
Packit Service cd2a00
 * the License, or (at your option) any later version.
Packit Service cd2a00
 *
Packit Service cd2a00
 * This program is distributed in the hope that it will be useful,
Packit Service cd2a00
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service cd2a00
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service cd2a00
 * GNU Lesser General Public License for more details.
Packit Service cd2a00
 *
Packit Service cd2a00
 * You should have received a copy of the GNU Lesser General Public
Packit Service cd2a00
 * License along with this library; if not, write to the Free Software
Packit Service cd2a00
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
Packit Service cd2a00
 */
Packit Service cd2a00
Packit Service cd2a00
#include <alsa/asoundlib.h>
Packit Service cd2a00
Packit Service cd2a00
#include <pulse/pulseaudio.h>
Packit Service cd2a00
Packit Service cd2a00
#define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0]))
Packit Service cd2a00
Packit Service cd2a00
typedef struct snd_pulse {
Packit Service cd2a00
	pa_threaded_mainloop *mainloop;
Packit Service cd2a00
	pa_context *context;
Packit Service cd2a00
Packit Service cd2a00
	int thread_fd, main_fd;
Packit Service cd2a00
} snd_pulse_t;
Packit Service cd2a00
Packit Service cd2a00
int pulse_check_connection(snd_pulse_t * p);
Packit Service cd2a00
Packit Service cd2a00
void pulse_context_success_cb(pa_context * c, int success, void *userdata);
Packit Service cd2a00
Packit Service cd2a00
int pulse_wait_operation(snd_pulse_t * p, pa_operation * o);
Packit Service cd2a00
Packit Service cd2a00
snd_pulse_t *pulse_new(void);
Packit Service cd2a00
void pulse_free(snd_pulse_t * p);
Packit Service cd2a00
Packit Service cd2a00
int pulse_connect(snd_pulse_t * p, const char *server, int can_fallback);
Packit Service cd2a00
Packit Service cd2a00
void pulse_poll_activate(snd_pulse_t * p);
Packit Service cd2a00
void pulse_poll_deactivate(snd_pulse_t * p);