diff options
author | Joel Bodenmann <joel@seriouslyembedded.com> | 2016-02-07 21:57:03 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@seriouslyembedded.com> | 2016-02-07 21:57:03 +0100 |
commit | 6b07b2af74b25f75e6006c13da4826568d0ea3c1 (patch) | |
tree | a802be9e3a7b2e3eaa47bdf4121c1b006a866c8c /src | |
parent | a1ab0a67ba1ce10394e83cc7057e629c4192d798 (diff) | |
download | uGFX-6b07b2af74b25f75e6006c13da4826568d0ea3c1.tar.gz uGFX-6b07b2af74b25f75e6006c13da4826568d0ea3c1.tar.bz2 uGFX-6b07b2af74b25f75e6006c13da4826568d0ea3c1.zip |
GTRANS module skeleton
Diffstat (limited to 'src')
-rw-r--r-- | src/gfx.c | 10 | ||||
-rw-r--r-- | src/gfx_mk.c | 1 | ||||
-rw-r--r-- | src/gtrans/gtrans.c | 20 | ||||
-rw-r--r-- | src/gtrans/gtrans.h | 39 | ||||
-rw-r--r-- | src/gtrans/gtrans.mk | 6 | ||||
-rw-r--r-- | src/gtrans/gtrans_mk.c | 8 | ||||
-rw-r--r-- | src/gtrans/gtrans_options.h | 21 | ||||
-rw-r--r-- | src/gtrans/gtrans_rules.h | 22 |
8 files changed, 127 insertions, 0 deletions
@@ -73,6 +73,10 @@ extern void _gosDeinit(void); extern void _gmiscInit(void); extern void _gmiscDeinit(void); #endif +#if GFX_USE_GTRANS + extern void _gtransInit(void); + extern void _gtransDeinit(void); +#endif void gfxInit(void) { @@ -96,6 +100,9 @@ void gfxInit(void) #if GFX_USE_GMISC _gmiscInit(); #endif + #if GFX_USE_GTRANS + _gtransInit(); + #endif #if GFX_USE_GEVENT _geventInit(); #endif @@ -159,6 +166,9 @@ void gfxDeinit(void) #if GFX_USE_GEVENT _geventDeinit(); #endif + #if GFX_USE_GTRANS + _gtransDeinit(); + #endif #if GFX_USE_GMISC _gmiscDeinit(); #endif diff --git a/src/gfx_mk.c b/src/gfx_mk.c index 34e6afd8..625ba680 100644 --- a/src/gfx_mk.c +++ b/src/gfx_mk.c @@ -18,3 +18,4 @@ #include "gaudio/gaudio_mk.c" #include "gmisc/gmisc_mk.c" #include "gfile/gfile_mk.c" +#include "gtrans/gtrans_mk.c" diff --git a/src/gtrans/gtrans.c b/src/gtrans/gtrans.c new file mode 100644 index 00000000..7e1105d6 --- /dev/null +++ b/src/gtrans/gtrans.c @@ -0,0 +1,20 @@ +/* + * This file is subject to the terms of the GFX License. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://ugfx.org/license.html + */ + +#include "../../gfx.h" + +#if GFX_USE_GTRANS + +void _gtransInit(void) +{ +} + +void _gtransDeinit(void) +{ +} + +#endif /* GFX_USE_GTRANS */ diff --git a/src/gtrans/gtrans.h b/src/gtrans/gtrans.h new file mode 100644 index 00000000..c46b5b28 --- /dev/null +++ b/src/gtrans/gtrans.h @@ -0,0 +1,39 @@ +/* + * This file is subject to the terms of the GFX License. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://ugfx.org/license.html + */ + +/** + * @file src/gtrans/gtrans.h + * + * @addtogroup GTRANS + * + * @brief Module to allow changing the language of an application dynamically during run-time. + * + * @{ + */ + +#ifndef _TRANS_H +#define _TRANS_H + +#include "../../gfx.h" + +#if GFX_USE_GTRANS || defined(__DOXYGEN__) + +#ifdef __cplusplus +extern "C" { +#endif + + + +#ifdef __cplusplus +} +#endif + +#endif /* GFX_USE_GTRANS */ + +#endif /* _TRANS_H */ +/** @} */ + diff --git a/src/gtrans/gtrans.mk b/src/gtrans/gtrans.mk new file mode 100644 index 00000000..e2f474f3 --- /dev/null +++ b/src/gtrans/gtrans.mk @@ -0,0 +1,6 @@ +# This file is subject to the terms of the GFX License. If a copy of +# the license was not distributed with this file, you can obtain one at: +# +# http://ugfx.org/license.html + +GFXSRC += $(GFXLIB)/src/gtrans/gtrans.c diff --git a/src/gtrans/gtrans_mk.c b/src/gtrans/gtrans_mk.c new file mode 100644 index 00000000..57557509 --- /dev/null +++ b/src/gtrans/gtrans_mk.c @@ -0,0 +1,8 @@ +/* + * This file is subject to the terms of the GFX License. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://ugfx.org/license.html + */ + +#include "gtrans.c" diff --git a/src/gtrans/gtrans_options.h b/src/gtrans/gtrans_options.h new file mode 100644 index 00000000..04193f85 --- /dev/null +++ b/src/gtrans/gtrans_options.h @@ -0,0 +1,21 @@ +/* + * This file is subject to the terms of the GFX License. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://ugfx.org/license.html + */ + +/** + * @file src/gtrans/gtrans_options.h + * + * @addtogroup GTRANS + * @{ + */ + +#ifndef _GTRANS_OPTIONS_H +#define _GTRANS_OPTIONS_H + + + +#endif /* _GTRANS_OPTIONS_H */ +/** @} */ diff --git a/src/gtrans/gtrans_rules.h b/src/gtrans/gtrans_rules.h new file mode 100644 index 00000000..e5d383ce --- /dev/null +++ b/src/gtrans/gtrans_rules.h @@ -0,0 +1,22 @@ +/* + * This file is subject to the terms of the GFX License. If a copy of + * the license was not distributed with this file, you can obtain one at: + * + * http://ugfx.org/license.html + */ + +/** + * @file src/gtrans/gtrans_rules.h + * + * @addtogroup GTRANS + * @{ + */ + +#ifndef _GTRANS_RULES_H +#define _GTRANS_RULES_H + +#if GFX_USE_GTRANS +#endif + +#endif /* _GTRANS_RULES_H */ +/** @} */ |