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#include <stddef.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
22#include <stdint.h>
23
27struct dao_card_grpc_ctx;
28
36struct dao_card_grpc_ctx *dao_card_grpc_client_init(const char *server_ip, uint16_t server_port);
37
43void dao_card_grpc_client_fini(struct dao_card_grpc_ctx *ctx);
44
56int dao_card_init(struct dao_card_grpc_ctx *ctx, struct dao_card_config *config);
57
67void dao_card_fini(struct dao_card_grpc_ctx *ctx);
68
78int dao_card_info_get(struct dao_card_grpc_ctx *ctx, struct dao_card_info *info);
79
90int dao_card_app_fallback(struct dao_card_grpc_ctx *ctx);
91
102int dao_card_stats_get(struct dao_card_grpc_ctx *ctx, struct dao_card_stats *stats);
103
113int dao_card_sensors_get(struct dao_card_grpc_ctx *ctx, char *buf, size_t len);
114
122int dao_card_dmesg_get(struct dao_card_grpc_ctx *ctx, char *buf, size_t len);
123
139int dao_card_file_update(struct dao_card_grpc_ctx *ctx, struct dao_card_update_req *req,
140 enum dao_card_update_type type);
141
142#ifdef __cplusplus
143}
144#endif
145
146#endif /* __INCLUDE_DAO_CARD_GRPC_CLIENT_H__ */
int dao_card_file_update(struct dao_card_grpc_ctx *ctx, struct dao_card_update_req *req, enum dao_card_update_type type)
int dao_card_dmesg_get(struct dao_card_grpc_ctx *ctx, char *buf, size_t len)
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_sensors_get(struct dao_card_grpc_ctx *ctx, char *buf, size_t len)
int dao_card_app_fallback(struct dao_card_grpc_ctx *ctx)
void dao_card_grpc_client_fini(struct dao_card_grpc_ctx *ctx)
int dao_card_stats_get(struct dao_card_grpc_ctx *ctx, struct dao_card_stats *stats)
struct dao_card_grpc_ctx * dao_card_grpc_client_init(const char *server_ip, uint16_t server_port)