Sha256: 39e41644e523dc86481c9f551d0bb58f2d494bb47c8ce079a0f7c4cf61bc6cc3

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

#include "PortalMembership.h"

VALUE	PortalMembership_from_FridaPortalMembership(FridaPortalMembership *handle)
{
    VALUE self;

    if (!handle)
        return (Qnil);
    self = rb_class_new_instance(0, NULL, cPortalMembership);
    GET_GOBJECT_DATA();
    d->handle = handle;
    d->destroy = frida_unref;
    return (self);
}

GVL_FREE_PROXY_FUNC(terminate_sync, FridaPortalMembership *handle)
{
    GError *gerr = NULL;

    frida_portal_membership_terminate_sync(handle, NULL, &gerr);
    RETURN_GVL_FREE_RESULT(NULL);
}

/*
    call-seq:
        #terminate() -> nil
*/
static VALUE PortalMembership_terminate(VALUE self)
{
    GET_GOBJECT_DATA();
    REQUIRE_GOBJECT_HANDLE();
    CALL_GVL_FREE_WITH_RET(void *dummy, terminate_sync, d->handle);
    return (Qnil);

    GERROR_BLOCK
}

void	define_PortalMembership()
{
    cPortalMembership = rb_define_class_under(mCFrida, "PortalMembership", cGObject);

    rb_define_method(cPortalMembership, "terminate", PortalMembership_terminate, 0);
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
frida-0.1.1 ext/c_frida/PortalMembership.c