summaryrefslogtreecommitdiff
path: root/cesar/cl/test/utest_eoc/src/hle_tools.c
blob: eba7086609bc1fbfb582dc1c7f3ecbac93382088 (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
27
28
29
30
31
32
33
34
35
36
37
/* Cesar project {{{
 *
 * Copyright (C) 2012 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    cl/test/utest_eoc/src/hle_tools.c
 * \brief   Stub hle tools.
 * \ingroup cl
 */
#include "common/std.h"
#include "hle/tools/tools.h"

#include "cl/test/utest_eoc/test.h"
#include "config/hle.h"

hle_tools_t *
hle_tools_init (ipmbox_t *ipmbox)
{
    static hle_tools_test_t hle_tools;
    hle_tools.msg = NULL;
    return (hle_tools_t *) &hle_tools;
}

void
hle_tools_uninit (hle_tools_t *ctx)
{
}

void
hle_tools_msg_recv (hle_tools_t *ctx, const ipmbox_msg_mbx_t *msg)
{
    hle_tools_test_t *t = (hle_tools_test_t*) ctx;
    t->msg = (ipmbox_msg_mbx_t*) msg;
}