📄 vobject_p.h
字号:
#define VCIBMMailProp "IBMMail"#define VCInlineProp "INLINE"#define VCInternationalProp "INTL"#define VCInternetProp "INTERNET"#define VCISDNProp "ISDN"#define VCJPEGProp "JPEG"#define VCLanguageProp "LANG"#define VCLastModifiedProp "LAST-MODIFIED"#define VCLastRevisedProp "REV"#define VCLocationProp "LOCATION"#define VCLogoProp "LOGO"#define VCMailerProp "MAILER"#define VCMAlarmProp "MALARM"#define VCMCIMailProp "MCIMAIL"#define VCMessageProp "MSG"#define VCMETProp "MET"#define VCModemProp "MODEM"#define VCMPEG2Prop "MPEG2"#define VCMPEGProp "MPEG"#define VCMSNProp "MSN"#define VCNamePrefixesProp "NPRE"#define VCNameProp "N"#define VCNameSuffixesProp "NSUF"#define VCNoteProp "NOTE"#define VCOrgNameProp "ORGNAME"#define VCOrgProp "ORG"#define VCOrgUnit2Prop "OUN2"#define VCOrgUnit3Prop "OUN3"#define VCOrgUnit4Prop "OUN4"#define VCOrgUnitProp "OUN"#define VCPagerProp "PAGER"#define VCPAlarmProp "PALARM"#define VCParcelProp "PARCEL"#define VCPartProp "PART"#define VCPCMProp "PCM"#define VCPDFProp "PDF"#define VCPGPProp "PGP"#define VCPhotoProp "PHOTO"#define VCPICTProp "PICT"#define VCPMBProp "PMB"#define VCPostalBoxProp "BOX"#define VCPostalCodeProp "PC"#define VCPostalProp "POSTAL"#define VCPowerShareProp "POWERSHARE"#define VCPreferredProp "PREF"#define VCPriorityProp "PRIORITY"#define VCProcedureNameProp "PROCEDURENAME"#define VCProdIdProp "PRODID"#define VCProdigyProp "PRODIGY"#define VCPronunciationProp "SOUND"#define VCPSProp "PS"#define VCPublicKeyProp "KEY"#define VCQPProp "QP"#define VCQuickTimeProp "QTIME"#define VCQuotedPrintableProp "QUOTED-PRINTABLE"#define VCRDateProp "RDATE"#define VCRegionProp "R"#define VCRelatedToProp "RELATED-TO"#define VCRepeatCountProp "REPEATCOUNT"#define VCResourcesProp "RESOURCES"#define VCRNumProp "RNUM"#define VCRoleProp "ROLE"#define VCRRuleProp "RRULE"#define VCRSVPProp "RSVP"#define VCRunTimeProp "RUNTIME"#define VCSequenceProp "SEQUENCE"#define VCSnoozeTimeProp "SNOOZETIME"#define VCStartProp "START"#define VCStatusProp "STATUS"#define VCStreetAddressProp "STREET"#define VCSubTypeProp "SUBTYPE"#define VCSummaryProp "SUMMARY"#define VCTelephoneProp "TEL"#define VCTIFFProp "TIFF"#define VCTimeZoneProp "TZ"#define VCTitleProp "TITLE"#define VCTLXProp "TLX"#define VCTodoProp "VTODO"#define VCTranspProp "TRANSP"#define VCUniqueStringProp "UID"#define VCURLProp "URL"#define VCURLValueProp "URLVAL"#define VCValueProp "VALUE"#define VCVersionProp "VERSION"#define VCVideoProp "VIDEO"#define VCVoiceProp "VOICE"#define VCWAVEProp "WAVE"#define VCWMFProp "WMF"#define VCWorkProp "WORK"#define VCX400Prop "X400"#define VCX509Prop "X509"#define VCXRuleProp "XRULE"typedef struct VObject VObject;typedef struct VObjectIterator { VObject* start; VObject* next; } VObjectIterator;extern DLLEXPORT(VObject*) newVObject(const char *id);extern DLLEXPORT(void) deleteVObject(VObject *p);extern DLLEXPORT(char*) dupStr(const char *s, unsigned int size);extern DLLEXPORT(void) deleteStr(const char *p);extern DLLEXPORT(void) unUseStr(const char *s);extern DLLEXPORT(void) setVObjectName(VObject *o, const char* id);extern DLLEXPORT(void) setVObjectStringZValue(VObject *o, const char *s);extern DLLEXPORT(void) setVObjectStringZValue_(VObject *o, const char *s);extern DLLEXPORT(void) setVObjectIntegerValue(VObject *o, unsigned int i);extern DLLEXPORT(void) setVObjectLongValue(VObject *o, unsigned long l);extern DLLEXPORT(void) setVObjectAnyValue(VObject *o, void *t);extern DLLEXPORT(VObject*) setValueWithSize(VObject *prop, void *val, unsigned int size);extern DLLEXPORT(VObject*) setValueWithSize_(VObject *prop, void *val, unsigned int size);extern DLLEXPORT(const char*) vObjectName(VObject *o);extern DLLEXPORT(const char*) vObjectStringZValue(VObject *o);extern DLLEXPORT(unsigned int) vObjectIntegerValue(VObject *o);extern DLLEXPORT(unsigned long) vObjectLongValue(VObject *o);extern DLLEXPORT(void*) vObjectAnyValue(VObject *o);extern DLLEXPORT(VObject*) vObjectVObjectValue(VObject *o);extern DLLEXPORT(void) setVObjectVObjectValue(VObject *o, VObject *p);extern DLLEXPORT(VObject*) addVObjectProp(VObject *o, VObject *p);extern DLLEXPORT(VObject*) addProp(VObject *o, const char *id);extern DLLEXPORT(VObject*) addProp_(VObject *o, const char *id);extern DLLEXPORT(VObject*) addPropValue(VObject *o, const char *p, const char *v);extern DLLEXPORT(VObject*) addPropSizedValue_(VObject *o, const char *p, const char *v, unsigned int size);extern DLLEXPORT(VObject*) addPropSizedValue(VObject *o, const char *p, const char *v, unsigned int size);extern DLLEXPORT(VObject*) addGroup(VObject *o, const char *g);extern DLLEXPORT(void) addList(VObject **o, VObject *p);extern DLLEXPORT(VObject*) isAPropertyOf(VObject *o, const char *id);extern DLLEXPORT(VObject*) nextVObjectInList(VObject *o);extern DLLEXPORT(void) initPropIterator(VObjectIterator *i, VObject *o);extern DLLEXPORT(int) moreIteration(VObjectIterator *i);extern DLLEXPORT(VObject*) nextVObject(VObjectIterator *i);extern DLLEXPORT(const char*) lookupStr(const char *s);extern DLLEXPORT(void) cleanStrTbl();extern DLLEXPORT(void) cleanVObject(VObject *o);extern DLLEXPORT(void) cleanVObjects(VObject *list);extern DLLEXPORT(const char*) lookupProp(const char* str);extern DLLEXPORT(const char*) lookupProp_(const char* str);extern DLLEXPORT(void) writeVObjectToFile(char *fname, VObject *o);extern DLLEXPORT(void) writeVObjectsToFile(char *fname, VObject *list);extern DLLEXPORT(int) vObjectValueType(VObject *o);/* return type of vObjectValueType: */#define VCVT_NOVALUE 0 /* if the VObject has no value associated with it. */#define VCVT_STRINGZ 1 /* if the VObject has value set by setVObjectStringZValue. */#define VCVT_UINT 2 /* if the VObject has value set by setVObjectIntegerValue. */#define VCVT_ULONG 3 /* if the VObject has value set by setVObjectLongValue. */#define VCVT_RAW 4 /* if the VObject has value set by setVObjectAnyValue. */#define VCVT_VOBJECT 5 /* if the VObject has value set by setVObjectVObjectValue. */extern DLLEXPORT(const char**) fieldedProp;/*************************************************** * The methods below are implemented in vcc.c (generated from vcc.y ) ***************************************************//* NOTE regarding printVObject and writeVObjectThe functions below are not exported from the DLL because theytake a FILE* as a parameter, which cannot be passed across a DLLinterface (at least that is my experience). Instead you can usetheir companion functions which take file names or pointersto memory. However, if you are linking this code intoyour build directly then you may find them a more convenient APIand you can go ahead and use them. If you try to use them withthe DLL LIB you will get a link error.*/extern DLLEXPORT(void) writeVObject(FILE *fp, VObject *o);typedef void (*MimeErrorHandler)(char *);extern DLLEXPORT(void) registerMimeErrorHandler(MimeErrorHandler);extern DLLEXPORT(VObject*) Parse_MIME(const char *input, unsigned long len);extern DLLEXPORT(VObject*) Parse_MIME_FromFileName(char* fname);/* NOTE regarding Parse_MIME_FromFileThe function above, Parse_MIME_FromFile, comes in two flavors,neither of which is exported from the DLL. Each version takesa CFile or FILE* as a parameter, neither of which can bepassed across a DLL interface (at least that is my experience).If you are linking this code into your build directly thenyou may find them a more convenient API that the other flavorsthat take a file name. If you use them with the DLL LIB youwill get a link error.*/#if INCLUDEMFCextern DLLEXPORT(VObject*) Parse_MIME_FromFile(CFile *file);#elseextern DLLEXPORT(VObject*) Parse_MIME_FromFile(FILE *file);#endifextern DLLEXPORT(const char *) vObjectTypeInfo(VObject *o);#endif /* __VOBJECT_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -