Lines Matching refs:feature

32  * @file feature.h

34 * @brief Defines the base class of a feature.
37 * It provides functions for the feature lifecycle of a service. \n
58 * @brief Defines the base class of a feature.
60 * You need to implement the pointer to the feature. \n
67 * @brief Obtains a feature name.
69 * This function is implemented by developers and called by Samgr during feature registration
72 * @param feature Indicates the pointer to the feature.
79 const char *(*GetName)(Feature *feature);
82 * @brief Initializes a feature.
87 * @param feature Indicates the pointer to the feature.
88 * @param parent Indicates the pointer to the {@link Service} to which the feature belongs.
89 * @param identity Indicates the identity of a feature dispatched by the system.
94 void (*OnInitialize)(Feature *feature, Service *parent, Identity identity);
97 * @brief Stops a feature.
99 * This function is implemented by developers and is called by Samgr when a feature is
102 * @param feature Indicates the pointer to the feature.
103 * @param identity Indicates the {@link Identity} of the feature to be stopped.
107 void (*OnStop)(Feature *feature, Identity identity);
110 * @brief Processes a feature message.
115 * @param feature Indicates the pointer to the feature.
123 BOOL (*OnMessage)(Feature *feature, Request *request);
127 * @brief Inherits from the macro of the feature class.
129 * This macro provides the capability of inheriting the feature lifecycle. \n
134 const char *(*GetName)(Feature *feature); \
135 void (*OnInitialize)(Feature *feature, Service *parent, Identity identity); \
136 void (*OnStop)(Feature *feature, Identity identity); \
137 BOOL (*OnMessage)(Feature *feature, Request *request); \