]> code.delx.au - pulseaudio/blobdiff - polyp/autoload.h
make module-combine autoloadable
[pulseaudio] / polyp / autoload.h
index 004dae266590c507cdb07a3941dd821e0bed0335..3d3101b93caee3cafe85d27e2b1ff15d88ae8839 100644 (file)
 struct pa_autoload_entry {
     char *name;
     enum pa_namereg_type type;
-    char *module, *argument;
+    int in_action;
+    char *module, *argument;   /* for module autoloading */
+    char *filename;            /* for sample autoloading */
 };
 
-void pa_autoload_add(struct pa_core *c, const char*name, enum pa_namereg_type type, const char*module, const char *argument);
+int pa_autoload_add_module(struct pa_core *c, const char*name, enum pa_namereg_type type, const char*module, const char *argument);
+int pa_autoload_add_sample(struct pa_core *c, const char*name, enum pa_namereg_type type, const char*filename);
 void pa_autoload_free(struct pa_core *c);
 int pa_autoload_remove(struct pa_core *c, const char*name, enum pa_namereg_type type);
 void pa_autoload_request(struct pa_core *c, const char *name, enum pa_namereg_type type);