Files
spark/src/lib/api/core/ApiServerInterop.h
T
2017-08-07 17:21:12 -04:00

20 lines
784 B
C++

#pragma once
#include "ApiInteropCommon.h"
namespace bts {
namespace api {
struct ApiServerCore;
//struct ReplyHandler;
typedef void ReplyHandler;
typedef void(*raw_rpc_request_callback)(const uint8_t* buffer, size_t length, ReplyHandler* callback, void* extra);
BTS_EXPORT ApiServerCore* api_server_create(Quickbus* pbus, const char* type_name, const char* service_qualifier, raw_rpc_request_callback reply, void* extra);
BTS_EXPORT void api_server_call_callback(ReplyHandler** pphandler, const uint8_t* buffer, int length);
typedef void* TableHandle;
BTS_EXPORT TableHandle api_server_create_table(ApiServerCore* pserver, const char* method_and_qualifier);
BTS_EXPORT void api_server_update_table(TableHandle htable, StreamUpdate* raw_changes, int change_count);
}}//namespace