def METHOD_NAME(commands):
    print("typedef enum {")
    for command in commands:
        (name, opcode, format, params) = command
        print("    DAEMON_OPCODE_%s = HCI_OPCODE (%s, %s)," % (name.upper(), ogf, ocf))
    print("} daemon_opcode_t;")