summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2013-04-26 13:38:53 +0100
committerSimon MacMullen <simon@rabbitmq.com>2013-04-26 13:38:53 +0100
commite708dbcb6a2b428d5d65551dc9257c692cc985ad (patch)
tree02e2f3e90763fb06e9baa36f699fe9a069278b87
parentcdc8750334df80aec9abccb72a27e1c198372e17 (diff)
downloadrabbitmq-codegen-e708dbcb6a2b428d5d65551dc9257c692cc985ad.tar.gz
Move credit to an extension.
-rw-r--r--amqp-rabbitmq-0.9.1.json15
-rw-r--r--credit_extension.json54
2 files changed, 55 insertions, 14 deletions
diff --git a/amqp-rabbitmq-0.9.1.json b/amqp-rabbitmq-0.9.1.json
index dd15e97..ca19a37 100644
--- a/amqp-rabbitmq-0.9.1.json
+++ b/amqp-rabbitmq-0.9.1.json
@@ -415,20 +415,7 @@
"arguments": [{"type": "longlong", "name": "delivery-tag", "default-value": 0},
{"type": "bit", "name": "multiple", "default-value": false},
{"type": "bit", "name": "requeue", "default-value": true}],
- "name": "nack"},
- {"id": 257,
- "arguments": [{"type": "shortstr", "name": "consumer-tag", "default-value": ""},
- {"type": "long", "name": "credit"},
- {"type": "bit", "name": "drain"}],
- "name": "credit",
- "synchronous" : true},
- {"id": 258,
- "arguments": [{"type": "long", "name": "available"}],
- "name": "credit-ok"},
- {"id": 259,
- "arguments": [{"type": "shortstr", "name": "consumer-tag", "default-value": ""},
- {"type": "long", "name": "credit-drained"}],
- "name": "credit-drained"}],
+ "name": "nack"}],
"name": "basic",
"properties": [{"type": "shortstr", "name": "content-type"},
{"type": "shortstr", "name": "content-encoding"},
diff --git a/credit_extension.json b/credit_extension.json
new file mode 100644
index 0000000..a9429a3
--- /dev/null
+++ b/credit_extension.json
@@ -0,0 +1,54 @@
+{
+ "extension": {
+ "name": "credit",
+ "version": "0.1",
+ "status": [
+ "This extension is used internally by the broker and plugins. ",
+ "It is NOT intended to be used by regular clients over the ",
+ "network. This extension is subject to change without notice; "
+ "hence you are strongly discouraged from building clients ",
+ "which use it."],
+ "copyright": [
+ "Copyright (C) 2008-2013 VMware, Inc.\n",
+ "\n",
+ "Permission is hereby granted, free of charge, to any person\n",
+ "obtaining a copy of this file (the \"Software\"), to deal in the\n",
+ "Software without restriction, including without limitation the \n",
+ "rights to use, copy, modify, merge, publish, distribute, \n",
+ "sublicense, and/or sell copies of the Software, and to permit \n",
+ "persons to whom the Software is furnished to do so, subject to \n",
+ "the following conditions:\n",
+ "\n",
+ "The above copyright notice and this permission notice shall be\n",
+ "included in all copies or substantial portions of the Software.\n",
+ "\n",
+ "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n",
+ "EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\n",
+ "OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n",
+ "NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n",
+ "HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n",
+ "WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n",
+ "FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n",
+ "OTHER DEALINGS IN THE SOFTWARE.\n"]
+ },
+
+ "classes": [
+ {
+ "id": 60,
+ "methods": [{"id": 200,
+ "arguments": [{"type": "shortstr", "name": "consumer-tag", "default-value": ""},
+ {"type": "long", "name": "credit"},
+ {"type": "bit", "name": "drain"}],
+ "name": "credit",
+ "synchronous" : true},
+ {"id": 201,
+ "arguments": [{"type": "long", "name": "available"}],
+ "name": "credit-ok"},
+ {"id": 202,
+ "arguments": [{"type": "shortstr", "name": "consumer-tag", "default-value": ""},
+ {"type": "long", "name": "credit-drained"}],
+ "name": "credit-drained"}],
+ "name": "basic"
+ }
+ ]
+}