From f5548c41883fe0b1a08493bf9cc075a0311d1ade Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Sat, 3 May 2014 10:55:24 +0200 Subject: docwriter: Add possibility to export the API in json format --- .../Regress.TestBoxed.json | 123 +++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 tests/scanner/Regress-1.0-expected.json/Regress.TestBoxed.json (limited to 'tests/scanner/Regress-1.0-expected.json/Regress.TestBoxed.json') diff --git a/tests/scanner/Regress-1.0-expected.json/Regress.TestBoxed.json b/tests/scanner/Regress-1.0-expected.json/Regress.TestBoxed.json new file mode 100644 index 00000000..f47f9b42 --- /dev/null +++ b/tests/scanner/Regress-1.0-expected.json/Regress.TestBoxed.json @@ -0,0 +1,123 @@ +{ + "constructors": [ + { + "doc": "", + "kind": "constructor", + "name": "new", + "parameters": [], + "retval": { + "type": "RegressTestBoxed*" + } + }, + { + "doc": "", + "kind": "constructor", + "name": "new_alternative_constructor1", + "parameters": [ + { + "allow_none": false, + "argname": "i", + "direction": "in", + "type": "int" + } + ], + "retval": { + "type": "RegressTestBoxed*" + } + }, + { + "doc": "", + "kind": "constructor", + "name": "new_alternative_constructor2", + "parameters": [ + { + "allow_none": false, + "argname": "i", + "direction": "in", + "type": "int" + }, + { + "allow_none": false, + "argname": "j", + "direction": "in", + "type": "int" + } + ], + "retval": { + "type": "RegressTestBoxed*" + } + }, + { + "doc": "", + "kind": "constructor", + "name": "new_alternative_constructor3", + "parameters": [ + { + "allow_none": false, + "argname": "s", + "direction": "in", + "type": "char*" + } + ], + "retval": { + "type": "RegressTestBoxed*" + } + } + ], + "doc": "", + "fields": [ + { + "doc": "", + "kind": "field", + "name": "some_int8" + }, + { + "doc": "", + "kind": "field", + "name": "nested_a" + }, + { + "doc": "", + "kind": "field", + "name": "priv" + } + ], + "kind": "class", + "methods": [ + { + "doc": "", + "kind": "method", + "name": "_not_a_method", + "parameters": [], + "retval": { + "type": "void" + } + }, + { + "doc": "", + "kind": "method", + "name": "copy", + "parameters": [], + "retval": { + "type": "RegressTestBoxed*" + } + }, + { + "doc": "", + "kind": "method", + "name": "equals", + "parameters": [ + { + "allow_none": false, + "argname": "other", + "direction": "in", + "type": "RegressTestBoxed*" + } + ], + "retval": { + "type": "gboolean" + } + } + ], + "name": "TestBoxed" +} \ No newline at end of file -- cgit v1.2.1