2.x to 3.x migration and updates

Discussion to talk about software related topics only.
Post Reply
ephogy
Posts: 35
Joined: Fri Aug 29, 2008 12:53 pm

2.x to 3.x migration and updates

Post by ephogy »

I've been migrating some MOD5414X code from 2.x to 3.x and I was using the update_shutdown_func and the update_complete_func. I can't seem to locate similar function calls in the nbupdate.cpp file.

Am I missing something here, or are there plans to add these function callbacks? They're useful for cleaning up -- particularly with open files.
User avatar
TomNB
Posts: 573
Joined: Tue May 10, 2016 8:22 am

Re: 2.x to 3.x migration and updates

Post by TomNB »

Hello,

Is this what you are looking for, or had you already considered it?
https://www.netburner.com/NBDocs/Develo ... tdown.html
ephogy
Posts: 35
Joined: Fri Aug 29, 2008 12:53 pm

Re: 2.x to 3.x migration and updates

Post by ephogy »

This is probably what I'm looking for. I was running through the nbupdate.cpp code and didn't see any calls before the flashing occurred. I see they are in config_server.cpp.

Thank you.
User avatar
TomNB
Posts: 573
Joined: Tue May 10, 2016 8:22 am

Re: 2.x to 3.x migration and updates

Post by TomNB »

Correct, the client utility does not control the callback, it must be in the application itself, since only the application would know what it needs to do before an update.
Post Reply