On 11/02/2020 12:28, Victorien Molle wrote:
> Hi Simon, sorry for the late reply.
>
> Here are my answers:
>
> 1) This is because I prefer to work with integers and not strings.
> I personnaly prefer to declare enums for each action and then perform
> a boolean comparison instead of doing
Hi Simon, sorry for the late reply.
Here are my answers:
1) This is because I prefer to work with integers and not strings.
I personnaly prefer to declare enums for each action and then perform
a boolean comparison instead of doing strings comparison.
But I can use action strings if you prefer.
Sorry to keep pushing this back at you, but I looked in more detail and
there are things that are not yet right.
1) Why is the action the internal arbitrary integer? Wouldn't it be
better for this to be a string, deleted/added/updated or even the name
of the earlier signals; DhcpLeaseAdded etc
For our usage, we need to have more informations sent over D-Bus such as the
interface
name, the vendor class identifier and the lease expiration time.
To achieve this, we add a new D-Bus signal "DhcpLeaseNotification" which
exports the
requested informations as a dictionnary.
It also has the