Move IS_DEVICE_PATH_NODE into header to share it.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jun Nie <jun.nie@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
#ifndef __BDS_ENTRY_H__\r
#define __BDS_ENTRY_H__\r
\r
+#define IS_DEVICE_PATH_NODE(node,type,subtype) \\r
+ (((node)->Type == (type)) && ((node)->SubType == (subtype)))\r
+\r
/**\r
This is defined by the UEFI specs, don't change it\r
**/\r
#include <Protocol/Dhcp4.h>\r
#include <Protocol/Mtftp4.h>\r
\r
-\r
-#define IS_DEVICE_PATH_NODE(node,type,subtype) (((node)->Type == (type)) && ((node)->SubType == (subtype)))\r
-\r
/* Type and defines to set up the DHCP4 options */\r
\r
typedef struct {\r