1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
5 * Copyright 2009 Novell, Inc. (http://www.novell.com)
7 * See the LICENSE file included with the distribution for details.
15 #include "managedtypeinfo.h"
17 ManagedTypeInfo::ManagedTypeInfo (const ManagedTypeInfo
& v
)
19 Initialize (v
.assembly_name
, v
.full_name
);
22 ManagedTypeInfo::~ManagedTypeInfo ()
24 g_free (assembly_name
);
29 ManagedTypeInfo::Initialize (const char *assembly_name
, const char *full_name
)
31 this->assembly_name
= g_strdup (assembly_name
);
32 this->full_name
= g_strdup (full_name
);
36 ManagedTypeInfo::operator == (const ManagedTypeInfo
&v
)
38 return strcmp (assembly_name
, v
.assembly_name
) == 0 && strcmp (full_name
, v
.full_name
) == 0;
42 ManagedTypeInfo::operator != (const ManagedTypeInfo
&v
)
48 ManagedTypeInfo::operator = (const ManagedTypeInfo
&v
)
51 g_free (this->assembly_name
);
52 g_free (this->full_name
);
53 this->assembly_name
= g_strdup (v
.assembly_name
);
54 this->full_name
= g_strdup (v
.full_name
);
60 ManagedTypeInfo::Free (ManagedTypeInfo
*mti
)
65 g_free (mti
->assembly_name
);
66 g_free (mti
->full_name
);