aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gfx.c10
-rw-r--r--src/gfx_mk.c1
-rw-r--r--src/gtrans/gtrans.c20
-rw-r--r--src/gtrans/gtrans.h39
-rw-r--r--src/gtrans/gtrans.mk6
-rw-r--r--src/gtrans/gtrans_mk.c8
-rw-r--r--src/gtrans/gtrans_options.h21
-rw-r--r--src/gtrans/gtrans_rules.h22
8 files changed, 127 insertions, 0 deletions
diff --git a/src/gfx.c b/src/gfx.c
index 34526e6b..ba7a581e 100644
--- a/src/gfx.c
+++ b/src/gfx.c
@@ -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 */
+/** @} */