mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-16 08:56:42 -05:00
Support dl-object cache
Added the support of dl-object caches for PCM plugins.
This commit is contained in:
parent
08fc630594
commit
d8f7de1b16
5 changed files with 93 additions and 3 deletions
|
|
@ -232,4 +232,9 @@ static inline int snd_open_device(const char *filename, int fmode)
|
|||
#define snd_open_device(filename, fmode) open(filename, fmode);
|
||||
#endif
|
||||
|
||||
/* dlobj cache */
|
||||
void *snd_dlobj_cache_lookup(const char *name);
|
||||
int snd_dlobj_cache_add(const char *name, void *dlobj, void *open_func);
|
||||
void snd_dlobj_cache_cleanup(void);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -37,10 +37,13 @@ enum {
|
|||
typedef struct snd_pcm_ioplug snd_pcm_ioplug_t;
|
||||
typedef struct snd_pcm_ioplug_callback snd_pcm_ioplug_callback_t;
|
||||
|
||||
#define SND_PCM_IOPLUG_FLAG_LISTED (1<<0)
|
||||
|
||||
/* exported pcm data */
|
||||
struct snd_pcm_ioplug {
|
||||
/* must be filled before calling snd_pcm_ioplug_create() */
|
||||
const char *name;
|
||||
unsigned int flags; /* SND_PCM_IOPLUG_FLAG_XXX */
|
||||
int poll_fd;
|
||||
unsigned int poll_events;
|
||||
unsigned int mmap_rw; /* pseudo mmap */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue