Blame pulse/pulse.h

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