1 // copyright (C) 2012 Intel Corporation. All rights reserved.
2 // Copyright 2014 Samsung Electronics. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
8 * @brief Describes the Ewk Ref Counted API.
21 /** Creates a type name for Ewk_Object */
22 typedef struct EwkObject Ewk_Object;
25 * Increases the reference count of the given Ewk_Object.
27 * @param object the Ewk_Object instance to increase the reference count
29 * @return a pointer to the object on success, @c NULL otherwise.
31 EXPORT_API Ewk_Object *ewk_object_ref(Ewk_Object *object);
34 * Decreases the reference count of the given Ewk_Object, possibly freeing it.
36 * When the reference count reaches 0, the item is freed.
38 * @param object the Ewk_Object instance to decrease the reference count
40 EXPORT_API void ewk_object_unref(Ewk_Object *object);
46 #endif // ewk_object_h