Add clang-format

Refer:https://github.com/openbmc/docs/blob/ac5d544553934f8083c61c5986a1420261bc8a4c/style/cpp/.clang-format

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I931503febf4e17af5c328a6496e499992bc4e381
10 files changed
tree: 219d14d49683b403e10b2c287f1e0b3662b39ba6
  1. .clang-format
  2. create_usbhid.sh
  3. ikvm_args.cpp
  4. ikvm_args.hpp
  5. ikvm_input.cpp
  6. ikvm_input.hpp
  7. ikvm_manager.cpp
  8. ikvm_manager.hpp
  9. ikvm_server.cpp
  10. ikvm_server.hpp
  11. ikvm_video.cpp
  12. ikvm_video.hpp
  13. LICENSE
  14. MAINTAINERS
  15. meson.build
  16. obmc-ikvm.cpp
  17. OWNERS
  18. README.md
  19. scancodes.hpp
  20. start-ipkvm.service
README.md

OpenBMC IpKVM Server

The obmc-ikvm application is a VNC server that provides access to the host graphics output. The application interfaces with the video device on the BMC that captures the host graphics, and then serves that video data on the RFB (remote framebuffer, also known as VNC) protocol. The application also interfaces with the BMC USB gadget device to pass HID events from the BMC to the host, allowing the user to interact with the host system.

Usage

Once the host is running and an appropriate HID gadget device is instantiated on the BMC, the application can be started with the following command: obmc-ikvm -v <video device path> -i <HID gadget device path>

For example:

obmc-ikvm -v /dev/video0 -i /dev/hidg0