Michael Vetter
2f6a1c4c23
Dont include ctrl-server.h in client file
...
Seems to be a copy/paste mistake.
I don't see that any of the definitions of that header are used in
`ctl-client.c`.
Fix https://github.com/any1/wayvnc/issues/232
2023-01-27 21:49:57 +00:00
Jim Ramsay
fd652e7a23
Fix all non-parameterized IPCs
...
Reverts part of 0b970ba3
which disabled all IPCs that don't take
parameters.
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-26 22:53:08 -05:00
Jim Ramsay
8d5df2f0d5
Add build status badges to README
...
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-25 06:03:50 -05:00
Andri Yngvason
4b5812a607
Add sr.ht build manifest
2023-01-25 09:31:42 +00:00
Andri Yngvason
e710d47f2e
ctl-client: Use EAGAIN instead of ENODATA
...
The latter is obsolete in POSIX.1-2008.
2023-01-23 22:26:38 +00:00
Andri Yngvason
b1c1ade90d
Release v0.6.0
2023-01-22 13:12:13 +00:00
Andri Yngvason
1e9b531ad9
meson: Require specific versions of aml and neatvnc
2023-01-22 13:11:08 +00:00
Andri Yngvason
267a4e55e3
ctl-commands: Use slightly more helpful schemas
2023-01-17 20:05:17 +00:00
Andri Yngvason
5bf6f23eed
ctl-client: Replace = with : in event description
...
Let's not abuse the equality sign more than necessary. ;)
2023-01-17 20:05:17 +00:00
Andri Yngvason
b54b0a31f7
ctl-commands: Fix typo
2023-01-17 20:05:17 +00:00
Andri Yngvason
6fccedcf41
ctl-commands: Capitalise "VNC"
2023-01-17 20:05:17 +00:00
Andri Yngvason
f49aea40a4
ctl-server: Improve error messages for missing arguments
2023-01-17 20:05:17 +00:00
Andri Yngvason
0b970ba355
ctl-server: Fix segfault in error path
...
This would segfault e.g. if issuing:
$ waynvcctl client-disconnect # without argument
2023-01-17 20:05:17 +00:00
Andri Yngvason
6e326af2ff
ctl-client: Print trailing newline for events
...
If someone wants to parse this instead of using jq, a trailing
newline delimits the end of the event.
2023-01-17 20:05:17 +00:00
Andri Yngvason
aa96103ae8
ctl-client: Don't print "<<null>" for events with no params
...
It's inconsistent and doesn't seem helpful either.
2023-01-17 20:05:17 +00:00
Andri Yngvason
5d1421a063
ctl-client: Remove decorations in client/output lists
...
Those decorations do not appear to improve readability or
parsability.
2023-01-17 20:05:17 +00:00
Andri Yngvason
d8bc5cd328
ctl-client: Remove messages about how many clients/outputs there are
...
When you type "ls", it doesn't tell you how many files there are.
If the user wants to know that, they can use "wc -l" or count them.
2023-01-17 20:05:17 +00:00
Andri Yngvason
bbea931f8c
ctl-client: Rename print_as_yaml -> print_for_human
...
The goal is to have this human friendly, not yaml.
2023-01-17 20:05:17 +00:00
Andri Yngvason
0fc43ef757
ctl-client: Use more descriptive response error message
2023-01-17 20:05:17 +00:00
Andri Yngvason
baea2e8f4c
ctl-client: Add a few vertical spaces + style changes
...
This change is intended to make things easier to read for myself.
2023-01-17 20:05:17 +00:00
Andri Yngvason
889f5900cc
ctl-client: Rename WARNING log level to ERROR
...
All of these are basically errors.
A warning is often a recoverable event, an error isn't.
2023-01-17 20:05:17 +00:00
Andri Yngvason
98db05434a
ctl-client: Align log messages with other log messages
2023-01-17 20:05:17 +00:00
Andri Yngvason
cec46490a9
main: Don't init render node with gpu disabled
...
Otherwise, a warning will be generated when there is no render node.
2023-01-15 23:02:53 +00:00
Jim Ramsay
749b64666a
Clean up command summary printing
...
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-12 17:47:50 -05:00
Jim Ramsay
cc27b127d1
Autoprint option default values
...
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-12 17:47:50 -05:00
Jim Ramsay
177ea507e3
Allow reflow of multiline text
...
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-12 17:47:50 -05:00
Jim Ramsay
104040291b
Add option_parser_print_usage
...
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-12 17:47:50 -05:00
Jim Ramsay
dcb23ebfe1
Add 'schema' to wayvncctl command parameters
...
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-12 17:47:50 -05:00
Jim Ramsay
a52b7a1985
Add description and argument help to wayvnc --help
...
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-12 17:47:50 -05:00
Jim Ramsay
405e9a13df
Add help output for wayvncctl positional arguments
...
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-12 17:47:50 -05:00
Jim Ramsay
23527a095a
Allow positional args for single-param commands
...
Less typing = more happy
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-12 17:47:50 -05:00
Jim Ramsay
e5ab6a3134
CI: Run apt-get update before install
...
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-12 16:20:43 -05:00
Jim Ramsay
a28ce15521
Split wayvnctl output-set into output-set and output-cycle
...
Rather than optional params, unique commands are easier to use.
This also removes the ability to cycle through in reverse since the list
order is already arbitrary.
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-08 18:23:45 -05:00
Jim Ramsay
8df085a65a
Rename and reorder all wayvncctl commands
...
This introduces a better hierarchical naming convention for IPC
commands.
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-08 13:51:10 -05:00
Jim Ramsay
dd19da6143
Add command and event details to help output
...
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-08 12:42:38 -05:00
Jim Ramsay
d1e1f62d1e
Refactor option-parser table printing code for reuse
...
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-08 12:42:38 -05:00
Jim Ramsay
aec9304885
Add help text for wayvncctl-only events
...
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-08 12:42:38 -05:00
Jim Ramsay
fbd373143c
Remove 'help' command and clean up help output
...
The redundant "help" command is now hidden from the wayvncctl UI.
This also moves event description help text to:
wayvncctl event-receive --show=<event-name>
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-08 12:42:38 -05:00
Jim Ramsay
d475e0e52f
Fix segfault for wayvncctl help --command=bad-name
...
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-02 20:18:14 -05:00
Jim Ramsay
522b1deb28
Convert wayvncctl subcommands to use option-parser
...
Also cleans up access to unparsed options.
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-02 16:38:46 -05:00
Jim Ramsay
e0a4a26c42
Cleanup CI reporting and step names
...
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-02 11:27:22 -05:00
Jim Ramsay
14615ae3b0
Enable unit tests by default
...
Also documents how to run the tests.
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-02 07:47:47 -05:00
Jim Ramsay
7c8c52dfb2
Run github CI on a ci-test branch too
...
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-02 07:09:54 -05:00
Jim Ramsay
4b126da54c
Add unit tests to github CI
...
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2023-01-02 07:05:52 -05:00
Andri Yngvason
65ed029e22
Add meson.build for unit tests
2023-01-02 09:32:15 +00:00
Andri Yngvason
474ce23d42
Implement custom option parser
2023-01-01 09:12:29 +00:00
Jim Ramsay
86652c8a42
Fixup buffer.c compiler warning
...
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2022-12-29 05:50:44 -05:00
Jim Ramsay
92e79bb971
Add more error logs for wayland init failures
...
This should help with troubleshooting issues like #206 more quickly.
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2022-12-29 01:25:00 -05:00
Jim Ramsay
72cc04098d
Add single-output-sway helper script
...
For sway 1.7, this disables all but one output on connect, then restores
everything on disconnect.
For sway 1.8 and later, creates a virtual HEADLESS output, disables all
others, then restores everything on disconnect.
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2022-12-25 21:43:55 -05:00
Jim Ramsay
2f2f6f410b
Force a wayland round-trip after an output appears
...
This way outputs are always fully initialized.
Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
2022-12-25 21:31:49 -05:00