Made GsweAspectData a boxed type
This commit is contained in:
parent
794aaa11c3
commit
7387778367
@ -59,3 +59,20 @@ gswe_house_data_copy(GsweHouseData *house_data)
|
|||||||
|
|
||||||
G_DEFINE_BOXED_TYPE(GsweHouseData, gswe_house_data, (GBoxedCopyFunc)gswe_house_data_copy, (GBoxedFreeFunc)g_free);
|
G_DEFINE_BOXED_TYPE(GsweHouseData, gswe_house_data, (GBoxedCopyFunc)gswe_house_data_copy, (GBoxedFreeFunc)g_free);
|
||||||
|
|
||||||
|
static GsweAspectData *
|
||||||
|
gswe_aspect_data_copy(GsweAspectData *aspect_data)
|
||||||
|
{
|
||||||
|
GsweAspectData *ret = g_new0(GsweAspectData, 1);
|
||||||
|
|
||||||
|
ret->planet1 = aspect_data->planet1;
|
||||||
|
ret->planet2 = aspect_data->planet2;
|
||||||
|
ret->distance = aspect_data->distance;
|
||||||
|
ret->aspect = aspect_data->aspect;
|
||||||
|
ret->aspect_info = aspect_data->aspect_info;
|
||||||
|
ret->difference = aspect_data->difference;
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
G_DEFINE_BOXED_TYPE(GsweAspectData, gswe_aspect_data, (GBoxedCopyFunc)gswe_aspect_data_copy, (GBoxedFreeFunc)g_free);
|
||||||
|
|
||||||
|
@ -404,6 +404,9 @@ typedef struct {
|
|||||||
gdouble difference;
|
gdouble difference;
|
||||||
} GsweAspectData;
|
} GsweAspectData;
|
||||||
|
|
||||||
|
GType gswe_aspect_data_get_type(void);
|
||||||
|
#define GSWE_TYPE_ASPECT_DATA (gswe_aspect_data_get_type())
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GsweAntiscionData:
|
* GsweAntiscionData:
|
||||||
* @planet1: the first planet in the antiscion
|
* @planet1: the first planet in the antiscion
|
||||||
|
Loading…
Reference in New Issue
Block a user