#include <oskit/com.h>OSKIT_COMDECL_U addref(oskit_iunknown_t *obj);
This method adds one to the interface's reference count (or to the object's reference count, if the object implements only one counter for all its interfaces). A corresponding call must later be made to the release method.
- obj
- The interface on which to increment the reference count.
Returns the new reference count. This return code should only be used for debugging purposes, as its value is generally unstable at run time and its behavior depends on the object's implementation.