Skip to content

Commit 663532c

Browse files
committed
Step 2: Add FFI Method Declaration
Signed-off-by: currantw <taylor.curran@improving.com>
1 parent f730afc commit 663532c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sources/Valkey.Glide/Internals/FFI.methods.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ internal partial class FFI
3939
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
4040
public static partial void RemoveClusterScanCursorFfi(IntPtr cursorId);
4141

42+
[LibraryImport("libglide_rs", EntryPoint = "update_connection_password")]
43+
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
44+
public static partial void UpdateConnectionPasswordFfi(IntPtr client, ulong index, IntPtr password, [MarshalAs(UnmanagedType.U1)] bool immediateAuth);
45+
4246
[LibraryImport("libglide_rs", EntryPoint = "refresh_iam_token")]
4347
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
4448
public static partial void RefreshIamTokenFfi(IntPtr client, ulong index);
@@ -63,6 +67,10 @@ internal partial class FFI
6367

6468
[DllImport("libglide_rs", CallingConvention = CallingConvention.Cdecl, EntryPoint = "remove_cluster_scan_cursor")]
6569
public static extern void RemoveClusterScanCursorFfi(IntPtr cursorId);
70+
71+
[DllImport("libglide_rs", CallingConvention = CallingConvention.Cdecl, EntryPoint = "update_connection_password")]
72+
public static extern void UpdateConnectionPasswordFfi(IntPtr client, ulong index, IntPtr password, [MarshalAs(UnmanagedType.U1)] bool immediateAuth);
73+
6674
[DllImport("libglide_rs", CallingConvention = CallingConvention.Cdecl, EntryPoint = "refresh_iam_token")]
6775
public static extern void RefreshIamTokenFfi(IntPtr client, ulong index);
6876
#endif

0 commit comments

Comments
 (0)