aboutsummaryrefslogtreecommitdiffstats
path: root/com32/sysdump/backends.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/sysdump/backends.c')
-rw-r--r--com32/sysdump/backends.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/com32/sysdump/backends.c b/com32/sysdump/backends.c
new file mode 100644
index 00000000..75f1d9d9
--- /dev/null
+++ b/com32/sysdump/backends.c
@@ -0,0 +1,27 @@
+/*
+ * 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;
+}
+