blob: 72ec01b0b655383a7e642a0c36fd7c1b3dc4e7de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#include <tfe_plugin.h>
#ifndef TFE_PLUGIN_MAX
#define TFE_PLUGIN_MAX 128
#endif
static struct tfe_plugin * __g_tfe_plugin_info[TFE_PLUGIN_MAX];
static unsigned int __g_nr_plugin_info = 0;
void tfe_plugin_register(struct tfe_plugin * plugin)
{
__g_tfe_plugin_info[__g_nr_plugin_info++] = plugin;
}
void tfe_plugin_unregister(struct tfe_plugin * plugin)
{
return;
}
struct tfe_plugin * tfe_plugin_iterate(unsigned int * iterate)
{
if (*iterate < __g_nr_plugin_info) return __g_tfe_plugin_info[(*iterate)++];
else return NULL;
}
unsigned int tfe_plugin_total_counts()
{
return __g_nr_plugin_info;
}
|