aboutsummaryrefslogtreecommitdiffstats
path: root/src/jo_notify.cpp
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-12-04 00:02:42 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-12-04 00:02:42 +0100
commit3b994f54899e526fa9e86121ce9efb6ca299d629 (patch)
treec2b69c1cdec49b081e3c2b390ec3366e8e9c8661 /src/jo_notify.cpp
parentBetter include (diff)
downloadlowbat-gnu-3b994f54899e526fa9e86121ce9efb6ca299d629.tar.gz
lowbat-gnu-3b994f54899e526fa9e86121ce9efb6ca299d629.tar.bz2
lowbat-gnu-3b994f54899e526fa9e86121ce9efb6ca299d629.tar.xz
lowbat-gnu-3b994f54899e526fa9e86121ce9efb6ca299d629.tar.zst
lowbat-gnu-3b994f54899e526fa9e86121ce9efb6ca299d629.zip
.gitignore C++ update, doing some debug
Diffstat (limited to 'src/jo_notify.cpp')
-rw-r--r--src/jo_notify.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jo_notify.cpp b/src/jo_notify.cpp
index 1683871..bd14db0 100644
--- a/src/jo_notify.cpp
+++ b/src/jo_notify.cpp
@@ -1,6 +1,6 @@
#include <jo_lowbat.hpp>
-void
+int
jo_notify(const string batlvl) {
string str = nullptr;
const char *cmd = nullptr;
@@ -10,10 +10,10 @@ jo_notify(const string batlvl) {
str += "%\" \"Please plug in computer\" -u critical -t 15000";
cmd = str.c_str();
- system(cmd);
+ return system(cmd);
}
-void
+int
jo_speak(const string msg) {
string str = nullptr;
const char *cmd = nullptr;
@@ -22,5 +22,5 @@ jo_speak(const string msg) {
str += msg;
str += "\" | espeak";
cmd = str.c_str();
- system(cmd);
+ return system(cmd);
}