/** * Duplicate a MMS message by creating a new message and populating its fields * with the data from the source message. * * @param message The source message. * * @return The new message (A clone of the source message), or <code>NULL</code> * if the source message was <code>NULL</code>. */ MmsMessage* jsr205_mms_dup_msg(MmsMessage* msg) { if (msg == NULL) { return NULL; } return jsr205_mms_new_msg(msg->fromAddress, msg->appID, msg->replyToAppID, msg->msgLen, (unsigned char*)msg->msgBuffer); }
/* * See javacall_mms.h for description */ void javanotify_incoming_mms_singlecall( char* fromAddress, char* appID, char* replyToAppID, int bodyLen, unsigned char* body) { midp_jc_event_union e; MmsMessage* mms; e.eventType = MIDP_JC_EVENT_MMS_INCOMING; mms = jsr205_mms_new_msg(fromAddress, appID, replyToAppID, bodyLen, body); e.data.mmsIncomingEvent.stub = (int)mms; midp_jc_event_send(&e); return; }