1acb7f5474
Make rte_driver opaque for non internal users. This will make extending this object possible without breaking the ABI. Introduce a new driver header and move rte_driver definition. Update drivers and library to use the internal header. Some applications may have been dereferencing rte_driver objects, mark this object's accessors as stable. Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Jay Jayatheerthan <jay.jayatheerthan@intel.com> Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Acked-by: Akhil Goyal <gakhil@marvell.com> Acked-by: Abhinandan Gujjar <abhinandan.gujjar@intel.com>
29 lines
511 B
C
29 lines
511 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright (c) 2022 Red Hat, Inc.
|
|
*/
|
|
|
|
#ifndef DEV_DRIVER_H
|
|
#define DEV_DRIVER_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <rte_common.h>
|
|
#include <rte_dev.h>
|
|
|
|
/**
|
|
* A structure describing a device driver.
|
|
*/
|
|
struct rte_driver {
|
|
RTE_TAILQ_ENTRY(rte_driver) next; /**< Next in list. */
|
|
const char *name; /**< Driver name. */
|
|
const char *alias; /**< Driver alias. */
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* DEV_DRIVER_H */
|