aboutsummaryrefslogtreecommitdiffstats
path: root/high-can-binding/high-can-binding-hat.hpp
blob: 28e8306378dcd4992831dad986105b72d01a659f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once
#include <cstddef>
#include <systemd/sd-event.h>
extern "C"
{
    #define AFB_BINDING_VERSION 2
    #include <afb/afb-binding.h>
};

    void onEvent(const char *event, struct json_object *object);
    void subscribe(afb_req request);
    void unsubscribe(afb_req request);
    void get(afb_req request);
    void initHigh();
    int ticked(sd_event_source *source, uint64_t t, void *data);