Workaround type ambiguity w/ default record field.

This commit is contained in:
Jon Siwek 2013-09-05 16:41:51 -05:00
parent aed9943c95
commit a9a245e017

View file

@ -41,6 +41,8 @@ export {
ACTION_ALARM, ACTION_ALARM,
}; };
type ActionSet: set[Notice::Action];
## The notice framework is able to do automatic notice supression by ## The notice framework is able to do automatic notice supression by
## utilizing the $identifier field in :bro:type:`Notice::Info` records. ## utilizing the $identifier field in :bro:type:`Notice::Info` records.
## Set this to "0secs" to completely disable automated notice suppression. ## Set this to "0secs" to completely disable automated notice suppression.
@ -113,7 +115,7 @@ export {
peer_descr: string &log &optional; peer_descr: string &log &optional;
## The actions which have been applied to this notice. ## The actions which have been applied to this notice.
actions: set[Notice::Action] &log &default=set(); actions: ActionSet &log &default=ActionSet();
## By adding chunks of text into this element, other scripts can ## By adding chunks of text into this element, other scripts can
## expand on notices that are being emailed. The normal way to add text ## expand on notices that are being emailed. The normal way to add text