numam-dpdk/lib/cmdline/cmdline_parse_etheraddr.h
Bruce Richardson 99a2dd955f lib: remove librte_ prefix from directory names
There is no reason for the DPDK libraries to all have 'librte_' prefix on
the directory names. This prefix makes the directory names longer and also
makes it awkward to add features referring to individual libraries in the
build - should the lib names be specified with or without the prefix.
Therefore, we can just remove the library prefix and use the library's
unique name as the directory name, i.e. 'eal' rather than 'librte_eal'

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
2021-04-21 14:04:09 +02:00

43 lines
1.2 KiB
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2010-2014 Intel Corporation.
* Copyright (c) 2009, Olivier MATZ <zer0@droids-corp.org>
* All rights reserved.
*/
#ifndef _PARSE_ETHERADDR_H_
#define _PARSE_ETHERADDR_H_
#include <cmdline_parse.h>
#ifdef __cplusplus
extern "C" {
#endif
struct cmdline_token_etheraddr {
struct cmdline_token_hdr hdr;
};
typedef struct cmdline_token_etheraddr cmdline_parse_token_etheraddr_t;
extern struct cmdline_token_ops cmdline_token_etheraddr_ops;
int cmdline_parse_etheraddr(cmdline_parse_token_hdr_t *tk, const char *srcbuf,
void *res, unsigned ressize);
int cmdline_get_help_etheraddr(cmdline_parse_token_hdr_t *tk, char *dstbuf,
unsigned int size);
#define TOKEN_ETHERADDR_INITIALIZER(structure, field) \
{ \
/* hdr */ \
{ \
&cmdline_token_etheraddr_ops, /* ops */ \
offsetof(structure, field), /* offset */ \
}, \
}
#ifdef __cplusplus
}
#endif
#endif /* _PARSE_ETHERADDR_H_ */