-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPJS_Property.h
More file actions
41 lines (29 loc) · 774 Bytes
/
PJS_Property.h
File metadata and controls
41 lines (29 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*!
@header PJS_Function.h
@abstract Types and functions related to function bindings
*/
#ifndef __PJS_PROPERTY_H__
#define __PJS_PROPERTY_H__
#ifdef _cplusplus
extern "C" {
#endif
#include "EXTERN.h"
#include "perl.h"
#include "JavaScript_Env.h"
#include "PJS_Types.h"
#include "PJS_Common.h"
struct PJS_Property {
int8 tinyid;
SV *getter; /* these are coderefs! */
SV *setter;
struct PJS_Property *_next;
};
PJS_EXTERN void
PJS_free_property(PJS_Property *);
PJS_EXTERN void
PJS_free_JSPropertySpec(JSPropertySpec *);
PJS_EXTERN JSBool
PJS_invoke_perl_property_getter(JSContext *cx, JSObject *, jsval, jsval *);
PJS_EXTERN JSBool
PJS_invoke_perl_property_setter(JSContext *cx, JSObject *, jsval, jsval *);
#endif