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

git pushed a commit to branch master
in repository evisum.

View the commit online.

commit 50d2614fe9fa284882827b11bfe2463dffece1f7
Author: Carsten Haitzler (Rasterman) <[email protected]>
AuthorDate: Sat Mar 28 15:49:31 2026 +0000

    move to enums for major/minor ipc messages
---
 src/bin/evisum_server.c | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/bin/evisum_server.c b/src/bin/evisum_server.c
index 71dc72d..08ab80f 100644
--- a/src/bin/evisum_server.c
+++ b/src/bin/evisum_server.c
@@ -12,6 +12,15 @@
 #define LISTEN_SOCKET_NAME "evisum_server"
 #define WANTED             "bonjour monde"
 
+typedef enum {
+  EVISUM_MSG_CORE // core message domain - can add more
+} Evisum_Msg_Major;
+
+enum {
+  EVISUM_MSG_HELLO, // hello from client to server
+  EVISUM_MSG_HELLO_REPLY, // hello reply from server to client
+} Evisum_Msg_Minor;
+
 typedef struct _Evisum_Server {
     Ecore_Event_Handler *handler;
     Ecore_Ipc_Server *srv;
@@ -36,7 +45,7 @@ _evisum_server_server_client_data_cb(void *data EINA_UNUSED, int type EINA_UNUSE
 
       evisum_ui_activate(ui, hello->action, hello->pid);
       ecore_ipc_client_send(ev->client,
-                            0, 1, // <- major=0, minor=1 == response to hello
+                            EVISUM_MSG_CORE, EVISUM_MSG_HELLO_REPLY,
                             0, 0, 0, // ref, ref_to, response <- not used
                             WANTED, strlen(WANTED) + 1);
       // yes data can just be a string, but guaranteedd to be all there on
@@ -126,7 +135,7 @@ _evisum_server_client_connect_cb(void *data, int type EINA_UNUSED, void *event E
     hello.action = ""
     hello.pid = client->pid;
     ecore_ipc_server_send(srv,
-                          0, 0, // major, minor <- opcodes, 0, 0 == hello
+                          EVISUM_MSG_CORE, EVISUM_MSG_HELLO,
                           0, 0, 0, // ref, ref_to, response <- not used
                           &hello, sizeof(hello));
 

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

Reply via email to