#include <pthread.h>
extern "C" {
-#include <json-c/json.h>
-#include <afb-wsj1.h>
-#include <afb-ws-client.h>
+#include "json-c/json.h"
+#include "afb-wsj1.h"
+#include "afb-ws-client.h"
}
#include <iostream>
afb_wsj1 *wsj1_ = nullptr;
private:
static struct afb_wsj1_itf wsj1_itf;
- static void itf_hangup_(void *closure, struct afb_wsj1 *wsj1);
- static void itf_on_call_(void *closure, const char *api, const char *verb, struct afb_wsj1_msg *msg);
+ static void itf_hangup_(void *closure, struct afb_wsj1 *wsj1){};
+ static void itf_on_call_(void *closure, const char *api, const char *verb, struct afb_wsj1_msg *msg){};
static void itf_on_event_(void *closure, const char *event, struct afb_wsj1_msg *msg);
private:
- void on_hangup_(struct afb_wsj1 *wsj1) {}
- void on_call_(const char *api, const char *verb, struct afb_wsj1_msg *msg) {}
+ void on_hangup_(struct afb_wsj1 *wsj1);
+ void on_call_(const char *api, const char *verb, struct afb_wsj1_msg *msg);
void on_event_(const char *event, struct afb_wsj1_msg *msg);
private:
static sd_event *eloop_();
}
}
}
+void wsj1::on_hangup_(struct afb_wsj1 *wsj1) {
+};
+void wsj1::on_call_(const char *api, const char *verb, struct afb_wsj1_msg *msg) {
+
+};
}