diff options
Diffstat (limited to 'caps.go')
-rw-r--r-- | caps.go | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -0,0 +1,20 @@ +package main + +import ( + "strings" +) + +var global_cap_ls_response string +var global_cap_ls_302_response string + +// Register a new capability. +// This function is not reentrant and must not be called concurrently. +// It should only be used in the init() functions in source files. +func register_cap(name string, parameters string) { + global_cap_ls_response += name + " " + global_cap_ls_302_response += name + if parameters != "" { + global_cap_ls_302_response += "=" + parameters + } + global_cap_ls_302_response += " " +} |