Add separate utility module for controller and agent

We can figure out later whether & where to re-settle helper functions that end
up in there.
This commit is contained in:
Christian Kreibich 2021-11-29 11:37:00 -08:00
parent 6fcd99b4a0
commit a56ee6b9a6
3 changed files with 20 additions and 2 deletions

View file

@ -0,0 +1,17 @@
module ClusterController::Util;
export {
global set_to_vector: function(ss: set[string]): vector of string;
}
function set_to_vector(ss: set[string]): vector of string
{
local res: vector of string;
for ( s in ss )
res[|res|] = s;
sort(res, strcmp);
return res;
}