From a5692c08ea1e0bbb1a88560994404e3f3ca6c9b2 Mon Sep 17 00:00:00 2001 From: Stanislav Angelovic Date: Thu, 28 Mar 2019 19:15:48 +0100 Subject: [PATCH] Rename sdbus-c++ stub code generator to more consistent sdbus-c++-xml2cpp --- doc/using-sdbus-c++.md | 8 ++++---- stub-generator/CMakeLists.txt | 2 +- stub-generator/generator_utils.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/using-sdbus-c++.md b/doc/using-sdbus-c++.md index e7fecda..902987b 100644 --- a/doc/using-sdbus-c++.md +++ b/doc/using-sdbus-c++.md @@ -444,12 +444,12 @@ sdbus-c++ users shall prefer the convenience API to the lower level, basic API. Implementing the Concatenator example using sdbus-c++-generated stubs --------------------------------------------------------------------- -sdbus-c++ ships with the native stub generator tool called sdbuscpp-xml2cpp. The tool is very similar to dbusxx-xml2cpp tool that comes from dbus-c++ project. +sdbus-c++ ships with the native stub generator tool called `sdbus-c++-xml2cpp`. The tool is very similar to `dbusxx-xml2cpp` tool that comes from dbus-c++ project. The generator tool takes D-Bus XML IDL description of D-Bus interfaces on its input, and can be instructed to generate one or both of these: an adaptor header file for use at server side, and a proxy header file for use at client side. Like this: ```bash -sdbuscpp-xml2cpp database-bindings.xml --adaptor=database-server-glue.h --proxy=database-client-glue.h +sdbus-c++-xml2cpp database-bindings.xml --adaptor=database-server-glue.h --proxy=database-client-glue.h ``` The adaptor header file contains classes that can be used to implement described interfaces. The proxy header file contains classes that can be used to make calls to remote objects. @@ -483,7 +483,7 @@ There is specific class for each interface in the XML IDL file. The class is de ```cpp /* - * This file was automatically generated by sdbuscpp-xml2cpp; DO NOT EDIT! + * This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT! */ #ifndef __sdbuscpp__concatenator_server_glue_h__adaptor__H__ @@ -533,7 +533,7 @@ Analogously to the adaptor classes described above, there is specific class for ```cpp /* - * This file was automatically generated by sdbuscpp-xml2cpp; DO NOT EDIT! + * This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT! */ #ifndef __sdbuscpp__concatenator_client_glue_h__proxy__H__ diff --git a/stub-generator/CMakeLists.txt b/stub-generator/CMakeLists.txt index 5f53d0a..6c1f7f0 100644 --- a/stub-generator/CMakeLists.txt +++ b/stub-generator/CMakeLists.txt @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.5) -project(sdbuscpp-xml2cpp) +project(sdbus-c++-xml2cpp) include(GNUInstallDirs) diff --git a/stub-generator/generator_utils.h b/stub-generator/generator_utils.h index a27f51a..5b7b4ef 100644 --- a/stub-generator/generator_utils.h +++ b/stub-generator/generator_utils.h @@ -17,6 +17,6 @@ std::string signature_to_type(const std::string& signature); std::string underscorize(const std::string& str); -constexpr const char* getHeaderComment() noexcept { return "\n/*\n * This file was automatically generated by sdbuscpp-xml2cpp; DO NOT EDIT!\n */\n\n"; } +constexpr const char* getHeaderComment() noexcept { return "\n/*\n * This file was automatically generated by sdbus-c++-xml2cpp; DO NOT EDIT!\n */\n\n"; } #endif //__SDBUSCPP_TOOLS_GENERATOR_UTILS_H