1 Star 0 Fork 1

THEWON/hello_erpc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
hello_server.h 1.43 KB
一键复制 编辑 原始数据 按行查看 历史
thewon 提交于 2022-08-02 11:29 . add hello erpc file
/*
* Generated by erpcgen 1.9.1 on Fri Jul 29 09:33:29 2022.
*
* AUTOGENERATED - DO NOT EDIT
*/
#if !defined(_hello_server_h_)
#define _hello_server_h_
#ifdef __cplusplus
#include "erpc_server.h"
#include "erpc_codec.h"
extern "C"
{
#include "hello.h"
#include <stdint.h>
#include <stdbool.h>
}
#if 10901 != ERPC_VERSION_NUMBER
#error "The generated shim code version is different to the rest of eRPC code."
#endif
/*!
* @brief Service subclass for Hello.
*/
class Hello_service : public erpc::Service
{
public:
Hello_service() : Service(kHello_service_id) {}
/*! @brief Call the correct server shim based on method unique ID. */
virtual erpc_status_t handleInvocation(uint32_t methodId, uint32_t sequence, erpc::Codec * codec, erpc::MessageBufferFactory *messageFactory);
private:
/*! @brief Server shim for sayHello of Hello interface. */
erpc_status_t sayHello_shim(erpc::Codec * codec, erpc::MessageBufferFactory *messageFactory, uint32_t sequence);
};
extern "C" {
#else
#include "hello.h"
#endif // __cplusplus
typedef void * erpc_service_t;
erpc_service_t create_Hello_service(void);
#if ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_DYNAMIC
void destroy_Hello_service(erpc_service_t service);
#elif ERPC_ALLOCATION_POLICY == ERPC_ALLOCATION_POLICY_STATIC
void destroy_Hello_service(void);
#else
#warning "Unknown eRPC allocation policy!"
#endif
#ifdef __cplusplus
}
#endif // __cplusplus
#endif // _hello_server_h_
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/thewon/hello_erpc.git
git@gitee.com:thewon/hello_erpc.git
thewon
hello_erpc
hello_erpc
master

搜索帮助