File: fbd-dev-sound.h

package info (click to toggle)
feedbackd 0.8.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,076 kB
  • sloc: ansic: 7,956; xml: 97; makefile: 31; sh: 27; python: 8
file content (26 lines) | stat: -rw-r--r-- 698 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright (C) 2020 Purism SPC
 *
 * SPDX-License-Identifier: GPL-3.0+
 */
#pragma once

#include <glib-object.h>

#include "fbd-feedback-sound.h"

G_BEGIN_DECLS

#define FBD_TYPE_DEV_SOUND (fbd_dev_sound_get_type())

G_DECLARE_FINAL_TYPE (FbdDevSound, fbd_dev_sound, FBD, DEV_SOUND, GObject);

typedef void (*FbdDevSoundPlayedCallback)(FbdFeedbackSound *feedback);

FbdDevSound *fbd_dev_sound_new (GError **error);
gboolean     fbd_dev_sound_play (FbdDevSound *self,
                                 FbdFeedbackSound *feedback,
                                 FbdDevSoundPlayedCallback callback);
gboolean     fbd_dev_sound_stop (FbdDevSound *self, FbdFeedbackSound *feedback);

G_END_DECLS