Skip to content
Commit 8df6120b authored by Jakub Janků's avatar Jakub Janků Committed by Victor Toso
Browse files

vdagentd: parse argv using GLib



All command line options now have long names
as they are required by GLib.

So the supported command line options now are:

    -h, --help

    -d, --debug
    -s, --virtio-serial-port-path
    -S, --vdagentd-socket
    -u, --uinput-device
    -f, --fake-uinput
    -x, --foreground
    -o, --one-session
    -X, --disable-session-integration

Change the types of some global variables that hold the options:
- const char * --> gchar *
- int          --> gboolean

Define DEFAULT_UINPUT_DEVICE as "/dev/uinput",
since there's already DEFAULT_VIRTIO_PORT_PATH, VDAGENTD_SOCKET.

Signed-off-by: default avatarJakub Janků <jjanku@redhat.com>
Acked-by: default avatarVictor Toso <victortoso@redhat.com>
parent 16e3dc10
Loading
Loading
Loading
Pipeline #4501 passed with stage
in 6 minutes and 1 second
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment