summaryrefslogtreecommitdiffstats
path: root/pcilib/plugin.h
blob: f9ff7cf38defa501232ac18123a7340677f4c080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _PCILIB_PLUGIN_H
#define _PCILIB_PLUGIN_H

#ifdef __cplusplus
extern "C" {
#endif

void *pcilib_plugin_load(const char *name);
void pcilib_plugin_close(void *plug);
void *pcilib_plugin_get_symbol(void *plug, const char *symbol);
const pcilib_model_description_t *pcilib_get_plugin_model(pcilib_t *pcilib, void *plug, unsigned short vendor_id, unsigned short device_id, const char *model);
const pcilib_model_description_t *pcilib_find_plugin_model(pcilib_t *pcilib, unsigned short vendor_id, unsigned short device_id, const char *model);

#ifdef __cplusplus
}
#endif

#endif /* _PCILIB_PLUGIN_H */