1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
// VCard.custom - Hand stitched implementation of problematic methods
//
// Author: Veerapuram Varadhan <vvaradhan@novell.com>
//
// Copyright <c> 2007-2008 Novell, Inc.
//
// Additions to the VCard class.
[DllImport("ebook")]
static extern void e_vcard_add_attribute(IntPtr raw, IntPtr attr);
[DllImport("ebook")]
static extern IntPtr e_vcard_attribute_copy(IntPtr raw);
public void AddAttribute(Evolution.VCardAttribute attr) {
IntPtr raw_ret = IntPtr.Zero;
if (attr != null)
raw_ret = e_vcard_attribute_copy (attr.Handle);
e_vcard_add_attribute(Handle, raw_ret);
}
|