summaryrefslogtreecommitdiff
path: root/TAO/examples/Advanced/ch_12/icp.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/Advanced/ch_12/icp.h')
-rw-r--r--TAO/examples/Advanced/ch_12/icp.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/TAO/examples/Advanced/ch_12/icp.h b/TAO/examples/Advanced/ch_12/icp.h
new file mode 100644
index 00000000000..5029a06803d
--- /dev/null
+++ b/TAO/examples/Advanced/ch_12/icp.h
@@ -0,0 +1,43 @@
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// TAO/examples/Advanced/ch_12
+//
+// = FILENAME
+// icp.h
+//
+// = AUTHORS
+// Source code used in TAO has been modified and adapted from the
+// code provided in the book, "Advanced CORBA Programming with C++"
+// by Michi Henning and Steve Vinoski. Copyright
+// 1999. Addison-Wesley, Reading, MA. Used with permission of
+// Addison-Wesley.
+//
+// Modified for TAO by Mike Moran <mm4@cs.wustl.edu>
+//
+// ============================================================================
+
+#ifndef _ICP_H
+#define _ICP_H
+
+extern "C"
+{
+ int ICP_online (unsigned long id); // Add device
+ int ICP_offline (unsigned long id); // Remove device
+
+ // Get attribute
+ int ICP_get (unsigned long id,
+ const char * attr,
+ void *value,
+ size_t len);
+ // Set attribute
+ int ICP_set (unsigned long id,
+ const char *attr,
+ const void *value);
+}
+
+size_t min(const size_t len1, const size_t len2);
+
+#endif /* _ICP_H */