}
static void
+_tdm_monitor_server_protocol_trace(unsigned int pid, char *cwd, int argc, char *argv[], char *reply, int *len, tdm_display *dpy)
+{
+ int enable;
+
+ if (argc < 3) {
+ _tdm_monitor_server_usage(argv[0], reply, len);
+ return;
+ }
+
+ enable = atoi(argv[2]);
+
+ tdm_event_loop_trace_enable(dpy, enable);
+
+ TDM_SNPRINTF(reply, len, "protocol trace: '%s'\n", (enable) ? "enabled" : "disabled");
+}
+
+static void
_tdm_monitor_server_dpms(unsigned int pid, char *cwd, int argc, char *argv[], char *reply, int *len, tdm_display *dpy)
{
tdm_output *output;
"show tdm output, layer information", NULL, NULL
},
{
+ "trace", _tdm_monitor_server_protocol_trace,
+ "enable/disable the wl protocol",
+ "<enable>",
+ "0 or 1"
+ },
+ {
"dpms", _tdm_monitor_server_dpms,
"set output dpms", "<output_idx>:<dpms>", "0:3 or 0:0"
},