Typedef struct jsobject jsobject, Typedef struct jsval jsval, Typedef enum { js_false = 0, js_true = 1 } jsbool – Adobe Extending Flash Professional CS5 User Manual
Page 556: The c-level api

534
EXTENDING FLASH PROFESSIONAL
C-Level Extensibility
Last updated 5/2/2011
typedef struct JSObject JSObject
A pointer to this opaque data type passes to the C-level function. This data type represents an object, which might be
an array object or some other object type.
typedef struct jsval jsval
An opaque data structure that can contain an integer, or a pointer to a float, string, or object. Some functions in the
API can read the values of function arguments by reading the contents of a
jsval
structure, and some can be used to
write the function’s return value by writing a
jsval
structure.
typedef enum { JS_FALSE = 0, JS_TRUE = 1 } JSBool
A simple data type that stores a Boolean value.
The C-level API
The C-level extensibility API consists of the
JSBool (*JSNative)
function signature and the following functions:
•
•
unsigned short *JS_ValueToString()
•
•
•
•
•
•
•
•
•
•
•
unsigned short *JS_ObjectType()
•
•
•
•
•