From ee224b611ca1f1cd7c14f9e3c39ba8325b19dd76 Mon Sep 17 00:00:00 2001 From: Maxson Ramon dos Anjos Medeiros Date: Wed, 23 Jul 2025 15:01:14 +0200 Subject: [PATCH] Change c handers to private --- dotnet/IEC61850forCSharp/IEC61850ServerAPI.cs | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/dotnet/IEC61850forCSharp/IEC61850ServerAPI.cs b/dotnet/IEC61850forCSharp/IEC61850ServerAPI.cs index f092170f..ce14f84a 100644 --- a/dotnet/IEC61850forCSharp/IEC61850ServerAPI.cs +++ b/dotnet/IEC61850forCSharp/IEC61850ServerAPI.cs @@ -2470,7 +2470,7 @@ namespace IEC61850 static extern IntPtr IedServer_getFunctionalConstrainedData(IntPtr self, IntPtr dataObject, int fc); [DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)] - public static extern void IedServer_setListObjectsAccessHandler(IntPtr self, IedServer_ListObjectsAccessHandler handler, IntPtr parameter); + static extern void IedServer_setListObjectsAccessHandler(IntPtr self, IedServer_ListObjectsAccessHandler handler, IntPtr parameter); /// /// Set a handler to control read and write access to control blocks and logs @@ -2479,7 +2479,7 @@ namespace IEC61850 /// handler the callback handler to be used /// a user provided parameter that is passed to the handler [DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)] - public static extern void IedServer_setControlBlockAccessHandler(IntPtr self, IedServer_ControlBlockAccessHandler handler, IntPtr parameter); + static extern void IedServer_setControlBlockAccessHandler(IntPtr self, IedServer_ControlBlockAccessHandler handler, IntPtr parameter); /// /// Install the global read access handler @@ -2489,7 +2489,7 @@ namespace IEC61850 /// the callback function that is invoked if a client tries to read a data object /// a user provided parameter that is passed to the callback function [DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)] - public static extern void IedServer_setReadAccessHandler(IntPtr self, ReadAccessHandler handler, IntPtr parameter); + static extern void IedServer_setReadAccessHandler(IntPtr self, ReadAccessHandler handler, IntPtr parameter); /// /// Set a handler to control access to a dataset (create, delete, read, write, list directory) @@ -2498,10 +2498,10 @@ namespace IEC61850 /// the callback handler to be used /// a user provided parameter that is passed to the handler [DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)] - public static extern void IedServer_setDataSetAccessHandler(IntPtr self, IedServer_DataSetAccessHandler handler, IntPtr parameter); + static extern void IedServer_setDataSetAccessHandler(IntPtr self, IedServer_DataSetAccessHandler handler, IntPtr parameter); [DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)] - public static extern void IedServer_setDirectoryAccessHandler(IntPtr self, IedServer_DirectoryAccessHandler handler, IntPtr parameter); + static extern void IedServer_setDirectoryAccessHandler(IntPtr self, IedServer_DirectoryAccessHandler handler, IntPtr parameter); /// /// Set the callback handler for the SetActSG event @@ -2511,7 +2511,7 @@ namespace IEC61850 /// the user provided callback handler /// a user provided parameter that is passed to the control handler [DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)] - public static extern void IedServer_setActiveSettingGroupChangedHandler(IntPtr self, IntPtr sgcb, ActiveSettingGroupChangedHandler handler, IntPtr parameter); + static extern void IedServer_setActiveSettingGroupChangedHandler(IntPtr self, IntPtr sgcb, ActiveSettingGroupChangedHandler handler, IntPtr parameter); /// /// Get the active setting group number @@ -2520,7 +2520,7 @@ namespace IEC61850 /// the handle of the setting group control block of the setting group /// the number of the active setting group [DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)] - public static extern uint IedServer_getActiveSettingGroup(IntPtr self, IntPtr sgcb); + static extern uint IedServer_getActiveSettingGroup(IntPtr self, IntPtr sgcb); /// /// Set the callback handler for the SetEditSG event @@ -2530,7 +2530,7 @@ namespace IEC61850 /// the user provided callback handler /// a user provided parameter that is passed to the control handler [DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)] - public static extern void IedServer_setEditSettingGroupChangedHandler(IntPtr self, IntPtr sgcb, EditSettingGroupChangedHandler handler, IntPtr parameter); + static extern void IedServer_setEditSettingGroupChangedHandler(IntPtr self, IntPtr sgcb, EditSettingGroupChangedHandler handler, IntPtr parameter); /// /// Set the callback handler for the COnfEditSG event @@ -2540,7 +2540,7 @@ namespace IEC61850 /// the user provided callback handler /// a user provided parameter that is passed to the control handler [DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)] - public static extern void IedServer_setEditSettingGroupConfirmationHandler(IntPtr self, IntPtr sgcb, EditSettingGroupConfirmationHandler handler, IntPtr parameter); + static extern void IedServer_setEditSettingGroupConfirmationHandler(IntPtr self, IntPtr sgcb, EditSettingGroupConfirmationHandler handler, IntPtr parameter); ///// ///// Set a handler for SVCB control block events (enable/disable) @@ -2550,7 +2550,7 @@ namespace IEC61850 ///// the event handler to be used ///// user provided parameter that is passed to the handler [DllImport("iec61850", CallingConvention = CallingConvention.Cdecl)] - public static extern void IedServer_setSVCBHandler(IntPtr self, IntPtr svcb, SVCBEventHandler handler, IntPtr parameter); + static extern void IedServer_setSVCBHandler(IntPtr self, IntPtr svcb, SVCBEventHandler handler, IntPtr parameter); ///// ///// callback handler for SVCB events @@ -2559,7 +2559,7 @@ namespace IEC61850 ///// event type ///// user defined parameter [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public delegate void SVCBEventHandler(IntPtr svcb, int eventType, IntPtr parameter); + private delegate void SVCBEventHandler(IntPtr svcb, int eventType, IntPtr parameter); /// /// callback handler to control client read access to data attributes @@ -2575,7 +2575,7 @@ namespace IEC61850 /// the user provided parameter /// DATA_ACCESS_ERROR_SUCCESS if access is accepted, DATA_ACCESS_ERROR_OBJECT_ACCESS_DENIED if access is denied [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public delegate MmsDataAccessError ReadAccessHandler(IntPtr ld, IntPtr ln, IntPtr dataObject, int fc, IntPtr connection, IntPtr parameter); + private delegate MmsDataAccessError ReadAccessHandler(IntPtr ld, IntPtr ln, IntPtr dataObject, int fc, IntPtr connection, IntPtr parameter); /// /// Callback handler that is invoked when the active setting group is about to be changed by an external client. @@ -2587,7 +2587,7 @@ namespace IEC61850 /// connection the client connection that requests the change /// true if the change is accepted, false otherwise [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public delegate bool ActiveSettingGroupChangedHandler(IntPtr parameter, IntPtr sgcb, uint newActSg, IntPtr connection); + private delegate bool ActiveSettingGroupChangedHandler(IntPtr parameter, IntPtr sgcb, uint newActSg, IntPtr connection); /// /// Callback handler that is invoked when the edit setting group is about to be changed by an external client. @@ -2601,7 +2601,7 @@ namespace IEC61850 /// the client connection that requests the change /// true if the change is accepted, false otherwise [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public delegate bool EditSettingGroupChangedHandler(IntPtr parameter, IntPtr sgcb, uint newEditSg, IntPtr connection); + private delegate bool EditSettingGroupChangedHandler(IntPtr parameter, IntPtr sgcb, uint newEditSg, IntPtr connection); /// /// Callback handler that is invoked when the edit setting group has been confirmed by an external client. @@ -2610,7 +2610,7 @@ namespace IEC61850 /// the setting group control block of the setting group that is about to be changed /// the edit setting group that has been confirmed [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public delegate void EditSettingGroupConfirmationHandler(IntPtr parameter, IntPtr sgcb, uint editSg); + private delegate void EditSettingGroupConfirmationHandler(IntPtr parameter, IntPtr sgcb, uint editSg); /// /// Callback that is called when the client is calling a dataset operation (create, delete, read, write, list directory) @@ -2622,7 +2622,7 @@ namespace IEC61850 /// /// true to allow operation, false to deny operation [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public delegate bool IedServer_DataSetAccessHandler(IntPtr parameter, IntPtr connection, int operation, string datasetRef); + private delegate bool IedServer_DataSetAccessHandler(IntPtr parameter, IntPtr connection, int operation, string datasetRef); /// /// Callback that is called when a client is invoking a read or write service to a control block or log @@ -2638,10 +2638,10 @@ namespace IEC61850 /// access type (read=IEC61850_CB_ACCESS_TYPE_READ or write=IEC61850_CB_ACCESS_TYPE_WRITE) /// true to include the object in the service response, otherwise false [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public delegate bool IedServer_ControlBlockAccessHandler(IntPtr parameter, IntPtr connection, int acsiClass, IntPtr ld, IntPtr ln, string objectName, string subObjectName, int accessType); + private delegate bool IedServer_ControlBlockAccessHandler(IntPtr parameter, IntPtr connection, int acsiClass, IntPtr ld, IntPtr ln, string objectName, string subObjectName, int accessType); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public delegate bool IedServer_DirectoryAccessHandler(IntPtr parameter, IntPtr connection, int category, IntPtr logicalDevice); + private delegate bool IedServer_DirectoryAccessHandler(IntPtr parameter, IntPtr connection, int category, IntPtr logicalDevice); [UnmanagedFunctionPointer(CallingConvention.Cdecl)] public delegate bool IedServer_ListObjectsAccessHandler(IntPtr parameter, ClientConnection connection, ACSIClass acsiClass, LogicalDevice ld, LogicalNode ln, string objectName, string subObjectName, FunctionalConstraint fc);