From e3f0e5b01ca13080a6b89d6f3c7da16e70782230 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 19 Mar 2010 22:35:19 +0100 Subject: [PATCH] Add new constants --- lib/AnyEvent/I3.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/AnyEvent/I3.pm b/lib/AnyEvent/I3.pm index d2fae1c7..9c8cbbdc 100644 --- a/lib/AnyEvent/I3.pm +++ b/lib/AnyEvent/I3.pm @@ -59,9 +59,10 @@ our @EXPORT = qw(i3); use constant TYPE_COMMAND => 0; use constant TYPE_GET_WORKSPACES => 1; use constant TYPE_SUBSCRIBE => 2; +use constant TYPE_GET_OUTPUTS => 3; our %EXPORT_TAGS = ( 'all' => [ - qw(TYPE_COMMAND TYPE_GET_WORKSPACES TYPE_SUBSCRIBE) + qw(i3 TYPE_COMMAND TYPE_GET_WORKSPACES TYPE_SUBSCRIBE TYPE_GET_OUTPUTS) ] ); our @EXPORT_OK = ( @{ $EXPORT_TAGS{all} } ); @@ -72,6 +73,7 @@ my $magic = "i3-ipc"; my $event_mask = (1 << 31); my %events = ( workspace => ($event_mask | 0), + output => ($event_mask | 1), ); sub _bytelength { -- 2.39.5