X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_eal%2Fcommon%2Feal_common_class.c;h=0187076af1c70d2a28a795b92a16a7419926b1a7;hb=84fb33fec179ea96f814aed9f658d5a2df20745d;hp=404a9065ad20c35bf4b8e18862293d180de2c5fa;hpb=d70f8448d01fff3585790861e822252f75131767;p=dpdk.git diff --git a/lib/librte_eal/common/eal_common_class.c b/lib/librte_eal/common/eal_common_class.c index 404a9065ad..0187076af1 100644 --- a/lib/librte_eal/common/eal_common_class.c +++ b/lib/librte_eal/common/eal_common_class.c @@ -9,10 +9,10 @@ #include #include -struct rte_class_list rte_class_list = +static struct rte_class_list rte_class_list = TAILQ_HEAD_INITIALIZER(rte_class_list); -__rte_experimental void +void rte_class_register(struct rte_class *class) { RTE_VERIFY(class); @@ -22,14 +22,13 @@ rte_class_register(struct rte_class *class) RTE_LOG(DEBUG, EAL, "Registered [%s] device class.\n", class->name); } -__rte_experimental void +void rte_class_unregister(struct rte_class *class) { TAILQ_REMOVE(&rte_class_list, class, next); RTE_LOG(DEBUG, EAL, "Unregistered [%s] device class.\n", class->name); } -__rte_experimental struct rte_class * rte_class_find(const struct rte_class *start, rte_class_cmp_t cmp, const void *data) @@ -56,7 +55,6 @@ cmp_class_name(const struct rte_class *class, const void *_name) return strcmp(class->name, name); } -__rte_experimental struct rte_class * rte_class_find_by_name(const char *name) {