tracklib.c 1.33 KB
Newer Older
's avatar
committed
1
2
3
4
5
6
7
8
9
10
11
12
//Thu Nov 10 12:30:25 2005
//This file was created automatically by createlib.pl

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

    char libname[]="tracklib";

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

13
mapidflib_functionlist_t functions[4];
's avatar
committed
14
15

extern mapidflib_function_def_t * trackftp_get_funct_info();
's avatar
committed
16
extern mapidflib_function_def_t * gnutella_get_funct_info();
17
18
extern mapidflib_function_def_t * torrent_get_funct_info();
extern mapidflib_function_def_t * dc_get_funct_info();
's avatar
committed
19
20
21
22
23

mapidflib_functionlist_t* mapidflib_get_function_list()
{
  functions[0].def=trackftp_get_funct_info();
  functions[0].def->libname=libname;
's avatar
committed
24
25
26
27
  functions[0].next=&functions[1];
 
  functions[1].def=gnutella_get_funct_info();
  functions[1].def->libname=libname;
28
  functions[1].next=&functions[2];
's avatar
committed
29

30
31
32
33
34
35
36
37
  functions[2].def=torrent_get_funct_info();
  functions[2].def->libname=libname;
  functions[2].next=&functions[3];

  functions[3].def=dc_get_funct_info();
  functions[3].def->libname=libname;
  functions[3].next=NULL;
  
's avatar
committed
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
  return &functions[0];
}

char *mapidflib_get_libname() {
    return libname;
}

__attribute__ ((constructor))
     void init ()
{
    DEBUG_CMD(printf ("Library tracklib loaded\n"));
}

__attribute__ ((destructor))
     void fini ()
{
    DEBUG_CMD(printf ("Library tracklib unloaded\n"));
}