summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2020-01-29 13:46:37 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2020-01-29 13:46:37 +0900
commitb8f5d12d4e224976d6a01937fcacc73ed5353216 (patch)
tree503e413f5b5b2a069d6b2127578363f47ef18c05
parent5ddd384aee818504633825caf0af3afc57dc1e79 (diff)
eolian_mono: blacklist c-only internal APIs
Summary: This patch prevent generating c-only internal APIs. C# doesn't need c-only APIs. Test Plan: meson build -Dbindings=mono,cxx -Dmono-beta=true Reviewers: felipealmeida, Jaehyun_Cho, woohyun Reviewed By: woohyun Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11151
-rw-r--r--src/bin/eolian_mono/eolian/mono/blacklist.hh2
-rw-r--r--src/bindings/mono/eo_mono/workaround.cs64
2 files changed, 2 insertions, 64 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/blacklist.hh b/src/bin/eolian_mono/eolian/mono/blacklist.hh
index 3dd41208a4..683095f1dd 100644
--- a/src/bin/eolian_mono/eolian/mono/blacklist.hh
+++ b/src/bin/eolian_mono/eolian/mono/blacklist.hh
@@ -69,6 +69,8 @@ inline bool is_function_blacklisted(std::string const& c_name)
69 || c_name == "efl_access_object_event_handler_add" 69 || c_name == "efl_access_object_event_handler_add"
70 || c_name == "efl_access_object_event_handler_del" 70 || c_name == "efl_access_object_event_handler_del"
71 || c_name == "efl_access_object_event_emit" 71 || c_name == "efl_access_object_event_emit"
72 || c_name == "efl_access_widget_action_elm_actions_get"
73 || c_name == "efl_access_action_actions_get"
72 ; 74 ;
73} 75}
74 76
diff --git a/src/bindings/mono/eo_mono/workaround.cs b/src/bindings/mono/eo_mono/workaround.cs
index 3e6829feef..81aa32499e 100644
--- a/src/bindings/mono/eo_mono/workaround.cs
+++ b/src/bindings/mono/eo_mono/workaround.cs
@@ -224,68 +224,4 @@ internal struct Event
224internal delegate void EventCb(System.IntPtr data, ref Event evt); 224internal delegate void EventCb(System.IntPtr data, ref Event evt);
225internal delegate void FreeWrapperSupervisorCb(System.IntPtr obj); 225internal delegate void FreeWrapperSupervisorCb(System.IntPtr obj);
226 226
227namespace Access
228{
229
230public struct ActionData : IEquatable<ActionData>
231{
232 public IntPtr name;
233 public IntPtr action;
234 public IntPtr param;
235 public IntPtr func;
236
237
238 /// <summary>
239 /// Gets a hash for <see cref="ActionData" />.
240 /// <para>Since EFL 1.24.</para>
241 /// </summary>
242 /// <returns>A hash code.</returns>
243 public override int GetHashCode()
244 => name.GetHashCode() ^ action.GetHashCode()
245 ^ param.GetHashCode() ^ func.GetHashCode();
246
247 /// <summary>Returns whether this <see cref="ActionData" />
248 /// is equal to the given <see cref="object" />.
249 /// <para>Since EFL 1.24.</para>
250 /// </summary>
251 /// <param name="other">The <see cref="object" /> to be compared to.</param>
252 /// <returns><c>true</c> if is equal to <c>other</c>.</returns>
253 public override bool Equals(object other)
254 => (!(other is ActionData)) ? false
255 : Equals((ActionData)other);
256
257
258 /// <summary>Returns whether this <see cref="ActionData" /> is equal
259 /// to the given <see cref="ActionData" />.
260 /// <para>Since EFL 1.24.</para>
261 /// </summary>
262 /// <param name="other">The <see cref="ActionData" /> to be compared to.</param>
263 /// <returns><c>true</c> if is equal to <c>other</c>.</returns>
264 public bool Equals(ActionData other)
265 => (name == other.name) && (action == other.action)
266 && (param == other.param) && (func == other.func);
267
268 /// <summary>Returns whether <c>lhs</c> is equal to <c>rhs</c>.
269 /// <para>Since EFL 1.24.</para>
270 /// </summary>
271 /// <param name="lhs">The left hand side of the operator.</param>
272 /// <param name="rhs">The right hand side of the operator.</param>
273 /// <returns><c>true</c> if <c>lhs</c> is equal
274 /// to <c>rhs</c>.</returns>
275 public static bool operator==(ActionData lhs, ActionData rhs)
276 => lhs.Equals(rhs);
277
278 /// <summary>Returns whether <c>lhs</c> is not equal to <c>rhs</c>.
279 /// <para>Since EFL 1.24.</para>
280 /// </summary>
281 /// <param name="lhs">The left hand side of the operator.</param>
282 /// <param name="rhs">The right hand side of the operator.</param>
283 /// <returns><c>true</c> if <c>lhs</c> is not equal
284 /// to <c>rhs</c>.</returns>
285 public static bool operator!=(ActionData lhs, ActionData rhs)
286 => !(lhs == rhs);
287}
288
289} // namespace Access
290
291} // namespace Efl 227} // namespace Efl