summaryrefslogtreecommitdiff
path: root/pjlib-util/include/pjlib-util/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib-util/include/pjlib-util/config.h')
-rw-r--r--pjlib-util/include/pjlib-util/config.h100
1 files changed, 100 insertions, 0 deletions
diff --git a/pjlib-util/include/pjlib-util/config.h b/pjlib-util/include/pjlib-util/config.h
index ff3c4e6d..19821c0b 100644
--- a/pjlib-util/include/pjlib-util/config.h
+++ b/pjlib-util/include/pjlib-util/config.h
@@ -266,6 +266,106 @@
# define PJ_HTTP_DEFAULT_TIMEOUT (60000)
#endif
+/* **************************************************************************
+ * CLI configuration
+ */
+
+/**
+ * Initial pool size for CLI.
+ * Default: 1024 bytes
+ */
+#ifndef PJ_CLI_POOL_SIZE
+# define PJ_CLI_POOL_SIZE 1024
+#endif
+
+/**
+ * Pool increment size for CLI.
+ * Default: 512 bytes
+ */
+#ifndef PJ_CLI_POOL_INC
+# define PJ_CLI_POOL_INC 512
+#endif
+
+/**
+ * Maximum length of command buffer.
+ * Default: 120
+ */
+#ifndef PJ_CLI_MAX_CMDBUF
+# define PJ_CLI_MAX_CMDBUF 120
+#endif
+
+/**
+ * Maximum command arguments.
+ * Default: 8
+ */
+#ifndef PJ_CLI_MAX_ARGS
+# define PJ_CLI_MAX_ARGS 8
+#endif
+
+/**
+ * Maximum number of hints.
+ * Default: 32
+ */
+#ifndef PJ_CLI_MAX_HINTS
+# define PJ_CLI_MAX_HINTS 32
+#endif
+
+/**
+ * Maximum short name version (shortcuts) for a command.
+ * Default: 4
+ */
+#ifndef PJ_CLI_MAX_SHORTCUTS
+# define PJ_CLI_MAX_SHORTCUTS 4
+#endif
+
+/**
+ * Initial pool size for console CLI.
+ * Default: 256 bytes
+ */
+#ifndef PJ_CLI_CONSOLE_POOL_SIZE
+# define PJ_CLI_CONSOLE_POOL_SIZE 256
+#endif
+
+/**
+ * Pool increment size for console CLI.
+ * Default: 256 bytes
+ */
+#ifndef PJ_CLI_CONSOLE_POOL_INC
+# define PJ_CLI_CONSOLE_POOL_INC 256
+#endif
+
+/**
+ * Initial pool size for telnet CLI.
+ * Default: 1024 bytes
+ */
+#ifndef PJ_CLI_TELNET_POOL_SIZE
+# define PJ_CLI_TELNET_POOL_SIZE 1024
+#endif
+
+/**
+ * Pool increment size for telnet CLI.
+ * Default: 512 bytes
+ */
+#ifndef PJ_CLI_TELNET_POOL_INC
+# define PJ_CLI_TELNET_POOL_INC 512
+#endif
+
+/**
+ * Maximum number of argument values of choice type.
+ * Default: 16
+ */
+#ifndef PJ_CLI_MAX_CHOICE_VAL
+# define PJ_CLI_MAX_CHOICE_VAL 16
+#endif
+
+/**
+ * Maximum number of command history.
+ * Default: 16
+ */
+#ifndef PJ_CLI_MAX_CMD_HISTORY
+# define PJ_CLI_MAX_CMD_HISTORY 16
+#endif
+
/**
* @}
*/