initial commit

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@3 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2004-06-08 23:54:24 +00:00
parent b1c00dcd0a
commit 9cb0b933e2
47 changed files with 3425 additions and 0 deletions

27
src/module.h Normal file
View file

@ -0,0 +1,27 @@
#ifndef foomodulehfoo
#define foomodulehfoo
#include <inttypes.h>
#include <ltdl.h>
#include "core.h"
struct module {
char *name, *argument;
uint32_t index;
lt_dlhandle *dl;
int (*init)(struct core *c, struct module*m);
void (*done)(struct core *c, struct module*m);
void *userdata;
};
struct module* module_load(struct core *c, const char *name, const char*argument);
void module_unload(struct core *c, struct module *m);
void module_unload_by_index(struct core *c, uint32_t index);
void module_unload_all(struct core *c);
#endif