Commit Graph

26 Commits

Author SHA1 Message Date
5543cafc2c Change imports to conform with updated dependencies 2020-09-20 22:43:43 +02:00
401dd58e3f Update dependencies 2020-09-20 22:28:14 +02:00
3f47840318 Add basic dbus proxy logic 2020-09-20 14:16:29 +02:00
f99ee75f98 Fix #1 by using enums instead of traits
It very much reduces code and complexity.
2020-09-17 22:14:20 +02:00
ba5e5ece69 Add MinecraftService and change Interface trait
I found out I did a design mistake (#2)
2020-09-17 17:27:49 +02:00
e25cfe94d2 Add MinecraftService
...and change some other trait impl bits, too
2020-09-14 20:15:22 +02:00
4bcb78164d Add new error variants 2020-09-14 20:14:15 +02:00
bb9bfd3b62 Change functions to return an optional JoinHandle 2020-09-14 20:13:52 +02:00
f0066c8e76 Complete moving from dbus-crossroads to dbus::tree 2020-09-13 14:49:59 +02:00
a4bf221c92 Remove dbus-crossroads and code using it
That library didn't do it for me.
Adding async methods was a pain in the a** with lifetime and type bounds
confusing the heck out of me.
So I tried it with `dbus::tree` (in the next commits). It still was a
bit of work to get it working, but at least it **is** working.
2020-09-13 14:48:35 +02:00
5aaf57c9bb Add comment/code documentation 2020-08-30 19:41:13 +02:00
a453d785f5 Add systemd service unit file and D-Bus config
The unit file is only for debugging purposes.
The Makefile is used to install (link --runtime), start, stop, and
restart the service, and to see the output (journalctl)
2020-08-30 17:38:49 +02:00
41ca57898d Initialize all the stuff
...like D-Bus connection to system bus, env_logger, and tokio
2020-08-30 16:41:59 +02:00
e6ffb3f3e1 Print message when stopping the daemon (SIGTERM)
systemd sends SIGTERM when stopping a service. When running in a tty,
CTRL + C (SIGINT) currently won't print a shutdown message.
2020-08-30 16:37:45 +02:00
bb51ff77b1 Connect to system bus instead of session bus 2020-08-30 16:33:29 +02:00
06a7aea979 Change some output generating lines 2020-08-30 16:32:09 +02:00
a58d540126 Add basic logging and dbus functionality to sfsmcd 2020-08-23 01:05:22 +02:00
5852f80b1f Add a few dependencies for using dbus 2020-08-23 01:04:29 +02:00
3263df377d Add log and env_logger crates 2020-08-20 18:06:29 +02:00
14b3abdb9a Move dependencies to member manifests
...because apparently it's not allowed to have dependencies in the
workspace manifest if it only defines other members and isn't a member
itself or something 🤷‍♂️
2020-08-20 17:41:21 +02:00
Eli
6999bca459 Change project structure
For the server and "client" to be able to communicate with eachother,
I'll be using DBus (https://www.freedesktop.org/wiki/Software/dbus/)
and the dbus-crate (https://crates.io/crates/dbus/).
Also, it will probably be better to split the server and client/daemon
and control utility in two separate projects (using Cargo's workspaces
(https://doc.rust-lang.org/cargo/reference/workspaces.html)).
2020-08-04 17:00:50 +02:00
Eli
170a704fc9 Clean up a bit 2020-08-04 16:41:56 +02:00
19778b1aca Add clap's console wrapping feature 2020-07-22 21:58:23 +02:00
0f88d7ecfc Initialize project structure 2020-07-17 21:47:50 +02:00
8cd1b4bec3 Update 'README.md' 2020-07-17 19:30:53 +00:00
2e6ca97f79 Initial commit 2020-07-17 18:26:59 +00:00