diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-04-12 15:02:00 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-04-12 15:22:10 +0300 |
commit | 3f4a63c9dda93fe95f44a51f28c89057343a8369 (patch) | |
tree | 6d221f75bd2c83050ae5cc515029545443db45da /touch | |
parent | 38a3e82938de1b82fadd47d3d53d530f04db6891 (diff) |
Add new <touch/touch.h> header
Change-Id: I25016b17356e0b3732f324f4edb748660cd110fd
Diffstat (limited to 'touch')
-rw-r--r-- | touch/Package_inc.mk | 1 | ||||
-rw-r--r-- | touch/inc/touch/touch.h | 37 |
2 files changed, 38 insertions, 0 deletions
diff --git a/touch/Package_inc.mk b/touch/Package_inc.mk index c7c393d4819a..d55ab5d0a289 100644 --- a/touch/Package_inc.mk +++ b/touch/Package_inc.mk @@ -8,6 +8,7 @@ $(eval $(call gb_Package_Package,touch_inc,$(SRCDIR)/touch/inc)) +$(eval $(call gb_Package_add_file,touch_inc,inc/touch/touch.h,touch/touch.h)) $(eval $(call gb_Package_add_file,touch_inc,inc/touch/libotouch.hxx,touch/libotouch.hxx)) # vim: set noet sw=4 ts=4: diff --git a/touch/inc/touch/touch.h b/touch/inc/touch/touch.h new file mode 100644 index 000000000000..87fe9854d6d2 --- /dev/null +++ b/touch/inc/touch/touch.h @@ -0,0 +1,37 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Copyright 2013 LibreOffice contributors. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_TOUCH_TOUCH_H +#define INCLUDED_TOUCH_TOUCH_H + +#include <config_features.h> + +#if !HAVE_FEATURE_DESKTOP + +// Functions to be implemented by the upper/medium layers on +// non-desktop touch-based platforms, with the same API on each such +// platform. Note that these are just declared here in this header in +// the "touch" module, the per-platform implementations are elsewhere. + +#ifdef __cplusplus +extern "C" { +#endif + +void lo_show_keyboard(); +void lo_hide_keyboard(); + +#ifdef __cplusplus +} +#endif + +#endif // HAVE_FEATURE_DESKTOP + +#endif // INCLUDED_TOUCH_TOUCH_H + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |