message.h

Overview

Related Modules:

Samgr

Description:

Provides message communication APIs that help you to implement asynchronous functions of IUnknown.

This API is used to implement asynchronous functions of IUnknown.

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name

Description

Identity

Identifies a service and feature.

Request

Defines a request.

Response

Defines a response.

Typedefs

Typedef Name

Description

Handler) (const Requestrequest, const Responseresponse)

typedef void(* 

Handles asynchronous responses.

Functions

Function Name

Description

SAMGR_SendRequest (const Identityidentity, const Requestrequest, Handler handler)

int32 

Sends a request to a service or feature of a specified identity.

SAMGR_SendSharedRequest (const Identityidentity, const Requestrequest, uint32 token, Handler handler)

uint32  

Sends a request to multiple services or features to save memory.

SAMGR_SendSharedDirectRequest (const Identityid, const Requestreq, const Responseresp, uint32 **ref, Handler handler)

int32 

Sends a request and response of a caller to the feature thread. The handler is directly called to process the request and response without using the message processing functions. (Customized function for the broadcast service)

SAMGR_SendResponse (const Request request, const Responseresponse)

int32 

Sends a response after processing a request.

SAMGR_SendResponseByIdentity (const Identity id, const Requestrequest, const Responseresponse)

int32 

Sends a response to a specified service or feature after processing the original request. (Customized function for bootstrap)