CNDP 22.08.0
Loading...
Searching...
No Matches
cnet_reg.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (c) 2016-2022 Intel Corporation
3 */
4
5#ifndef __CNET_REG_H
6#define __CNET_REG_H
7
12
13#include <stdint.h> // for int32_t
14
15#include "cnet_const.h" // for cfunc_t
16#include "cne_common.h" // for CNDP_API
17
18struct stk_s;
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23typedef struct cnet_register {
24 const char *name;
25 cfunc_t s_create;
26 cfunc_t s_destroy;
27 int32_t priority;
28 int32_t reserved;
29} cnet_register_t;
30
46CNDP_API void cnet_add_instance(const char *name, int pri, cfunc_t create, cfunc_t destroy);
47
58CNDP_API int cnet_do_instance_calls(struct stk_s *stk, int type);
59
64CNDP_API void cne_register_dump(void);
65
66#ifdef __cplusplus
67}
68#endif
69
70#endif /* __CNET_REG_H */
CNDP_API void cne_register_dump(void)
CNDP_API void cnet_add_instance(const char *name, int pri, cfunc_t create, cfunc_t destroy)
CNDP_API int cnet_do_instance_calls(struct stk_s *stk, int type)