aboutsummaryrefslogtreecommitdiff
path: root/caps.go
blob: bd78a9d9111b939e89508fe7ac2fa67af4d06392 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 += " "
}