summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Garnock-Jones <tonyg@lshift.net>2009-10-19 13:36:42 +0100
committerTony Garnock-Jones <tonyg@lshift.net>2009-10-19 13:36:42 +0100
commitae287dd3db7f7bb1db50b93c224073933c7312b9 (patch)
treee7a0b37581b7f3f8c6753535e935cdc4ea14d915
parent2827b11a8020d2d59f813528d476d85969eb574c (diff)
downloadrabbitmq-codegen-ae287dd3db7f7bb1db50b93c224073933c7312b9.tar.gz
Move demo extension from rabbitmq-server to rabbitmq-codegen; start documentation
-rw-r--r--README.extensions.md4
-rw-r--r--demo_extension.json18
2 files changed, 22 insertions, 0 deletions
diff --git a/README.extensions.md b/README.extensions.md
new file mode 100644
index 0000000..5b4b2c2
--- /dev/null
+++ b/README.extensions.md
@@ -0,0 +1,4 @@
+# Protocol extensions
+
+((TODO: shapes of the main document; shapes of extension documents;
+how to invoke the compiler; merge behaviour))
diff --git a/demo_extension.json b/demo_extension.json
new file mode 100644
index 0000000..4a65dbe
--- /dev/null
+++ b/demo_extension.json
@@ -0,0 +1,18 @@
+{
+ "extension": {
+ "name": "demo",
+ "version": "1.0",
+ "copyright": "Copyright (C) 2009 LShift Ltd."
+ },
+ "domains": [
+ ["foo-domain", "shortstr"]
+ ],
+ "constants": [
+ {"name": "FOO-CONSTANT", "value": 121212}
+ ],
+ "classes": [
+ {"name": "demo",
+ "id": 555,
+ "methods": [{"name": "one", "id": 1, "arguments": []}]}
+ ]
+} \ No newline at end of file