2013-04-26 20:38:53 +08:00
|
|
|
{
|
|
|
|
|
"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 ",
|
2013-04-26 20:39:41 +08:00
|
|
|
"network. This extension is subject to change without notice; ",
|
2013-04-26 20:38:53 +08:00
|
|
|
"hence you are strongly discouraged from building clients ",
|
|
|
|
|
"which use it."],
|
|
|
|
|
"copyright": [
|
2024-02-06 01:26:25 +08:00
|
|
|
"Copyright (C) 2007-2024 Broadcom Inc. and its subsidiaries. All rights reserved.\n",
|
2013-04-26 20:38:53 +08:00
|
|
|
"\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"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|