/** * gwy_process_type_init: * * Makes libgwyprocess types safe for deserialization and performs other * initialization. You have to call this function before using objects * from libgwyprocess. * * Calls gwy_type_init() first to make sure libgwyddion is initialized. * * It is safe to call this function more than once, subsequent calls are no-op. **/ void gwy_process_type_init(void) { static gboolean types_initialized = FALSE; if (types_initialized) return; gwy_type_init(); g_type_class_peek(GWY_TYPE_DATA_LINE); g_type_class_peek(GWY_TYPE_DATA_FIELD); g_type_class_peek(GWY_TYPE_BRICK); g_type_class_peek(GWY_TYPE_CDLINE); g_type_class_peek(GWY_TYPE_SPECTRA); g_type_class_peek(GWY_TYPE_SURFACE); g_type_class_peek(GWY_TYPE_CALDATA); g_type_class_peek(GWY_TYPE_TRIANGULATION); types_initialized = TRUE; _gwy_cdline_class_setup_presets(); _gwy_grain_value_class_setup_presets(); _gwy_shape_fit_preset_class_setup_presets(); _gwy_calibration_class_setup_presets(); gwy_process_import_fftw_wisdom(); }
/** * gwy_process_type_init: * * Makes libgwyprocess types safe for deserialization and performs other * initialization. You have to call this function before using objects * from libgwyprocess. * * Calls gwy_type_init() first to make sure libgwyddion is initialized. * * It is safe to call this function more than once, subsequent calls are no-op. **/ void gwy_process_type_init(void) { static gboolean types_initialized = FALSE; if (types_initialized) return; gwy_type_init(); g_type_class_peek(GWY_TYPE_DATA_LINE); g_type_class_peek(GWY_TYPE_DATA_FIELD); g_type_class_peek(GWY_TYPE_CDLINE); types_initialized = TRUE; _gwy_cdline_class_setup_presets(); }