summaryrefslogtreecommitdiff
path: root/cesar/maximus/stationtest/src/test_cb.c
blob: 83e9f4ce10ca158d7bc458ef6657aaa43473b6ef (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
38
39
40
41
/* Cesar project {{{
 *
 * Copyright (C) 2007 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    test_cb.c
 * \brief   station executable used for test cb program
 * \ingroup 
 */

#include <cyg/infra/diag.h>
#include <cyg/kernel/kapi.h>
#include <errno.h>
#include "common/std.h"
#include "host/station.h"

extern station_ctx_t my_station;

int get_seg (fcall_ctx_t *fcall, fcall_param_t **param, sci_msg_t **msg, void *data)
{
    diag_write_string("=> get_seg\n");

    /* now make the return parameter list */
    fcall_param_reset(*param);

    return 0; 
}

int main(void)
{
    station_log_set_level(&my_station, STATION_LOG_DEBUG);
    station_log_set_mask(&my_station, STATION_LOGTYPE_ALL);
    my_station.pipe_log_fd = 1;

    fcall_register(my_station.fcall, "get_seg", (void*)&get_seg, NULL);

    return 0;
}