Function Index

I |
| ino_context_free
| ino_context_get_global_object
| ino_context_new
| ino_eval
| ino_eval_utf8
| ino_variant_get_type
| ino_variant_new_boolean
| ino_variant_new_null
| ino_variant_new_number
| ino_variant_new_object
| ino_variant_new_string
| ino_variant_new_string_utf8
| ino_variant_new_undefined
| ino_variant_object_add_method
| ino_variant_object_add_method_utf8
| ino_variant_object_call
| ino_variant_object_get_property
| ino_variant_object_get_property_utf8
| ino_variant_object_set_property
| ino_variant_object_set_property_utf8
| ino_variant_protect
| ino_variant_to_boolean
| ino_variant_to_number
| ino_variant_to_string
| ino_variant_to_string_utf8
| ino_variant_unprotect

> INO_DEF void ino_context_free( | ino_context | ctx | )

Destroys an execution context.

> INO_DEF ino_variant ino_context_get_global_object( | ino_context | ctx | )

Gets the global object in ctx.

> INO_DEF ino_context ino_context_new()

Creates a new execution context.

> INO_DEF ino_variant ino_eval( |  | ino_context |  | ctx,
> | const | uint16_t | * | script | )

Evaluates a string of JavaScript code.

> INO_DEF ino_variant ino_eval_utf8( |  | ino_context |  | ctx,
> | const | char | * | script | )

Evaluates a string of JavaScript code.

> INO_DEF ino_variant_type ino_variant_get_type( | ino_context | ctx,
> | ino_variant | variant | )

Gets the type of value held by a variant.

> INO_DEF ino_variant ino_variant_new_boolean( | ino_context | ctx,
> | bool | value | )

Creates a new variant holding the specified boolean value.

> INO_DEF ino_variant ino_variant_new_null( | ino_context | ctx | )

Creates a new variant holding null.

> INO_DEF ino_variant ino_variant_new_number( | ino_context | ctx,
> | double | value | )

Creates a new variant holding the specified numeric value.

> INO_DEF ino_variant ino_variant_new_object( | ino_context | ctx | )

Creates a new variant holding a new object.

> INO_DEF ino_variant ino_variant_new_string( |  | ino_context |  | ctx,
> | const | uint16_t | * | value | )

Creates a new variant holding the specified string.

> INO_DEF ino_variant ino_variant_new_string_utf8( |  | ino_context |  | ctx,
> | const | char | * | value | )

Creates a new variant holding the specified string.

> INO_DEF ino_variant ino_variant_new_undefined( | ino_context | ctx | )

Creates a new variant holding undefined.

> INO_DEF ino_variant ino_variant_object_add_method( |  | ino_context |  | ctx,
> |  | ino_variant |  | object,
> | const | uint16_t | * | name,
> |  | ino_method_cb |  | cb | )

Adds a natively implemented method to an object.

> INO_DEF ino_variant ino_variant_object_add_method_utf8( |  | ino_context |  | ctx,
> |  | ino_variant |  | object,
> | const | char | * | name,
> |  | ino_method_cb |  | cb | )

Adds a natively implemented method to an object.

> INO_DEF ino_variant ino_variant_object_call( |  | ino_context |  | ctx,
> |  | ino_variant |  | object,
> | const | ino_variant | * | args,
> |  | size_t |  | n_args | )

Call an object as a function.

> INO_DEF ino_variant ino_variant_object_get_property( |  | ino_context |  | ctx,
> |  | ino_variant |  | object,
> | const | uint16_t | * | name | )

Gets a property from an object.

> INO_DEF ino_variant ino_variant_object_get_property_utf8( |  | ino_context |  | ctx,
> |  | ino_variant |  | object,
> | const | char | * | name | )

Gets a property from an object.

> INO_DEF void ino_variant_object_set_property( |  | ino_context |  | ctx,
> |  | ino_variant |  | object,
> | const | uint16_t | * | name,
> |  | ino_variant |  | value | )

Sets a property on an object.

> INO_DEF void ino_variant_object_set_property_utf8( |  | ino_context |  | ctx,
> |  | ino_variant |  | object,
> | const | char | * | name,
> |  | ino_variant |  | value | )

Sets a property on an object.

> INO_DEF void ino_variant_protect( | ino_context | ctx,
> | ino_variant | variant | )

Protects a variant from garbage collection.

> INO_DEF bool ino_variant_to_boolean( | ino_context | ctx,
> | ino_variant | variant | )

Converts a variant to boolean and returns its value.

> INO_DEF double ino_variant_to_number( | ino_context | ctx,
> | ino_variant | variant | )

Converts a variant to number and returns its value.

> INO_DEF uint16_t * ino_variant_to_string( | ino_context | ctx,
> | ino_variant | variant | )

Converts a variant to string and returns a UTF-16 encoding malloc()-allocated copy.

> INO_DEF char * ino_variant_to_string_utf8( | ino_context | ctx,
> | ino_variant | variant | )

Converts a variant to string and returns a UTF-8 encoding malloc()-allocated copy.

> INO_DEF void ino_variant_unprotect( | ino_context | ctx,
> | ino_variant | variant | )

Unprotects a variant from garbage collection.
Close