Protocol
********

class pywayland.scanner.Protocol(name: str, copyright: Copyright | None, description: Description | None, interface: list[Interface])

   Protocol scanner object

   Main scanner object that acts on the input xml files to generate
   protocol files.

   Required attributes: *name*

   Child elements: *copyright?*, *description?*, and *interface+*

   Parameters:
      **input_file** -- Name of input XML file

   output(output_dir: str, all_imports: dict[str, str]) -> None

      Output the scanned files to the given directory

      Parameters:
         **output_dir** (*string*) -- Path of directory to output
         protocol files to
