]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/tossim/hashtable.h
Changed the default to be that all platforms #include stdio.h unless specifically...
[tinyos-2.x.git] / tos / lib / tossim / hashtable.h
index b90781abd4a75e6f910cf1450c8ad159bdeac33a..1bf9eb30640d7d1899f9fa052ffd3e34901526e0 100644 (file)
@@ -2,8 +2,12 @@
 
 #ifndef __HASHTABLE_CWC22_H__
 #define __HASHTABLE_CWC22_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 struct hashtable;
+typedef struct hashtable hashtable_t;
 
 /* Example of use:
  *
@@ -163,6 +167,11 @@ hashtable_count(struct hashtable *h);
 void
 hashtable_destroy(struct hashtable *h, int free_values);
 
+#ifdef __cplusplus
+}
+#endif
+
+
 #endif /* __HASHTABLE_CWC22_H__ */
 
 /*
@@ -197,3 +206,4 @@ hashtable_destroy(struct hashtable *h, int free_values);
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
+