I’m very disappointed to see that gio was removed.
What would it take to get it re-added?
And please don’t use DECLARE*, DEF_, SCAN_ family
macros. Please keep coding style with other bindings.
I have now removed all DECLARE* and DEF_; four hours of work, even
with automation. What exactly is the problem with SCAN_? I can
rename them to RBGIO2_SCAN_*, but I have absolutely no desire to
duplicate that kind of code for exactly the reasons I stated
previously:
… sometimes order is important and then we have a problem if it is done
in different ways
I can also make the argument and block variables name explicit, that
is, instead of
GCancellable *cancellable;
VALUE block;
SCAN_1_ARG_WITH_BLOCK("01", cancellable, RVAL2GCANCELLABLE);
g_drive_poll_for_media(_SELF(self),
cancellable,
rbgio_async_ready_callback,
(gpointer)block);
return self;
we can have
GCancellable *cancellable;
VALUE block;
RBGIO2_SCAN_1_ARG_WITH_BLOCK(argc, argv, "01", cancellable,
RVAL2GCANCELLABLE, block);
g_drive_poll_for_media(_SELF(self),
cancellable,
rbgio_async_ready_callback,
(gpointer)block);
return self;
if that kind of “behind the scenes†action is confusing.
Is this an acceptable compromise?