[webkit-efl] Make _ref() functions return the ref'd object

Dumez, Christophe christophe.dumez at intel.com
Thu Sep 13 00:25:59 PDT 2012


I would like to notify you that I'm landing a patch [1] to change the
prototype of our *_ref() functions so that they now return the object being

This makes them more convenient to use:

e.g. the following:
  ewkContext->downloadJobs.add(downloadId, ewkDownload);

is replaced by:
  ewkContext->downloadJobs.add(downloadId, ewk_download_job_ref(ewkDownload));

This is consistent with both eina_stringshare_ref() in EFL and
g_object_ref() in glib.

Note that I have updated the EFL coding style wiki [2] to reflect this
Please keep this in mind when you add new _ref() functions or when adding
new code that uses them.

[1] https://bugs.webkit.org/show_bug.cgi?id=96604
[2] https://trac.webkit.org/wiki/EFLWebKitCodingStyle

Christophe Dumez
Linux Software Engineer, PhD
Intel Finland Oy - Open Source Technology Center
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-efl/attachments/20120913/07d03d0f/attachment.html>

More information about the webkit-efl mailing list