void pyAgeVault::AddChronicleEntry( const char * name, uint32_t type, const char * value ) { wchar_t * wEntryName = StrDupToUnicode(name); wchar_t * wEntryValue = StrDupToUnicode(value); VaultAddAgeChronicleEntry(wEntryName, type, wEntryValue); free(wEntryName); free(wEntryValue); }
void pyVault::AddChronicleEntry( const char * name, uint32_t type, const char * value ) { wchar_t * wEntryName = StrDupToUnicode(name); wchar_t * wEntryValue = StrDupToUnicode(value); // FIXME: We should ideally not block, but for now, the Python assumes that when // we return, the chronicle exists and can be found with findChronicleEntry. // Maybe we should insert a dummy into the tree? (currently hard) VaultAddChronicleEntryAndWait(wEntryName, type, wEntryValue); free(wEntryName); free(wEntryValue); }
void pyVaultTextNoteNode::Note_SetText( const char * text ) { if (!fNode) return; wchar_t * wStr = nil; if (text) wStr = StrDupToUnicode(text); VaultTextNoteNode textNote(fNode); textNote.SetNoteText(wStr); free(wStr); }