aboutsummaryrefslogtreecommitdiffstats
path: root/lib/orber/examples/Stack/stack.idl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/orber/examples/Stack/stack.idl')
-rw-r--r--lib/orber/examples/Stack/stack.idl27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/orber/examples/Stack/stack.idl b/lib/orber/examples/Stack/stack.idl
new file mode 100644
index 0000000000..f21f93917b
--- /dev/null
+++ b/lib/orber/examples/Stack/stack.idl
@@ -0,0 +1,27 @@
+#ifndef _STACK_IDL
+#define _STACK_IDL
+
+module StackModule {
+
+ exception EmptyStack {};
+
+ interface Stack {
+
+ long pop() raises(StackModule::EmptyStack);
+
+ void push(in long value);
+
+ void empty();
+
+ };
+
+ interface StackFactory {
+
+ StackModule::Stack create_stack();
+ void destroy_stack(in StackModule::Stack s);
+
+ };
+
+};
+
+#endif