]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/sdk/c/sfsource.h
changes for C++
[tinyos-2.x.git] / support / sdk / c / sfsource.h
index 98f7302e13d93f10fea19286b6e2fecdf1f705a8..b6c2b923976d39d585b8829f14ba4f8459af4119 100644 (file)
@@ -1,6 +1,10 @@
 #ifndef SFSOURCE_H
 #define SFSOURCE_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 int open_sf_source(const char *host, int port);
 /* Returns: file descriptor for TinyOS 2.0 serial forwarder at host:port, or
      -1 for failure
@@ -25,4 +29,8 @@ int write_sf_packet(int fd, const void *packet, int len);
    Returns: 0 if packet successfully written, -1 otherwise
 */
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif