cmUdpNet.h: Added extern "C" {} wrapper.

This commit is contained in:
kevin 2013-03-25 16:01:09 -07:00
parent bbc847f3c1
commit 7cf517ce44

View File

@ -1,6 +1,10 @@
#ifndef cmUdpNet_h #ifndef cmUdpNet_h
#define cmUdpNet_h #define cmUdpNet_h
#ifdef __cplusplus
extern "C" {
#endif
/* /*
A cmUdpNet is a wrapper around a single cmUdpPort. This object A cmUdpNet is a wrapper around a single cmUdpPort. This object
maintains an array of remote nodes which map application defined maintains an array of remote nodes which map application defined
@ -93,7 +97,7 @@ unsigned cmUdpNetNodeLabelToId( cmUdpNetH_t h, const cmChar_t* label );
// Return the node label associated with a node id or NULL if the id // Return the node label associated with a node id or NULL if the id
// is not found. // is not found.
const cmChar_t* cmUdpNetNodeIdToLabel( cmUdpNetH_t h, unsigned id ); const cmChar_t* cmUdpNetNodeIdToLabel( cmUdpNetH_t h, unsigned id );
// Get the total count of nodes on the network. This count includes the local node. // Get the total count of nodes on the network. This count includes the local node.
unsigned cmUdpNetNodeCount( cmUdpNetH_t h ); unsigned cmUdpNetNodeCount( cmUdpNetH_t h );
@ -128,4 +132,8 @@ void cmUdpNetReport( cmUdpNetH_t h, cmRpt_t* rpt );
cmRC_t cmUdpNetTest( cmCtx_t* ctx, int argc, char* argv[] ); cmRC_t cmUdpNetTest( cmCtx_t* ctx, int argc, char* argv[] );
#ifdef __cplusplus
}
#endif
#endif #endif