networkd: add basic dbus API
authorTom Gundersen <teg@jklm.no>
Wed, 4 Feb 2015 10:44:37 +0000 (11:44 +0100)
committerTom Gundersen <teg@jklm.no>
Thu, 5 Feb 2015 10:50:34 +0000 (11:50 +0100)
commite331e24649213f2e093e16e4d3d64ee823dfc375
treed21fa218f79f2621d6d61f071e846cc6465458c1
parent6a24f1484fcc1f59f89617afbe4282667a358eab
networkd: add basic dbus API

Only the very basics, more to come.

For now:

$ busctl tree org.freedesktop.network1
└─/org/freedesktop/network1
  └─/org/freedesktop/network1/link
    ├─/org/freedesktop/network1/link/1
    ├─/org/freedesktop/network1/link/2
    ├─/org/freedesktop/network1/link/3
    ├─/org/freedesktop/network1/link/4
    ├─/org/freedesktop/network1/link/5
    ├─/org/freedesktop/network1/link/6
    ├─/org/freedesktop/network1/link/7
    ├─/org/freedesktop/network1/link/8
    └─/org/freedesktop/network1/link/9

$ busctl introspect org.freedesktop.network1 /org/freedesktop/network1
NAME                                TYPE      SIGNATURE RESULT/VALUE FLAGS
org.freedesktop.network1.Manager    interface -         -            -
.OperationalState                   property  s         "carrier" emits-change

$ busctl introspect org.freedesktop.network1 /org/freedesktop/network1/link/1
NAME                                TYPE      SIGNATURE RESULT/VALUE FLAGS
org.freedesktop.network1.Link       interface -         -            -
.AdministrativeState                property  s         "unmanaged" emits-change
.OperationalState                   property  s         "carrier" emits-change
Makefile.am
src/network/networkd-link-bus.c [new file with mode: 0644]
src/network/networkd-link.c
src/network/networkd-link.h
src/network/networkd-manager-bus.c [new file with mode: 0644]
src/network/networkd-manager.c
src/network/networkd.h
src/network/org.freedesktop.network1.conf [new file with mode: 0644]
src/network/org.freedesktop.network1.service [new file with mode: 0644]
units/org.freedesktop.network1.busname [new file with mode: 0644]