Debian Codegraph @

common/plugin.h

raw
1 /*
2 * Cisco router simulation platform.
3 * Copyright (c) 2007 Christophe Fillot ([email protected])
4 *
5 * Plugins.
6 */
7
8 #ifndef __PLUGIN_H__
9 #define __PLUGIN_H__
10
11 struct plugin {
12 char *filename;
13 void *dl_handle;
14 struct plugin *next;
15 };
16
17 typedef int (*plugin_init_t)(void);
18
19 /* Find a symbol address */
20 void *plugin_find_symbol(struct plugin *plugin,char *symbol);
21
22 /* Load a plugin */
23 struct plugin *plugin_load(char *filename);
24
25 #endif