summaryrefslogtreecommitdiff
path: root/src/common_handlers.c
blob: 29b6c9d4954dcc462566fbc96473c05c719ee709 (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
42
43
44
45
46
47
48
49
50
51
52
/*
 * common_handlers.c
 *
 *  Created on: Jul 6, 2018
 *      Author: jpark
 */

#include <unistd.h>
#include <stdio.h>
#include <stdbool.h>
#include "st_things.h"
#include "log.h"

/* callback functions */
bool handle_reset_request(void)
{
    DBG("Received a request for RESET.");

    // TODO: Write your implementation in this section.
    return false;  // FIXME: Modify this line with the appropriate return value.
}

void handle_reset_result(bool result)
{
    DBG("Reset %s.\n", result ? "succeeded" : "failed");

    // TODO: Write your implementation in this section.
}

bool handle_ownership_transfer_request(void)
{
    DBG("Received a request for Ownership-transfer.");

    // TODO: Write your implementation in this section.
    return true;  // FIXME: Modify this line with the appropriate return value.
}

void handle_things_status_change(st_things_status_e things_status)
{
    DBG("Things status is changed: %d\n", things_status);

    // TODO: Write your implementation in this section.
}

bool init_user() {
	FN_CALL;

	bool ret = false;

	// TODO: Write your implementation in this section.
	return ret;  // FIXME: Modify this line with the appropriate return value.
}