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

Gyuyoung Kim gyuyoung at gmail.com
Thu Sep 13 23:29:26 PDT 2012


Great !! Thank you for adding this to EFL coding style. :)

Gyuyoung.

On Thu, Sep 13, 2012 at 4:25 PM, Dumez, Christophe <
christophe.dumez at intel.com> wrote:

> Hi,
>
> 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
> ref'd.
>
> This makes them more convenient to use:
>
> e.g. the following:
>   ewk_download_job_ref(ewkDownload);
>   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
> change.
> 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
>
> Kr,
> --
> Christophe Dumez
> Linux Software Engineer, PhD
> Intel Finland Oy - Open Source Technology Center
>
>
> _______________________________________________
> webkit-efl mailing list
> webkit-efl at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo/webkit-efl
>
>


-- 
- Gyuyoung
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-efl/attachments/20120914/85d0d1a1/attachment.html>


More information about the webkit-efl mailing list