ODeV framework
v2
|
Define the Application Context public API. More...
#include "systp.h"
#include "AManagedTask.h"
#include "AManagedTaskEx.h"
#include "AManagedTaskEx_vtbl.h"
Go to the source code of this file.
Data Structures | |
struct | _ApplicationContext |
Typedefs | |
typedef struct _ApplicationContext | ApplicationContext |
Functions | |
sys_error_code_t | ACInit (ApplicationContext *this) |
sys_error_code_t | ACAddTask (ApplicationContext *this, AManagedTask *pTask) |
sys_error_code_t | ACRemoveTask (ApplicationContext *this, AManagedTask *pTask) |
uint8_t | ACGetTaskCount (ApplicationContext *this) |
AManagedTask * | ACGetFirstTask (ApplicationContext *this) |
AManagedTask * | ACGetNextTask (ApplicationContext *this, const AManagedTask *pTask) |
Define the Application Context public API.
TODO - insert here the file description
Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
typedef struct _ApplicationContext ApplicationContext |
An application context is a linked list of Managed tasks.
sys_error_code_t ACAddTask | ( | ApplicationContext * | this, |
AManagedTask * | pTask | ||
) |
Add a managed task to this context. If the task is already in this application context it is not added twice.
this | specifies a pointer to the application context object. |
pTask | specifies a pointer to a managed task object to be added to this context. |
|
inline |
Get a pointer to the first task object in this application context.
this | specifies a pointer to the application context object. |
|
inline |
Get a pointer to the next task object after pTask in this application context.
this | specifies a pointer to the application context object. |
pTasks | specifies a pointer a managed task object in this context. |
|
inline |
Get the number of managed task in this context.
this | specifies a pointer to the application context object. |
sys_error_code_t ACInit | ( | ApplicationContext * | this | ) |
Initialize this application context.
this | specifies a pointer to the application context object. |
sys_error_code_t ACRemoveTask | ( | ApplicationContext * | this, |
AManagedTask * | pTask | ||
) |
Remove a managed task from this context.
this | specifies a pointer to the application context object. |
pTask | specifies a pointer to a managed task object to be removed from this context. |