summaryrefslogtreecommitdiffstats
path: root/src/namereg.h
blob: b53a8566ed1e10632a1ba7d88929704dd502eda7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef foonamereghfoo
#define foonamereghfoo

#include "core.h"

enum pa_namereg_type {
    PA_NAMEREG_SINK,
    PA_NAMEREG_SOURCE
};

void pa_namereg_free(struct pa_core *c);

const char *pa_namereg_register(struct pa_core *c, const char *name, enum pa_namereg_type type, void *data, int fail);
void pa_namereg_unregister(struct pa_core *c, const char *name);
void* pa_namereg_get(struct pa_core *c, const char *name, enum pa_namereg_type type);

#endif