Index

E |
| Enumerations
F |
| Functions
G |
| Global Declaration Macros
I |
| ino
| INO_BEGIN_C_DECLS
| ino_context
| ino_context_free
| ino_context_get_global_object
| ino_context_new
| INO_DEF
| INO_END_C_DECLS
| ino_eval
| ino_eval_utf8
| INO_EXPORT
| INO_IMPORT
| ino_method_cb
| INO_PRIVATE
| INO_PUBLIC
| ino_variant
| 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_type
| INO_VARIANT_TYPE_BOOLEAN
| INO_VARIANT_TYPE_NULL
| INO_VARIANT_TYPE_NUMBER
| INO_VARIANT_TYPE_OBJECT
| INO_VARIANT_TYPE_STRING
| ino_variant_unprotect
| INO_VARINAT_TYPE_UNDEFINED
S |
| Symbol Declaration Macros
T |
| Types

These macros are meant to be used to delimit declarations in public header files.
Version: 0.4.0, API: 0.0.0.
Delimits the beginning of public declarations.

> typedef void* ino_context

Execution context.

> 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.
Equivalent to a combination of INO_PUBLIC and INO_EXPORT if the INO_IMPLEMENTATION flag is defined or to a combination of INO_PRIVATE and INO_IMPORT otherwise.
Delimits the end of public declarations.

> 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.
Specifies that a symbol is to be exported.
Specifies that a symbol is imported from a library.

> typedef ino_variant (
> | * | ino_method_cb
> )(ino_context ctx, const ino_variant *args, size_t n_args)

Native method callback.
Specifies that a symbol has hidden visibility.
Specifies that a symbol is publicly visible.

> typedef void* ino_variant

Variant.

> 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.
Variant type.
Boolean value.
null value.
Numeric value.
Object.
String.

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

Unprotects a variant from garbage collection.
undefined value.
These macros are meant to be used for SINGLE symbol declarations (variables or functions) by prepending them to such declarations.
Close