This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch v-1.29
in repository efl-mxd.

View the commit online.

commit 73376df1004fde89e01f397efa17d552ad1c6aea
Author: Valera <[email protected]>
AuthorDate: Sun Nov 22 06:33:15 2026 +0000

    Загрузить файлы в «src/lib/elput»
---
 src/lib/elput/elput.c | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 88 insertions(+)

diff --git a/src/lib/elput/elput.c b/src/lib/elput/elput.c
new file mode 100644
index 0000000000..6426e803e4
--- /dev/null
+++ b/src/lib/elput/elput.c
@@ -0,0 +1,88 @@
+#include "elput_private.h"
+
+/* local variables */
+static int _elput_init_count = 0;
+
+/* external variables */
+int _elput_log_dom = -1;
+
+EAPI int ELPUT_EVENT_SEAT_CAPS = 0;
+EAPI int ELPUT_EVENT_SEAT_FRAME = 0;
+EAPI int ELPUT_EVENT_KEYMAP_SEND = 0;
+EAPI int ELPUT_EVENT_MODIFIERS_SEND = 0;
+EAPI int ELPUT_EVENT_DEVICE_CHANGE = 0;
+EAPI int ELPUT_EVENT_SESSION_ACTIVE = 0;
+EAPI int ELPUT_EVENT_POINTER_MOTION = 0;
+EAPI int ELPUT_EVENT_SWITCH = 0;
+EAPI int ELPUT_EVENT_SWIPE_BEGIN = 0;
+EAPI int ELPUT_EVENT_SWIPE_UPDATE = 0;
+EAPI int ELPUT_EVENT_SWIPE_END = 0;
+
+EAPI int
+elput_init(void)
+{
+   if (++_elput_init_count != 1) return _elput_init_count;
+
+   if (!eina_init()) goto eina_err;
+   if (!ecore_init()) goto ecore_err;
+   if (!ecore_event_init()) goto ecore_event_err;
+   if (!eeze_init()) goto eeze_err;
+
+   _elput_log_dom = eina_log_domain_register("elput", ELPUT_DEFAULT_LOG_COLOR);
+   if (!_elput_log_dom)
+     {
+        EINA_LOG_ERR("Could not create logging domain for Elput");
+        goto log_err;
+     }
+
+   ELPUT_EVENT_SEAT_CAPS = ecore_event_type_new();
+   ELPUT_EVENT_SEAT_FRAME = ecore_event_type_new();
+   ELPUT_EVENT_KEYMAP_SEND = ecore_event_type_new();
+   ELPUT_EVENT_MODIFIERS_SEND = ecore_event_type_new();
+   ELPUT_EVENT_DEVICE_CHANGE = ecore_event_type_new();
+   ELPUT_EVENT_SESSION_ACTIVE = ecore_event_type_new();
+   ELPUT_EVENT_POINTER_MOTION = ecore_event_type_new();
+   ELPUT_EVENT_SWITCH = ecore_event_type_new();
+   ELPUT_EVENT_SWIPE_BEGIN = ecore_event_type_new();
+   ELPUT_EVENT_SWIPE_UPDATE = ecore_event_type_new();
+   ELPUT_EVENT_SWIPE_END = ecore_event_type_new();
+
+   return _elput_init_count;
+
+log_err:
+   eeze_shutdown();
+eeze_err:
+   ecore_event_shutdown();
+ecore_event_err:
+   ecore_shutdown();
+ecore_err:
+   eina_shutdown();
+eina_err:
+   return --_elput_init_count;
+}
+
+EAPI int
+elput_shutdown(void)
+{
+   if (_elput_init_count < 1) return 0;
+   if (--_elput_init_count != 0) return _elput_init_count;
+
+   ecore_event_type_flush(ELPUT_EVENT_SEAT_CAPS,
+                          ELPUT_EVENT_SEAT_FRAME,
+                          ELPUT_EVENT_KEYMAP_SEND,
+                          ELPUT_EVENT_MODIFIERS_SEND,
+                          ELPUT_EVENT_DEVICE_CHANGE,
+                          ELPUT_EVENT_SESSION_ACTIVE,
+                          ELPUT_EVENT_POINTER_MOTION,
+                          ELPUT_EVENT_SWITCH);
+
+   eina_log_domain_unregister(_elput_log_dom);
+   _elput_log_dom = -1;
+
+   eeze_shutdown();
+   ecore_event_shutdown();
+   ecore_shutdown();
+   eina_shutdown();
+
+   return _elput_init_count;
+}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to