Updated: October 28, 2024 |
Initialize a subset of the QWF services
#include <qwf/qwf_interface.h>
qwf_ReturnStatus_e qwf_InitializeServices(qwf_Context_t *pCtx, qwf_Service_e servicesMask)
This function initializes a subset of the QWF services. It is intended for use after qwf_InitializeCore() has been called to initialize the QWF core event-handling mechanism. For example, a client program could initialize only Wi-Fi and Networking if it doesn't use cellular connections.
The client can call this function multiple times with different services indicated in servicesMask; for example, once during system startup and then later after a service has been terminated using qwf_CleanupServices().
This function must return successfully before any information for the indicated services can be read through the QWF API.
RETURN_STATUS_SUCCESS on success, RETURN_STATUS_FAILURE otherwise. If this function fails, it's due to an unrecoverable error (e.g., a serious memory issue) and the system needs a reboot.