Phase 0: scaffold e_iwd Enlightenment module
Meson build, module entry points, and stub layout for the iwd backend (D-Bus client, gadget, popup, config, UI widgets). Bodies are TODOs; this compiles against EFL/E headers but performs no D-Bus work yet. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
commit
b9eb5de878
29 changed files with 628 additions and 0 deletions
32
src/iwd/iwd_dbus.c
Normal file
32
src/iwd/iwd_dbus.c
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#include "iwd_dbus.h"
|
||||
#include <Eina.h>
|
||||
|
||||
struct _Iwd_Dbus
|
||||
{
|
||||
Eldbus_Connection *conn;
|
||||
Eldbus_Object *root;
|
||||
Eldbus_Proxy *object_manager;
|
||||
Eldbus_Signal_Handler *name_owner_sh;
|
||||
};
|
||||
|
||||
/* TODO:
|
||||
* - watch IWD_BUS_NAME owner (NameOwnerChanged) for restart handling
|
||||
* - call org.freedesktop.DBus.ObjectManager.GetManagedObjects on "/"
|
||||
* - listen for InterfacesAdded / InterfacesRemoved
|
||||
* - dispatch new objects to iwd_manager
|
||||
*/
|
||||
|
||||
Iwd_Dbus *
|
||||
iwd_dbus_new(Eldbus_Connection *conn)
|
||||
{
|
||||
Iwd_Dbus *d = calloc(1, sizeof(*d));
|
||||
d->conn = conn;
|
||||
return d;
|
||||
}
|
||||
|
||||
void
|
||||
iwd_dbus_free(Iwd_Dbus *d)
|
||||
{
|
||||
if (!d) return;
|
||||
free(d);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue