Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
myd7349 committed Aug 4, 2024
1 parent fd8ee78 commit 62584b0
Show file tree
Hide file tree
Showing 2 changed files with 253 additions and 54 deletions.
39 changes: 21 additions & 18 deletions Source/SharpLSL/Interop/XML.Interop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,45 +12,48 @@ public static extern int lsl_set_name(
lsl_xml_ptr e, [MarshalAs(UnmanagedType.LPStr)] string rhs);

[DllImport("lsl", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern lsl_xml_ptr lsl_child(
lsl_xml_ptr e, [MarshalAs(UnmanagedType.LPStr)] string name);
public static extern int lsl_set_value(
lsl_xml_ptr e, [MarshalAs(UnmanagedType.LPStr)] string rhs);

[DllImport("lsl", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern lsl_xml_ptr lsl_next_sibling_n(
public static extern lsl_xml_ptr lsl_child(
lsl_xml_ptr e, [MarshalAs(UnmanagedType.LPStr)] string name);

[DllImport("lsl", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern lsl_xml_ptr lsl_previous_sibling_n(
public static extern lsl_xml_ptr lsl_child_value_n(
lsl_xml_ptr e, [MarshalAs(UnmanagedType.LPStr)] string name);

[DllImport("lsl", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern lsl_xml_ptr lsl_child_value_n(lsl_xml_ptr e, [MarshalAs(UnmanagedType.LPStr)] string name);

[DllImport("lsl", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern lsl_xml_ptr lsl_append_child_value(lsl_xml_ptr e, [MarshalAs(UnmanagedType.LPStr)] string name, [MarshalAs(UnmanagedType.LPStr)] string value);
public static extern lsl_xml_ptr lsl_next_sibling_n(
lsl_xml_ptr e, [MarshalAs(UnmanagedType.LPStr)] string name);

[DllImport("lsl", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern lsl_xml_ptr lsl_prepend_child_value(lsl_xml_ptr e, [MarshalAs(UnmanagedType.LPStr)] string name, [MarshalAs(UnmanagedType.LPStr)] string value);
public static extern lsl_xml_ptr lsl_previous_sibling_n(
lsl_xml_ptr e, [MarshalAs(UnmanagedType.LPStr)] string name);

[DllImport("lsl", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern int lsl_set_child_value(lsl_xml_ptr e, [MarshalAs(UnmanagedType.LPStr)] string name, [MarshalAs(UnmanagedType.LPStr)] string value);
public static extern lsl_xml_ptr lsl_append_child_value(
lsl_xml_ptr e, [MarshalAs(UnmanagedType.LPStr)] string name, [MarshalAs(UnmanagedType.LPStr)] string value);

[DllImport("lsl", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern int lsl_set_value(lsl_xml_ptr e, [MarshalAs(UnmanagedType.LPStr)] string rhs);
public static extern lsl_xml_ptr lsl_prepend_child_value(
lsl_xml_ptr e, [MarshalAs(UnmanagedType.LPStr)] string name, [MarshalAs(UnmanagedType.LPStr)] string value);

[DllImport("lsl", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern lsl_xml_ptr lsl_append_child(lsl_xml_ptr e, [MarshalAs(UnmanagedType.LPStr)] string name);
public static extern int lsl_set_child_value(
lsl_xml_ptr e, [MarshalAs(UnmanagedType.LPStr)] string name, [MarshalAs(UnmanagedType.LPStr)] string value);


[DllImport("lsl", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern lsl_xml_ptr lsl_prepend_child(lsl_xml_ptr e, [MarshalAs(UnmanagedType.LPStr)] string name);
public static extern lsl_xml_ptr lsl_append_child(
lsl_xml_ptr e, [MarshalAs(UnmanagedType.LPStr)] string name);

[DllImport("lsl", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern void lsl_remove_child_n(lsl_xml_ptr e, [MarshalAs(UnmanagedType.LPStr)] string name);
public static extern lsl_xml_ptr lsl_prepend_child(
lsl_xml_ptr e, [MarshalAs(UnmanagedType.LPStr)] string name);

/*
[DllImport("lsl", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern void lsl_remove_child([NativeTypeName("lsl_xml_ptr")] IntPtr e, [NativeTypeName("lsl_xml_ptr")] IntPtr e2);
*/
public static extern void lsl_remove_child_n(
lsl_xml_ptr e, [MarshalAs(UnmanagedType.LPStr)] string name);
}
}
Loading

0 comments on commit 62584b0

Please sign in to comment.