dsm-api-v2
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
ds.h File Reference

Go to the source code of this file.

Data Structures

struct  dsid
 96-Bit dSID More...
 

Macros

#define IsBroadcastId(id)   (memcmp("\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff", &(id), sizeof(dsid_t)) == 0)
 
#define IsEqualId(id1, id2)   (memcmp(&(id1), &(id2), sizeof(dsid_t)) == 0)
 
#define IsNullId(id)   (memcmp("\0\0\0\0\0\0\0\0\0\0\0\0", &(id), sizeof(dsid_t)) == 0)
 
#define SetBroadcastId(id)   memcpy(&(id), "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff", sizeof(dsid_t))
 
#define SetNullId(id)   memcpy(&(id), "\0\0\0\0\0\0\0\0\0\0\0\0", sizeof(dsid_t))
 

Typedefs

typedef struct dsid dsid_t
 96-Bit dSID More...
 

Macro Definition Documentation

#define IsBroadcastId (   id)    (memcmp("\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff", &(id), sizeof(dsid_t)) == 0)
#define IsEqualId (   id1,
  id2 
)    (memcmp(&(id1), &(id2), sizeof(dsid_t)) == 0)
#define IsNullId (   id)    (memcmp("\0\0\0\0\0\0\0\0\0\0\0\0", &(id), sizeof(dsid_t)) == 0)
#define SetBroadcastId (   id)    memcpy(&(id), "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff", sizeof(dsid_t))
#define SetNullId (   id)    memcpy(&(id), "\0\0\0\0\0\0\0\0\0\0\0\0", sizeof(dsid_t))

Typedef Documentation

typedef struct dsid dsid_t

96-Bit dSID