-
Notifications
You must be signed in to change notification settings - Fork 2
Oscar Software Framework Manual Upgrading Oscar
Beat Küng edited this page Jul 16, 2012
·
2 revisions
This page gives a few hints on how to upgrade your application from an old version of the Oscar Software Framework to a newer one. Since every application is different, the changes that have to be made to port a specific one to a new framework version can not be fully summarized here. Instead, only the actions common to all (or most) applications are listed.
- Inherit Makefile, configure and configure.in from the template application (app-template) for Oscar v2.0.
- Run ./configure to configure the application with the new framework path.
- Replace all include references to "inc/oscar.h" or any oscar module headers to simply "oscar.h"
- Change Oscar framework initialization and unload code to new method, e.g.
/* Load the Oscar framework and modules */ OscCreate(&s->hFramework); OscLoadDependencies(s->hFramework, deps, sizeof(deps)/sizeof(struct OSC_DEPENDENCY)); ... /* Destroy modules and framework */ OscUnloadDependencies(s->hFramework, deps, sizeof(deps)/sizeof(struct OSC_DEPENDENCY)); OscDestroy(s->hFramework);
becomes
... /* Destroy modules and framework */ OscDestroy();