Made GsweHouseData a boxed type

This commit is contained in:
Gergely Polonkai 2013-09-16 11:33:14 +02:00
parent 67a2f0d074
commit 794aaa11c3
2 changed files with 17 additions and 0 deletions

View File

@ -45,3 +45,17 @@ gswe_coordinates_copy(GsweCoordinates *coordinates)
G_DEFINE_BOXED_TYPE(GsweCoordinates, gswe_coordinates, (GBoxedCopyFunc)gswe_coordinates_copy, (GBoxedFreeFunc)g_free);
static GsweHouseData *
gswe_house_data_copy(GsweHouseData *house_data)
{
GsweHouseData *ret = g_new0(GsweHouseData, 1);
ret->house = house_data->house;
ret->cusp_position = house_data->cusp_position;
ret->sign = house_data->sign;
return ret;
}
G_DEFINE_BOXED_TYPE(GsweHouseData, gswe_house_data, (GBoxedCopyFunc)gswe_house_data_copy, (GBoxedFreeFunc)g_free);

View File

@ -382,6 +382,9 @@ typedef struct {
GsweSignInfo *sign;
} GsweHouseData;
GType gswe_house_data_get_type(void);
#define GSWE_TYPE_HOUSE_DATA (gswe_house_data_get_type())
/**
* GsweAspectData:
* @planet1: the first planet in the aspect