static int MimeInlineTextSMIMEStub_parse_begin(MimeObject *obj) { MimeInlineTextSMIMEStubClass *clazz; int status = ((MimeObjectClass*)COM_GetmimeLeafClass())->parse_begin(obj); if (status < 0) return status; if (!obj->output_p || !obj->options || !obj->options->write_html_p) return 0; /* This is a fine place to write out any HTML before the real meat begins. */ // Initialize the clazz variable... clazz = ((MimeInlineTextSMIMEStubClass *) obj->clazz); return 0; }
static int MimeInlineTextVCard_parse_begin (MimeObject *obj) { int status = ((MimeObjectClass*)COM_GetmimeLeafClass())->parse_begin(obj); MimeInlineTextVCardClass *clazz; if (status < 0) return status; if (!obj->output_p) return 0; if (!obj->options || !obj->options->write_html_p) return 0; /* This is a fine place to write out any HTML before the real meat begins. In this sample code, we tell it to start a table. */ clazz = ((MimeInlineTextVCardClass *) obj->clazz); /* initialize vcard string to empty; */ NS_MsgSACopy(&(clazz->vCardString), ""); obj->options->state->separator_suppressed_p = true; return 0; }