mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-30 07:42:23 +02:00
src: implement config file lookup and initial parsing
This commit prepares the use of device-specific configuration files. These files should be named after the device-tree `compatible` string with the `toml` extension. `eg25-manager` will search for config files in `<prefix>/etc/eg25-manager` first (or `/etc/eg25-manager` if prefix is `/usr`), then in `<prefix>/share/eg25-manager`.
This commit is contained in:
@@ -187,7 +187,7 @@ static void mm_vanished_cb(GDBusConnection *connection,
|
||||
mm_iface_clean(manager);
|
||||
}
|
||||
|
||||
void mm_iface_init(struct EG25Manager *manager)
|
||||
void mm_iface_init(struct EG25Manager *manager, toml_table_t *config)
|
||||
{
|
||||
manager->mm_watch = g_bus_watch_name(G_BUS_TYPE_SYSTEM, MM_DBUS_SERVICE,
|
||||
G_BUS_NAME_WATCHER_FLAGS_AUTO_START,
|
||||
|
Reference in New Issue
Block a user