aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJason Nader <jason.nader@protonmail.com>2021-10-25 13:28:32 +0900
committerSimon Ser <contact@emersion.fr>2021-10-25 10:18:40 +0200
commit9303bed4d4523d158b33c44f534a53b21d7688d6 (patch)
tree55965bc247a85cac9c240a1e5715a7a9f6c38ddb /include
parentb223f702500d7cda6336e948062d680f07f34f66 (diff)
downloadsway-9303bed4d4523d158b33c44f534a53b21d7688d6.tar.xz
refactor: use JSON_MAX_DEPTH everywhere
Diffstat (limited to 'include')
-rw-r--r--include/ipc-client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ipc-client.h b/include/ipc-client.h
index d3895023..9c5712d7 100644
--- a/include/ipc-client.h
+++ b/include/ipc-client.h
@@ -1,6 +1,9 @@
#ifndef _SWAY_IPC_CLIENT_H
#define _SWAY_IPC_CLIENT_H
+// arbitrary number, it's probably sufficient, higher number = more memory usage
+#define JSON_MAX_DEPTH 512
+
#include <stdbool.h>
#include <stdint.h>
#include <sys/time.h>