File: VCard.custom

package info (click to toggle)
evolution-sharp 0.17.1-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,892 kB
  • ctags: 875
  • sloc: sh: 8,987; cs: 2,700; ansic: 712; makefile: 183; xml: 28
file content (22 lines) | stat: -rw-r--r-- 602 bytes parent folder | download
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);
		}