2004-06-27 22:42:17 +00:00
|
|
|
#ifndef foonamereghfoo
|
|
|
|
|
#define foonamereghfoo
|
|
|
|
|
|
2004-07-16 19:56:36 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
|
|
/***
|
2006-06-19 21:53:48 +00:00
|
|
|
This file is part of PulseAudio.
|
2004-07-16 19:56:36 +00:00
|
|
|
|
2006-06-19 21:53:48 +00:00
|
|
|
PulseAudio is free software; you can redistribute it and/or modify
|
2004-11-14 14:58:54 +00:00
|
|
|
it under the terms of the GNU Lesser General Public License as published
|
2004-07-16 19:56:36 +00:00
|
|
|
by the Free Software Foundation; either version 2 of the License,
|
|
|
|
|
or (at your option) any later version.
|
|
|
|
|
|
2006-06-19 21:53:48 +00:00
|
|
|
PulseAudio is distributed in the hope that it will be useful, but
|
2004-07-16 19:56:36 +00:00
|
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
General Public License for more details.
|
|
|
|
|
|
2004-11-14 14:58:54 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
2006-06-19 21:53:48 +00:00
|
|
|
along with PulseAudio; if not, write to the Free Software
|
2004-07-16 19:56:36 +00:00
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
|
|
USA.
|
|
|
|
|
***/
|
|
|
|
|
|
2006-06-19 21:53:48 +00:00
|
|
|
#include <pulsecore/core.h>
|
2004-06-27 22:42:17 +00:00
|
|
|
|
2006-08-12 17:59:10 +00:00
|
|
|
#define PA_NAME_MAX 128
|
2006-08-11 16:38:51 +00:00
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
typedef enum pa_namereg_type {
|
2004-07-03 23:35:12 +00:00
|
|
|
PA_NAMEREG_SINK,
|
2004-08-19 23:14:59 +00:00
|
|
|
PA_NAMEREG_SOURCE,
|
|
|
|
|
PA_NAMEREG_SAMPLE
|
2006-01-27 16:25:31 +00:00
|
|
|
} pa_namereg_type_t;
|
2004-06-27 22:42:17 +00:00
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
void pa_namereg_free(pa_core *c);
|
2004-06-27 22:42:17 +00:00
|
|
|
|
2006-01-27 16:25:31 +00:00
|
|
|
const char *pa_namereg_register(pa_core *c, const char *name, pa_namereg_type_t type, void *data, int fail);
|
2006-01-11 01:17:39 +00:00
|
|
|
void pa_namereg_unregister(pa_core *c, const char *name);
|
2006-01-27 16:25:31 +00:00
|
|
|
void* pa_namereg_get(pa_core *c, const char *name, pa_namereg_type_t type, int autoload);
|
2006-08-11 16:38:51 +00:00
|
|
|
int pa_namereg_set_default(pa_core*c, const char *name, pa_namereg_type_t type);
|
2004-06-27 22:42:17 +00:00
|
|
|
|
2006-01-11 01:17:39 +00:00
|
|
|
const char *pa_namereg_get_default_sink_name(pa_core *c);
|
|
|
|
|
const char *pa_namereg_get_default_source_name(pa_core *c);
|
2004-09-07 14:58:42 +00:00
|
|
|
|
2004-06-27 22:42:17 +00:00
|
|
|
#endif
|