mapidstdflib.c 4.65 KB
Newer Older
's avatar
committed
1
//Tue Nov  8 17:24:20 2005
Arne Øslebø's avatar
Arne Øslebø committed
2
3
4
5
6
7
//This file was created automatically by createlib.pl

#include <stdio.h>
#include "mapidflib.h"
#include "debug.h"

's avatar
committed
8
    char libname[]="mapidstdflib";
Arne Øslebø's avatar
Arne Øslebø committed
9
10
11
12

__attribute__ ((constructor)) void init ();
__attribute__ ((destructor))  void fini ();

's avatar
committed
13
mapidflib_functionlist_t functions[23];
Arne Øslebø's avatar
Arne Øslebø committed
14

Arne Øslebø's avatar
Arne Øslebø committed
15
extern mapidflib_function_def_t * binop_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
16
extern mapidflib_function_def_t * bpf_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
17
18
19
20
21
22
extern mapidflib_function_def_t * bpf_get_funct_info();
extern mapidflib_function_def_t * bucket_get_funct_info();
extern mapidflib_function_def_t * bytec_get_funct_info();
extern mapidflib_function_def_t * cooking_get_funct_info();
extern mapidflib_function_def_t * dist_get_funct_info();
extern mapidflib_function_def_t * gap_get_funct_info();
's avatar
committed
23
extern mapidflib_function_def_t * getres_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
24
25
26
27
28
29
extern mapidflib_function_def_t * hash_get_funct_info();
extern mapidflib_function_def_t * hashsamp_get_funct_info();
extern mapidflib_function_def_t * pktc_get_funct_info();
extern mapidflib_function_def_t * pktinfo_get_funct_info();
extern mapidflib_function_def_t * res2file_get_funct_info();
extern mapidflib_function_def_t * sample_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
30
extern mapidflib_function_def_t * startstop_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
31
32
33
34
35
36
extern mapidflib_function_def_t * stats_get_funct_info();
extern mapidflib_function_def_t * strsearch_get_funct_info();
extern mapidflib_function_def_t * threshold_get_funct_info();
extern mapidflib_function_def_t * to_tcpdump_get_funct_info();
extern mapidflib_function_def_t * toba_get_funct_info();
extern mapidflib_function_def_t * tobuffer_get_funct_info();
's avatar
committed
37
extern mapidflib_function_def_t * topx_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
38
39
40

mapidflib_functionlist_t* mapidflib_get_function_list()
{
Arne Øslebø's avatar
Arne Øslebø committed
41
  functions[0].def=binop_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
42
43
44
  functions[0].def->libname=libname;
  functions[0].next=&functions[1];

Arne Øslebø's avatar
Arne Øslebø committed
45
  functions[1].def=bpf_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
46
47
48
  functions[1].def->libname=libname;
  functions[1].next=&functions[2];

Arne Øslebø's avatar
Arne Øslebø committed
49
  functions[2].def=bpf_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
50
51
52
  functions[2].def->libname=libname;
  functions[2].next=&functions[3];

Arne Øslebø's avatar
Arne Øslebø committed
53
  functions[3].def=bucket_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
54
55
56
  functions[3].def->libname=libname;
  functions[3].next=&functions[4];

Arne Øslebø's avatar
Arne Øslebø committed
57
  functions[4].def=bytec_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
58
59
60
  functions[4].def->libname=libname;
  functions[4].next=&functions[5];

Arne Øslebø's avatar
Arne Øslebø committed
61
  functions[5].def=cooking_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
62
63
64
  functions[5].def->libname=libname;
  functions[5].next=&functions[6];

Arne Øslebø's avatar
Arne Øslebø committed
65
  functions[6].def=dist_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
66
67
  functions[6].def->libname=libname;
  functions[6].next=&functions[7];
Arne Øslebø's avatar
Arne Øslebø committed
68
69

  functions[7].def=gap_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
70
71
72
  functions[7].def->libname=libname;
  functions[7].next=&functions[8];

Arne Øslebø's avatar
Arne Øslebø committed
73
  functions[8].def=getres_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
74
75
76
  functions[8].def->libname=libname;
  functions[8].next=&functions[9];

Arne Øslebø's avatar
Arne Øslebø committed
77
  functions[9].def=hash_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
78
79
80
  functions[9].def->libname=libname;
  functions[9].next=&functions[10];

Arne Øslebø's avatar
Arne Øslebø committed
81
  functions[10].def=hashsamp_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
82
83
84
  functions[10].def->libname=libname;
  functions[10].next=&functions[11];

Arne Øslebø's avatar
Arne Øslebø committed
85
  functions[11].def=pktc_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
86
87
88
  functions[11].def->libname=libname;
  functions[11].next=&functions[12];

Arne Øslebø's avatar
Arne Øslebø committed
89
  functions[12].def=pktinfo_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
90
91
92
  functions[12].def->libname=libname;
  functions[12].next=&functions[13];

Arne Øslebø's avatar
Arne Øslebø committed
93
  functions[13].def=res2file_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
94
95
96
  functions[13].def->libname=libname;
  functions[13].next=&functions[14];

Arne Øslebø's avatar
Arne Øslebø committed
97
  functions[14].def=sample_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
98
99
100
  functions[14].def->libname=libname;
  functions[14].next=&functions[15];

Arne Øslebø's avatar
Arne Øslebø committed
101
  functions[15].def=startstop_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
102
103
104
  functions[15].def->libname=libname;
  functions[15].next=&functions[16];

Arne Øslebø's avatar
Arne Øslebø committed
105
  functions[16].def=stats_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
106
107
108
  functions[16].def->libname=libname;
  functions[16].next=&functions[17];

Arne Øslebø's avatar
Arne Øslebø committed
109
  functions[17].def=strsearch_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
110
  functions[17].def->libname=libname;
Arne Øslebø's avatar
Arne Øslebø committed
111
112
  functions[17].next=&functions[18];

Arne Øslebø's avatar
Arne Øslebø committed
113
  functions[18].def=threshold_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
114
115
116
  functions[18].def->libname=libname;
  functions[18].next=&functions[19];

Arne Øslebø's avatar
Arne Øslebø committed
117
  functions[19].def=to_tcpdump_get_funct_info();
Arne Øslebø's avatar
Arne Øslebø committed
118
  functions[19].def->libname=libname;
's avatar
committed
119
120
  functions[19].next=&functions[20];

Arne Øslebø's avatar
Arne Øslebø committed
121
  functions[20].def=toba_get_funct_info();
's avatar
committed
122
  functions[20].def->libname=libname;
Arne Øslebø's avatar
Arne Øslebø committed
123
124
125
126
  functions[20].next=&functions[21];

  functions[21].def=tobuffer_get_funct_info();
  functions[21].def->libname=libname;
's avatar
committed
127
128
129
130
131
  functions[21].next=&functions[22];

  functions[22].def=topx_get_funct_info();
  functions[22].def->libname=libname;
  functions[22].next=NULL;
Arne Øslebø's avatar
Arne Øslebø committed
132
133
134
135
136
137
138
139
140
141
142
  
  return &functions[0];
}

char *mapidflib_get_libname() {
    return libname;
}

__attribute__ ((constructor))
     void init ()
{
's avatar
committed
143
    DEBUG_CMD(printf ("Library mapidstdflib loaded\n"));
Arne Øslebø's avatar
Arne Øslebø committed
144
145
146
147
148
}

__attribute__ ((destructor))
     void fini ()
{
's avatar
committed
149
    DEBUG_CMD(printf ("Library mapidstdflib unloaded\n"));
Arne Øslebø's avatar
Arne Øslebø committed
150
151
}