Hi Denis, I'm writing a custom network-registration driver for uBlox modems and I'd like to know if you will choke on the following approach:
i) export method implementations from atmodem driver ii) set up uBlox netreg vtable with custom probe method and exported atmodem implementations for rest If you can't accept this approach, please let me know of an alternative method that would be preferable that (hopefully) doesn't entail just copying all the code from one driver to the other (1000+ lines to keep in sync going forward). Best regards, Jonas PS: This is an RFC... patches are not quite done. That said, feel free to patch review if you've got a moment; the final result shouldn't differ all that much from what's here. Jonas Bonn (2): atmodem: export generic netreg funcs ublox: network-registration atom drivers/atmodem/network-registration.c | 16 +- drivers/atmodem/network-registration.h | 17 + drivers/ubloxmodem/network-registration.c | 413 ++++++++++++++++++++++ drivers/ubloxmodem/ubloxmodem.c | 2 + drivers/ubloxmodem/ubloxmodem.h | 3 + 5 files changed, 444 insertions(+), 7 deletions(-) create mode 100644 drivers/atmodem/network-registration.h create mode 100644 drivers/ubloxmodem/network-registration.c -- 2.20.1 _______________________________________________ ofono mailing list [email protected] https://lists.ofono.org/mailman/listinfo/ofono
