Patch Set 1:

No, we cannot.  Generating a trap requires us to know the ctrl_handle, which is 
returned to whoever creates a control interface instance.  The only way to 
solve this would be to keep a library-internal list of all control interface 
instances that have been allocated, and then iterate over the list to dispatch 
the command to all control interface instances.

Alternatively, we could restrict the number of control interface instances of 
any application to '1' and keep a static pointer to that inside the library to 
generate the trap.

Etiher way, it would be quite a change to the semantics of how the API works 
right now, so I went for the straight-forward approach.

-- 
To view, visit https://gerrit.osmocom.org/3278
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ib1d2ec38290dc94797c1b365d9b733e5215ab7d1
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <lafo...@gnumonks.org>
Gerrit-Reviewer: Harald Welte <lafo...@gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msur...@sysmocom.de>
Gerrit-HasComments: No

Reply via email to