mavit;427770 Wrote: 
> I feel some bitwise "|" coming on.
Ahhhhhh...I'm hesitant to go down that road.  Even though the possible
SrvrPowerCtrl actions are set in stone now, will they always be that way
in the future?  I can easily imagine someone extending SrvrPowerCtrl by
making it xml aware and turning it into a more generic RunScript like
plugin.  Under that scenario, someing like:


Code:
--------------------
    
  my $blockActions = ACTION_SHUTDOWN | ACTION_SUSPEND;
  
  $client->execute(["srvrpowerctrl", "setblock", $blockMessage, $blockCaller, 
$blockActions]);
  
--------------------

..wouldn't have much meaning.  Who knows that the 0x00000001 action
would be in that case...it could be anything.

But, as that is almost purely idle speculation on my part...whereas you
have a real and immediate need, I'm willing to look at this.

If I was a better perl programmer and knew how to do the things I'm
used to doing in C with constants and header files, I'd be less
hesitant.


-- 
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=63636

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to