1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
Author: Syed Shahrukh Hussain <syed.shahrukh@ossrevival.org>
Description: Fix depreciated function warning.
Forwarded: not-needed
Last-Update: 2025-09-14
diff --git a/src/plugins/ole2_extractor.c b/src/plugins/ole2_extractor.c
index 38b380a..e2d2fa4 100644
--- a/src/plugins/ole2_extractor.c
+++ b/src/plugins/ole2_extractor.c
@@ -730,9 +730,8 @@ le_input_init (LeInput *input);
/**
* Macro to create LeInput type definition and register the class.
*/
-GSF_CLASS (LeInput, le_input, le_input_class_init, le_input_init,
- GSF_INPUT_TYPE)
-
+G_DEFINE_TYPE_WITH_CODE (LeInput, le_input, GSF_INPUT_TYPE,
+ G_ADD_PRIVATE (LeInput))
/**
* Duplicate input, leaving the new one at the same offset.
@@ -853,7 +852,6 @@ le_input_class_init (LeInputClass *class)
input_class->Dup = le_input_dup;
input_class->Read = le_input_read;
input_class->Seek = le_input_seek;
- g_type_class_add_private (class, sizeof (LeInputPrivate));
}
@@ -866,10 +864,8 @@ static void
le_input_init (LeInput *input)
{
LeInputPrivate *priv;
-
input->priv =
- G_TYPE_INSTANCE_GET_PRIVATE (input, LE_TYPE_INPUT,
- LeInputPrivate);
+ le_input_get_instance_private (input);
priv = input->priv;
priv->ec = NULL;
}
|