/* Event handler for events from the peer_database module.  */
static void pdb_evt_handler(pdb_evt_t const *p_event)
/* Event handler for events from the peer_database module.  */
static void pdb_evt_handler(pdb_evt_t const *p_event)
{
    if ((p_event->evt_id == PDB_EVT_WRITE_BUF_STORED) && (p_event->data_id == PM_PEER_DATA_ID_BONDING))
    {
        smd_evt_t evt =
        {
            .evt_id = SMD_EVT_BONDING_INFO_STORED,
            .conn_handle = im_conn_handle_get(p_event->peer_id),
            .params = {.bonding_info_stored =
            {
                .peer_id = p_event->peer_id,
            }}
        };
        evt_send(&evt);
    }
}