NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
doca_sta_task.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES, ALL RIGHTS RESERVED.
3  *
4  * This software product is a proprietary product of NVIDIA CORPORATION &
5  * AFFILIATES (the "Company") and all right, title, and interest in and to the
6  * software product, including all associated intellectual property rights, are
7  * and shall remain exclusively with the Company.
8  *
9  * This software product is governed by the End User License Agreement
10  * provided with the software product.
11  *
12  */
13 
14 #ifndef DOCA_STA_TASK_H_
15 #define DOCA_STA_TASK_H_
16 
17 #include <stdint.h>
18 
19 #include <doca_error.h>
20 #include <doca_types.h>
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 struct doca_task;
27 struct doca_sta;
28 
29 struct doca_sta_producer_task_send;
30 
53 typedef void (*doca_sta_task_completion_cb_t)(struct doca_sta_producer_task_send *task, union doca_data task_user_data);
54 
56 struct doca_task *doca_sta_producer_send_task_as_task(struct doca_sta_producer_task_send *task);
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 #endif /* DOCA_STA_TASK_H_ */
void(* doca_sta_task_completion_cb_t)(struct doca_sta_producer_task_send *task, union doca_data task_user_data)
Function to execute on STA task completion.
Definition: doca_sta_task.h:53
DOCA_EXPERIMENTAL struct doca_task * doca_sta_producer_send_task_as_task(struct doca_sta_producer_task_send *task)
#define DOCA_EXPERIMENTAL
To set a Symbol (or specifically a function) as experimental.
Definition: doca_compat.h:103
Convenience type for representing opaque data.
Definition: doca_types.h:56