# Development Guidelines ## Initializing a Modem Vendor Library ### When to Use Initializing a modem vendor library means to implement **const HRilOps \*RilInitOps\(const struct HRilReport \*reportOps\)** function in the vendor library. This function is mainly used to: - Receive function pointers to event callbacks of RIL Adapter. When a service event needs to be reported, the target pointer will be called to report the event to RIL Adapter. - Create a thread for reading modem nodes. In this thread, the data reported by the modem is read cyclically and parsed as a specific service event for reporting. - Return the function pointer of the service request API to RIL Adapter. ### Available APIs The following table describes the API for initializing a modem vendor library. **Table 1** API for initializing a modem vendor library
Function: Distributes the events reported by the modem. |