From 12fe34c5e33ea7e651c4a83e0f43911f7ddd5ef2 Mon Sep 17 00:00:00 2001 From: void <> Date: Fri, 6 Dec 2024 11:26:18 +0000 Subject: [PATCH] (net) switch .index to .appl-index in order to use .index for private store This should only affect the communication between srv and worker, as there are protocol commands explicit for requesting the source/appl index of the directory. FossilOrigin-Name: 8201f5ee92a644ac09dabb3507d69220fadcb14dc7380bea7a4f1a2324cba15c --- src/a12/net/dir_srv.c | 2 +- src/a12/net/dir_srv_worker.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/a12/net/dir_srv.c b/src/a12/net/dir_srv.c index 751419791..0f9a874fe 100644 --- a/src/a12/net/dir_srv.c +++ b/src/a12/net/dir_srv.c @@ -134,7 +134,7 @@ static void dirlist_to_worker(struct dircl* C) .category = EVENT_TARGET, .tgt.kind = TARGET_COMMAND_BCHUNK_IN, .tgt.ioevs[1].iv = active_clients.dirlist_sz, - .tgt.message = ".index" + .tgt.message = ".appl-index" }, fd); close(fd); diff --git a/src/a12/net/dir_srv_worker.c b/src/a12/net/dir_srv_worker.c index 85d919bed..2938ad6eb 100644 --- a/src/a12/net/dir_srv_worker.c +++ b/src/a12/net/dir_srv_worker.c @@ -316,7 +316,7 @@ static void bchunk_event(struct a12_state *S, a12int_trace(A12_TRACE_DIRECTORY, "bchunk_in:%s", arcan_shmif_eventstr(ev, NULL, 0)); /* the index is packed as shmif argstrs line-separated */ - if (strcmp(ev->tgt.message, ".index") == 0){ + if (strcmp(ev->tgt.message, ".appl-index") == 0){ unpack_index(S, C, ev); } /* Only single channel handled for now, 1:1 source-sink connections. Multiple