Browse Source

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

master
kevin 11 years ago
parent
commit
7cf517ce44
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      cmUdpNet.h

+ 9
- 1
cmUdpNet.h View File

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

Loading…
Cancel
Save