SeedClosure

SeedClosure

Functions

Types and Values

struct SeedClosure

Includes

#include <seed/seed.h>

Description

Functions

seed_closure_new ()

GClosure *
seed_closure_new (SeedContext ctx,
                  SeedObject function,
                  SeedObject user_data,
                  const gchar *description);

seed_closure_get_callable ()

SeedObject
seed_closure_get_callable (GClosure *c);

seed_closure_invoke ()

SeedValue
seed_closure_invoke (GClosure *closure,
                     SeedValue *args,
                     guint argc,
                     SeedException *exception);

seed_closure_invoke_with_context ()

SeedValue
seed_closure_invoke_with_context (SeedContext ctx,
                                  GClosure *closure,
                                  SeedValue *args,
                                  guint argc,
                                  SeedException *exception);

seed_closure_warn_exception ()

void
seed_closure_warn_exception (GClosure *c,
                             SeedContext ctx,
                             SeedException exception);

Types and Values

struct SeedClosure

struct SeedClosure {
  GClosure closure;

  JSObjectRef function;
  JSValueRef user_data;

  GType return_type;
  gchar *description;
};