score-back/include/test_api.h
amukhamadiev e0ac93c657 [c_api] added c api for libs
changed project structure, now relying on shared libraries
2026-02-27 22:03:09 +03:00

22 lines
415 B
C++

#ifndef CRPC_TEST_API
#define CRPC_TEST_API
#include <cstdint>
#include "export.h"
#ifdef __cplusplus
extern "C" {
#endif //cpp
struct CRPC_EXPORT rpc_string;
typedef rpc_string*(*callback_t)(rpc_string*);
CRPC_EXPORT void crpc_test_init();
CRPC_EXPORT void crpc_test_deinit();
CRPC_EXPORT void crpc_test_add_method(callback_t cb, rpc_string* name);
#ifdef __cplusplus
}
#endif //cpp
#endif //CRPC_SERVER_API