diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2015-05-29 16:24:45 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-05-29 16:25:33 +0200 |
commit | fb55b7a6ab48c4f782b16030e051029bcfa93e07 (patch) | |
tree | 040fcb62d80979d8ccbb590a9ba05d707602da3a | |
parent | 6bba08f35f1b457014cee3f88a8b55f11e0c2626 (diff) | |
download | bluez-fb55b7a6ab48c4f782b16030e051029bcfa93e07.tar.gz |
profiles/hog: Use no suspend support instead of the dummy FIFO
-rw-r--r-- | Makefile.plugins | 4 | ||||
-rw-r--r-- | profiles/input/suspend-none.c | 42 |
2 files changed, 45 insertions, 1 deletions
diff --git a/Makefile.plugins b/Makefile.plugins index 52b51c5c7..cae43d90f 100644 --- a/Makefile.plugins +++ b/Makefile.plugins @@ -60,7 +60,9 @@ builtin_sources += profiles/input/manager.c \ builtin_modules += hog builtin_sources += profiles/input/hog.c profiles/input/uhid_copy.h \ - profiles/input/suspend.h profiles/input/suspend-dummy.c + profiles/input/suspend.h profiles/input/suspend-none.c + +EXTRA_DIST += profiles/input/suspend-dummy.c if EXPERIMENTAL builtin_modules += health diff --git a/profiles/input/suspend-none.c b/profiles/input/suspend-none.c new file mode 100644 index 000000000..c619bb11e --- /dev/null +++ b/profiles/input/suspend-none.c @@ -0,0 +1,42 @@ +/* + * + * BlueZ - Bluetooth protocol stack for Linux + * + * Copyright (C) 2012 Nordic Semiconductor Inc. + * Copyright (C) 2012 Instituto Nokia de Tecnologia - INdT + * + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY 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, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include "src/log.h" +#include "suspend.h" + +int suspend_init(suspend_event suspend, resume_event resume) +{ + DBG(""); + + return 0; +} + +void suspend_exit(void) +{ + DBG(""); +} |