#ifndef nsst_common_H_
#define nsst_common_H_

typedef enum {
    NS_PEER_CLIENT_START = 1000,
    NS_PEER_CLIENT_DEMO = 1001,
    NS_PEER_CLIENT_END = 1999,
    NS_PEER_DEVICE_START = 2000,
    NS_PEER_DEVICE_SERIES_H_END = 2099,
    NS_PEER_DEVICE_SERIES_K = 2100,
    NS_PEER_DEVICE_SERIES_K_END = 2199,
    NS_PEER_DEVICE_SERIES_A = 2200,
    NS_PEER_DEVICE_SERIES_A_END = 2299,
    NS_PEER_DEVICE_END = 2999
} NS_PEER_TYPE;

#define NS_PEER_IS_SERIES_H(x) (x >= NS_PEER_DEVICE_START && x <= NS_PEER_DEVICE_SERIES_H_END)
#define NS_PEER_IS_SERIES_K(x) (x >= NS_PEER_DEVICE_SERIES_K && x <= NS_PEER_DEVICE_SERIES_K_END)
#define NS_PEER_IS_SERIES_A(x) (x >= NS_PEER_DEVICE_SERIES_A && x <= NS_PEER_DEVICE_SERIES_A_END)
#define NS_PEER_IS_DEVICE(x) (x >= NS_PEER_DEVICE_START && x <= NS_PEER_DEVICE_END)
#define NS_PEER_IS_CLIENT(x) (x >= NS_PEER_CLIENT_START && x <= NS_PEER_CLIENT_END)
#define NS_PEER_IS_DEMO(x) (x == NS_PEER_CLIENT_DEMO)

#endif // nsst_common_H_