1 /* Copyright (c) 2017 The Chromium OS Authors. All rights reserved. 2 * Use of this source code is governed by a BSD-style license that can be 3 * found in the LICENSE file. 4 * 5 * The hotword handler is used to send a DBus signal when a hotword device is 6 * triggered. 7 * 8 * cras_hotword_send_triggered_msg() is called from audio thread to send a 9 * hotword message to main thread which in turn sends the DBus signal. 10 * 11 * cras_hotword_handler_init() is used to setup message handler in main thread 12 * to handle the hotword message from audio thread. 13 */ 14 15 #ifndef CRAS_HOTWORD_HANDLER_H_ 16 #define CRAS_HOTWORD_HANDLER_H_ 17 18 /* Send hotword triggered message. */ 19 int cras_hotword_send_triggered_msg(); 20 21 /* Initialize hotword handler. */ 22 int cras_hotword_handler_init(); 23 24 #endif /* CRAS_HOTWORD_HANDLER_H_ */ 25