19 lines
374 B
C
19 lines
374 B
C
|
//
|
||
|
// Created by william on 10/15/23.
|
||
|
//
|
||
|
|
||
|
#include <log.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
#include "../include/mapper.h"
|
||
|
#include "simple_mapper.c"
|
||
|
|
||
|
Mapper get_mapper(enum MapperType type) {
|
||
|
switch (type) {
|
||
|
case MAPPER_TYPE_SIMPLE:
|
||
|
return get_simple_mapper();
|
||
|
default:
|
||
|
log_error("Unsupported mapper %u", type);
|
||
|
exit(-1);
|
||
|
}
|
||
|
}
|