#include "legato.h"
#include "taf_types_server.h"
#include "taf_diagReset_common.h"
Go to the source code of this file.
◆ taf_diagReset_GetServiceRef()
le_msg_ServiceRef_t taf_diagReset_GetServiceRef |
( |
void |
| ) |
|
Get the server service reference
◆ taf_diagReset_GetClientSessionRef()
Get the client session reference for the current message
◆ taf_diagReset_AdvertiseService()
void taf_diagReset_AdvertiseService |
( |
void |
| ) |
|
Initialize the server and advertise the service.
◆ taf_diagReset_GetService()
Reset type. Error code for Reset. Reference to the Reset service. Reference to the Reset received request message. Handler for a Rx Reset message. Reference type used by Add/Remove functions for EVENT 'taf_diagReset_RxMsg' Gets the reference to a Reset service, if there's no Reset service, a new one will be created.
- Returns
- Reference to the service instance.
- NULL if not allowed to create the service.
- Note
- The process exits if an invalid reference is passed.
Gets the reference to a Reset service, if there's no Reset service, a new one will be created.
- Returns
- Reference to the service instance.
- NULL if not allowed to create the service.
- Note
- The process exits if an invalid reference is passed.
- Parameters
-
◆ taf_diagReset_AddRxMsgHandler()
Add handler function for EVENT 'taf_diagReset_RxMsg'
This event provides information on Rx Reset message.
- Parameters
-
[in] | svcRef | Service reference. |
[in] | handlerPtr | Received message handler. |
[in] | contextPtr | |
◆ taf_diagReset_RemoveRxMsgHandler()
Remove handler function for EVENT 'taf_diagReset_RxMsg'
- Parameters
-
◆ taf_diagReset_SendResp()
Sends a response message for the Rx Reset message.
- Note
- This function must be called to send a response if receiving a message.
- Returns
- LE_OK – Succeeded.
- LE_BAD_PARAMETER – Invalid rxMsgRef.
- LE_NOT_FOUND – Reference not found.
- LE_FAULT – Failed.
- Note
- The process exits if an invalid reference is passed.
- Parameters
-
[in] | rxMsgRef | Received message reference. |
[in] | errCode | Error code type. |
◆ taf_diagReset_RemoveSvc()
Removes the Reset service.
- Returns
- LE_OK – Succeeded.
- LE_BAD_PARAMETER – Invalid svcRef.
- Parameters
-
[in] | svcRef | Service reference. |