The following functions, listed within the code snippet above, are responsible for:
<ul>
<li>
- <span style="font-family: Courier New,Courier,monospace">model_init()</span> - model-related data pointer storage for future use within the "model" module;
+ <span style="font-family: Courier New,Courier,monospace">model_init()</span> - model-related data pointer storage for future use within the "Model" module;
<pre class="prettyprint">
bool model_init(modeldata_s *md)
{
model_add_event_handler(APP_EVENT_SUSPENDED_STATE_CHANGED, __app_event_suspended_state_changed_cb));
}
</pre>
- See the <a href="#model">Model</a> section for <span style="font-family: Courier New,Courier,monospace">model_add_event_handler()</span> function reference.
+ See the <a href="#app-events">Application's events</a> section for <span style="font-family: Courier New,Courier,monospace">model_add_event_handler()</span> function reference.
</li>
<li>
<span style="font-family: Courier New,Courier,monospace">view_create_base_gui()</span> - the entire UI is created. The source code is not listed within this documentation, as it is not a subject
of this document.
</li>
<li>
- <span style="font-family: Courier New,Courier,monospace">__init_view_app()</span> - the set of application's common information is obtained via <a href="#model">Model</a> module functions, which
+ <span style="font-family: Courier New,Courier,monospace">__init_view_app()</span> - the set of application's common information is obtaind via functions implemented in "Model" module, which
is then displayed in the UI.
<pre class="prettyprint">
static void __init_view_app(void)
<p>
As the UI is not a subject for this documentation, the implementation of the <span style="font-family: Courier New,Courier,monospace">view_destroy_base_gui()</span> function is ommited.
Detaching events handlers relies on <span style="font-family: Courier New,Courier,monospace">model_remove_event_handler()</span> function for each attached event handler. For implementation
- details see the <a href="#model">Model</a> section.
+ details see the <a href="#app-events">Application's events</a> section.
</p>
<pre class="prettyprint">