Made GsweAntiscionData a boxed type
This commit is contained in:
parent
7387778367
commit
7d67dabf1f
@ -76,3 +76,18 @@ gswe_aspect_data_copy(GsweAspectData *aspect_data)
|
||||
|
||||
G_DEFINE_BOXED_TYPE(GsweAspectData, gswe_aspect_data, (GBoxedCopyFunc)gswe_aspect_data_copy, (GBoxedFreeFunc)g_free);
|
||||
|
||||
static GsweAntiscionData *
|
||||
gswe_antiscion_data_copy(GsweAntiscionData *antiscion_data)
|
||||
{
|
||||
GsweAntiscionData *ret = g_new0(GsweAntiscionData, 1);
|
||||
|
||||
ret->planet1 = antiscion_data->planet1;
|
||||
ret->planet2 = antiscion_data->planet2;
|
||||
ret->axis = antiscion_data->axis;
|
||||
ret->antiscion_info = antiscion_data->antiscion_info;
|
||||
ret->difference = antiscion_data->difference;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
G_DEFINE_BOXED_TYPE(GsweAntiscionData, gswe_antiscion_data, (GBoxedCopyFunc)gswe_antiscion_data_copy, (GBoxedFreeFunc)g_free);
|
||||
|
@ -425,5 +425,8 @@ typedef struct {
|
||||
gdouble difference;
|
||||
} GsweAntiscionData;
|
||||
|
||||
GType gswe_antiscion_data_get_type(void);
|
||||
#define GSWE_TYPE_ANTISCION_DATA (gswe_antiscion_data_get_type())
|
||||
|
||||
#endif /* __SWE_GLIB_GSWE_PLANETS_H__ */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user