/** * Fetches the first message that matches the message identifier without * removing the message from the pool. * * @param msgID The message identifier to be matched. * @param isNew Get the new message only when not 0. * * @return The message or <code>NULL</code> if no message could be found. */ CbsMessage* jsr120_cbs_pool_peek_next_msg1(jchar msgID, jint isNew){ ListElement* elem = jsr120_list_get_by_number1(CBSPool_messages, msgID, isNew); if (elem) { return (CbsMessage*)elem->userData; } return NULL; }
/** * Retrieve the element matching the numeric identifier. * * @param head A pointer to the first element in the list. * @param id The numeric identifier to be matched. * * @return A pointer to the element that matched the number, or * <code>NULL</code> if no element could be found. */ ListElement* jsr120_list_get_by_number(ListElement* head, jint num) { return jsr120_list_get_by_number1(head, num, 0); }