File: PJS_Property.h

package info (click to toggle)
libjavascript-perl 1.08-1%2Blenny1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 412 kB
  • ctags: 203
  • sloc: perl: 1,686; ansic: 1,620; makefile: 55
file content (41 lines) | stat: -rw-r--r-- 774 bytes parent folder | download | duplicates (2)
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