Feature

    Samgr

    Description:

    Defines the base class of a feature.

    You need to implement the pointer to the feature.

    Since:

    1.0

    Version:

    1.0

    Summary

    Data Fields

    Field Documentation

    GetName

    Description:

    Obtains a feature name.

    This function is implemented by developers and called by Samgr during feature registration and startup.

    Parameters:

    Returns:

    Returns a constant character string less than 16 bytes if the operation is successful; returns NULL if the operation fails.

    Description:

    Initializes a feature.

    This function is implemented by developers. After Samgr dispatches tasks to a service, the service calls this function in its own tasks.

    OnMessage

    Description:

    Processes a feature message.

    This function is implemented by developers to process requests sent by callers through .

    Parameters:

    Returns:

    Returns TRUE if the processing is successful; returns FALSE if the processing fails.

    OnStop

    Description:

    Stops a feature.

    This function is implemented by developers and is called by Samgr when a feature is deregistered to stop running services.

    Parameters: