Currently in dcmihandler
object path for
PCAP_INTERFACE is hardcoded to get settings service. It was discussed earlier in this
review that this needs to be more dynamic.
Currently I have 2 options to resolve this:
1. instead of getting a specific
service with a hardcoded path, set/getPcap should call
getAllDbusObjects. This will give an object tree and we have to iterate through all the objects implementing the powercap interface. I am not sure if this is safe to do so. Need input from the maintainers.
2. Another option is to add a compile time flag to select a path.
Please let me know what you think.
-
Thanks,