aboutsummaryrefslogtreecommitdiff
path: root/apps/generate.cpp
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-06-21 12:27:48 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2015-06-21 12:27:48 +0200
commitf4afc04ee7a085a89ad84ba89344bb50ca9e6e04 (patch)
tree404058c5ffd4773dfe13ddcd7a1cafc39864ae21 /apps/generate.cpp
parent7e2fb834d8ba2eb3fd6453f135d3e8ef30c852c6 (diff)
downloadble-toys-f4afc04ee7a085a89ad84ba89344bb50ca9e6e04.tar.gz
ble-toys-f4afc04ee7a085a89ad84ba89344bb50ca9e6e04.tar.bz2
ble-toys-f4afc04ee7a085a89ad84ba89344bb50ca9e6e04.tar.xz
ble-toys-f4afc04ee7a085a89ad84ba89344bb50ca9e6e04.zip
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.
Diffstat (limited to 'apps/generate.cpp')
-rw-r--r--apps/generate.cpp8
1 files changed, 7 insertions, 1 deletions
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<typename App>" << endl
+ out << "namespace trygvis {" << endl
+ << "namespace apps {" << endl
+ << endl
+ << "template<typename App>" << 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;