aboutsummaryrefslogtreecommitdiffstats
path: root/com32/sysdump/backends.c
blob: 4d95dbb56a444dabbdd2bbfa373be176bca573cd (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
/*
 * backends.c
 */

#include <string.h>
#include "backend.h"

extern struct backend be_tftp;

static struct backend *backends[] =
{
    &be_tftp,
    NULL
};

struct backend *get_backend(const char *name)
{
    struct backend *be, **bep;

    for (bep = backends ; (be = *bep) ; bep++) {
	if (!strcmp(name, be->name))
	    return be;
    }

    return NULL;
}