/** * Fetches the first message that matches the application identifier without removing * the message from the pool. * * @param appID The application identifier to be matched. * @param isNew Get the new message only when not 0. * * @return The MMS message or <code>NULL</code> if no match could be found. */ MmsMessage* jsr205_mms_pool_peek_next_msg1(unsigned char* appID, jint isNew){ ListElement* elem = jsr120_list_get_by_name1(MMSPool_messages, appID, isNew); if (elem) { return (MmsMessage*)elem->userData; } return NULL; }
/** * Retrieve the element matching the string identifier. * * @param head A pointer to the first element in the list. * @param name The name identifier to be matched. * * @return A pointer to the element that matched the name, or * <code>NULL</code> if no element could be found. */ ListElement* jsr120_list_get_by_name(ListElement* head, unsigned char* name) { return jsr120_list_get_by_name1(head, name, 0); }