aboutsummaryrefslogtreecommitdiff
path: root/src/sound.c
diff options
context:
space:
mode:
authorcharles kerr <charlesk@canonical.com>2016-01-01 12:34:41 -0600
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-08-28 10:17:14 +0200
commit4fc7a4e4d0346e1aad32057536301620e138bf30 (patch)
tree2c9b43f774ef21ab40fe7560f9c0c8016159e507 /src/sound.c
parentc5f9fe4e21d24581aad7bfd7b73fb060aaf440ff (diff)
downloadayatana-indicator-power-4fc7a4e4d0346e1aad32057536301620e138bf30.tar.gz
ayatana-indicator-power-4fc7a4e4d0346e1aad32057536301620e138bf30.tar.bz2
ayatana-indicator-power-4fc7a4e4d0346e1aad32057536301620e138bf30.zip
add logic to call sound_play_file() when the low battery notification is shown
Diffstat (limited to 'src/sound.c')
-rw-r--r--src/sound.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/sound.c b/src/sound.c
new file mode 100644
index 0000000..d92aee8
--- /dev/null
+++ b/src/sound.c
@@ -0,0 +1,29 @@
+/*
+ * Copyright 2015 Canonical Ltd.
+ *
+ * This program is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 3, as published
+ * by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranties of
+ * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Authors:
+ * Charles Kerr <charles.kerr@canonical.com>
+ */
+
+#include "sound.h"
+
+#include <gio/gio.h>
+
+void
+sound_play_file(const char* filename)
+{
+ g_message("playing sound '%s'", filename);
+}
+