Data Accelerator Offload
Loading...
Searching...
No Matches
dao_card_grpc_client.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: Marvell-MIT
2 * Copyright(C) 2025 Marvell.
3 */
4
5#ifndef __INCLUDE_DAO_CARD_GRPC_CLIENT_H__
6#define __INCLUDE_DAO_CARD_GRPC_CLIENT_H__
7
8#include "../dao_card_grpc_service.h"
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
20#include <stdint.h>
21
25struct dao_card_grpc_ctx;
26
34struct dao_card_grpc_ctx *dao_card_grpc_client_init(const char *server_ip, uint16_t server_port);
35
41void dao_card_grpc_client_fini(struct dao_card_grpc_ctx *ctx);
42
54int dao_card_init(struct dao_card_grpc_ctx *ctx, struct dao_card_config *config);
55
65void dao_card_fini(struct dao_card_grpc_ctx *ctx);
66
76int dao_card_info_get(struct dao_card_grpc_ctx *ctx, struct dao_card_info *info);
77
88int dao_card_app_update(struct dao_card_grpc_ctx *ctx, struct dao_card_app_update_req *req);
89
90#ifdef __cplusplus
91}
92#endif
93
94#endif /* __INCLUDE_DAO_CARD_GRPC_CLIENT_H__ */
void dao_card_fini(struct dao_card_grpc_ctx *ctx)
int dao_card_init(struct dao_card_grpc_ctx *ctx, struct dao_card_config *config)
int dao_card_info_get(struct dao_card_grpc_ctx *ctx, struct dao_card_info *info)
int dao_card_app_update(struct dao_card_grpc_ctx *ctx, struct dao_card_app_update_req *req)
void dao_card_grpc_client_fini(struct dao_card_grpc_ctx *ctx)
struct dao_card_grpc_ctx * dao_card_grpc_client_init(const char *server_ip, uint16_t server_port)