From f4afc04ee7a085a89ad84ba89344bb50ca9e6e04 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 21 Jun 2015 12:27:48 +0200 Subject: o Trying to make the Bluetooth API more C++ idiomatic, a GATT connection has the same lifecycle as a BluetoothGatt. sm-get-value: o Better error handling. --- apps/generate.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'apps/generate.cpp') diff --git a/apps/generate.cpp b/apps/generate.cpp index ca6f8de..9dcc271 100644 --- a/apps/generate.cpp +++ b/apps/generate.cpp @@ -46,7 +46,10 @@ int main(int argc, char *argv[]) { bool first = true; - out << "template" << endl + out << "namespace trygvis {" << endl + << "namespace apps {" << endl + << endl + << "template" << endl << "int launch_app(int argc, const char *argv[]);" << endl << endl; @@ -67,6 +70,9 @@ int main(int argc, char *argv[]) { out << " } else {" << endl << " return EXIT_FAILURE;" << endl << " }" << endl + << "}" << endl + << endl + << "}" << endl << "}" << endl; return EXIT_SUCCESS; -- cgit v1.2.3