Dynamically adding callbacks and or functionality? #497
-
Is something like this supported? I was planing on manipulating the convenience API to for example dynamically add a signal for each gpio line available or maybe generate a new signal based on some input given by another service ? Is something like this safe ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can add and remove vtables of objects dynamically at runtime. That is safe and supported behavior. See |
Beta Was this translation helpful? Give feedback.
You can add and remove vtables of objects dynamically at runtime. That is safe and supported behavior. See
addVTable()
function in headers as well in the sdbus-c++ tutorial. This means you can add or remove interfaces of the object (each interface has one vtable), or change interface's vtable (by removing the old one and adding a new -- modified -- one for that given interface).