diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2016-04-26 12:09:05 +0200 |
---|---|---|
committer | Ed Warnicke <hagbard@gmail.com> | 2016-05-02 20:58:54 +0000 |
commit | d85036fd6bf25bb11a6f3fdfccf4425428834f28 (patch) | |
tree | 457505ac351630c88f60d33bddbf1d5789e34f46 /vpp-api/java/jvpp/gen/util.py | |
parent | c5e8681b320884f780508458ebff873761d5e04a (diff) |
HONEYCOMB-10: jVpp - the new java API. C code and jar file generation
Added comments generation for C and Java files.
Change-Id: Ifb670a5592eb871bfe68804f0a8d8f9b5b14f00a
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Signed-off-by: Ed Warnicke <eaw@cisco.com>
Diffstat (limited to 'vpp-api/java/jvpp/gen/util.py')
-rw-r--r-- | vpp-api/java/jvpp/gen/util.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vpp-api/java/jvpp/gen/util.py b/vpp-api/java/jvpp/gen/util.py index 17dc2ed90a9..f951bf828d1 100644 --- a/vpp-api/java/jvpp/gen/util.py +++ b/vpp-api/java/jvpp/gen/util.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import os +import os, pprint from os import removedirs @@ -171,3 +171,8 @@ def remove_suffix(camel_case_name_with_suffix, suffix): def is_control_ping(camel_case_name_with_suffix): return "controlping" in camel_case_name_with_suffix.lower() + +def api_message_to_javadoc(api_message): + """ Converts vpe.api message description to javadoc """ + str = pprint.pformat(api_message, indent=4, width=120, depth=None) + return " * " + str.replace("\n", "\n * ")
\ No newline at end of file |