Ejemplo n.º 1
0
u_result
u_instanceHandleClaim (
    u_instanceHandle _this,
    c_voidp instance)
{
    u_result result;
    v_handle handle;
    u_instanceHandleTranslator translator;

    if (instance == NULL) {
        result = U_RESULT_ILL_PARAM;
    } else if (_this == 0) {
        result = U_RESULT_ILL_PARAM;
    } else {
        translator.handle = _this;

        handle.serial = (translator.lid.lifecycleId & HANDLE_SERIAL_MASK);
        handle.index  = translator.lid.localId;
        handle.server = u_userServer(translator.lid.lifecycleId & HANDLE_SERVER_MASK);

        result = u__handleResult(v_handleClaim(handle,instance));
    }

    return result;
}
Ejemplo n.º 2
0
u_result
u_handleClaim (
    u_handle _this,
    c_voidp  instance)
{
    return u__handleResult (v_handleClaim (_this, instance));
}
Ejemplo n.º 3
0
u_result
u_handleRelease(
    u_handle _this)
{
    return u__handleResult (v_handleRelease (_this));
}