Commit graph

458 commits

Author SHA1 Message Date
Jeremy Whiting
e2cc4c2b38 Add basic running script functionality.
Will likely move api methods out to be more generic, but this
runs for now and gives true on success, false on failure, etc.
May also need to change from process.poll to wait for longer
running scripts. will do once tested more.
2023-10-02 12:31:28 -06:00
Jeremy Whiting
8f0f6e7976 Implement Version dbus api with value 1 for now. 2023-10-02 12:01:43 -06:00
Jeremy Whiting
aa86fdd810 Add Cargo.lock file since we are building an application.
Usually when building a library we don't ship Cargo.lock, since
binary using our library should control versions. Since we are
an application though, ship Cargo.lock to lock versions of
dependencies.
2023-09-29 13:02:31 -06:00
Jeremy Whiting
701ff23987 Add initial dbus interface xml descripiton.
Much of this will change, but needed something to start with.
Based on notes at https://gitlab.steamos.cloud/jupiter/tasks/-/issues/894
Use objectserver to get introspection done for us.
Change to session bus for now since system bus will need
a config file to allow us to take the name. Will add later.
Implement one quick say_hello dbus method to start.
Add copyright headers.
2023-09-29 13:01:33 -06:00
Jeremy Whiting
302fe3c063 Add a basic Hacking.md for getting started, building, running, etc. 2023-09-05 14:16:34 -06:00
Jeremy Whiting
f2133a5256 More stuff implemented.
Use zbus to register the bus name.
Use async_std to get dbus session connection.
Added missing interface_name in SmDbusApi.
Removed parameters from SmDbusApi since those are passed, but not
kept with the method definition, etc.
2023-09-05 13:09:54 -06:00
Jeremy Whiting
666ac09607 Some basic structure.
Added some structures, enums, etc. to hold the data we will need.
Added an initialize_apis that only looks for config files so far.

TODO:
Use zbus to create our service, register the name, etc. to start.
Decide on a config file format (maybe after getting some zbus
details fleshed out and knowing better what will fit well)
Add error messages and don't fail on errors, just log them.
2023-09-03 09:23:28 -06:00
Jeremy Whiting
5fc50f4ac9 Initial commit. Readme.md and Cargo.toml for now.
Will add src/main.rs once it's doing something interesting.
2023-08-31 08:08:13 -06:00