def register(name, func=None):
def decorator(func):<EOL><INDENT>ControlDaemon._register(name, func)<EOL>return func<EOL><DEDENT>if func:<EOL><INDENT>return decorator(func)<EOL><DEDENT>else:<EOL><INDENT>return decorator<EOL><DEDENT>
Function or decorator which registers a given function as a
recognized control command.