FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
WebKit/Source/JavaScriptCore/API/glib/JSCClass.h.in at main · WebKit/WebKit · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
WebKit
/
WebKit
Public
Notifications
You must be signed in to change notification settings
Fork
2.1k
Star
10.1k
Code
Pull requests
2.6k
Actions
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
WebKit
/
Source
/
JavaScriptCore
/
API
/
glib
/
JSCClass.h.in
Copy path
More file actions
More file actions
Latest commit
History
History
History
158 lines (136 loc) · 6.94 KB
Breadcrumbs
WebKit
/
Source
/
JavaScriptCore
/
API
/
glib
/
JSCClass.h.in
Copy path
File metadata and controls
158 lines (136 loc) · 6.94 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
/*
* Copyright (C) 2018 Igalia S.L.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#if
!defined(
__JSC_H_INSIDE__
)
&&
!defined(
BUILDING_WEBKIT
)
#error
"Only <jsc/jsc.h> can be included directly."
#endif
#ifndef
JSCClass_h
#define
JSCClass_h
#include
<glib-object.h>
#include
<jsc/JSCDefines.h>
#include
<jsc/JSCValue.h>
G_BEGIN_DECLS
#define
JSC_TYPE_CLASS
(jsc_class_get_type())
#if
!
ENABLE
(
2022
_GLIB_API
)
#define
JSC_CLASS
(
obj
) (G_TYPE_CHECK_INSTANCE_CAST((obj), JSC_TYPE_CLASS, JSCClass))
#define
JSC_IS_CLASS
(
obj
) (G_TYPE_CHECK_INSTANCE_TYPE((obj), JSC_TYPE_CLASS))
#endif
JSC_DECLARE_FINAL_TYPE
(
JSCClass
,
jsc_class
,
JSC
,
CLASS
,
GObject
)
typedef
struct
_JSCContext
JSCContext
;
typedef
JSCValue
*
(
*
JSCClassGetPropertyFunction
) (
JSCClass
*
jsc_class
,
JSCContext
*
context
,
gpointer
instance
,
const
char
*
name
);
typedef
gboolean
(
*
JSCClassSetPropertyFunction
) (
JSCClass
*
jsc_class
,
JSCContext
*
context
,
gpointer
instance
,
const
char
*
name
,
JSCValue
*
value
);
typedef
gboolean
(
*
JSCClassHasPropertyFunction
) (
JSCClass
*
jsc_class
,
JSCContext
*
context
,
gpointer
instance
,
const
char
*
name
);
typedef
gboolean
(
*
JSCClassDeletePropertyFunction
) (
JSCClass
*
jsc_class
,
JSCContext
*
context
,
gpointer
instance
,
const
char
*
name
);
typedef
gchar
*
*
(
*
JSCClassEnumeratePropertiesFunction
) (
JSCClass
*
jsc_class
,
JSCContext
*
context
,
gpointer
instance
);
typedef
struct
{
JSCClassGetPropertyFunction
get_property
;
JSCClassSetPropertyFunction
set_property
;
JSCClassHasPropertyFunction
has_property
;
JSCClassDeletePropertyFunction
delete_property
;
JSCClassEnumeratePropertiesFunction
enumerate_properties
;
/*< private >*/
void
(
*
_jsc_reserved0
) (
void
);
void
(
*
_jsc_reserved1
) (
void
);
void
(
*
_jsc_reserved2
) (
void
);
void
(
*
_jsc_reserved3
) (
void
);
#if
ENABLE
(
2022
_GLIB_API
)
void
(
*
_jsc_reserved4
) (
void
);
void
(
*
_jsc_reserved5
) (
void
);
void
(
*
_jsc_reserved6
) (
void
);
void
(
*
_jsc_reserved7
) (
void
);
#endif
}
JSCClassVTable
;
JSC_API
const
char
*
jsc_class_get_name
(
JSCClass
*
jsc_class
);
JSC_API
JSCClass
*
jsc_class_get_parent
(
JSCClass
*
jsc_class
);
JSC_API
JSCValue
*
jsc_class_add_constructor
(
JSCClass
*
jsc_class
,
const
char
*
name
,
GCallback
callback
,
gpointer
user_data
,
GDestroyNotify
destroy_notify
,
GType
return_type
,
guint
n_params
,
...);
JSC_API
JSCValue
*
jsc_class_add_constructorv
(
JSCClass
*
jsc_class
,
const
char
*
name
,
GCallback
callback
,
gpointer
user_data
,
GDestroyNotify
destroy_notify
,
GType
return_type
,
guint
n_parameters
,
GType
*
parameter_types
);
JSC_API
JSCValue
*
jsc_class_add_constructor_variadic
(
JSCClass
*
jsc_class
,
const
char
*
name
,
GCallback
callback
,
gpointer
user_data
,
GDestroyNotify
destroy_notify
,
GType
return_type
);
JSC_API
void
jsc_class_add_method
(
JSCClass
*
jsc_class
,
const
char
*
name
,
GCallback
callback
,
gpointer
user_data
,
GDestroyNotify
destroy_notify
,
GType
return_type
,
guint
n_params
,
...);
JSC_API
void
jsc_class_add_methodv
(
JSCClass
*
jsc_class
,
const
char
*
name
,
GCallback
callback
,
gpointer
user_data
,
GDestroyNotify
destroy_notify
,
GType
return_type
,
guint
n_parameters
,
GType
*
parameter_types
);
JSC_API
void
jsc_class_add_method_variadic
(
JSCClass
*
jsc_class
,
const
char
*
name
,
GCallback
callback
,
gpointer
user_data
,
GDestroyNotify
destroy_notify
,
GType
return_type
);
JSC_API
void
jsc_class_add_property
(
JSCClass
*
jsc_class
,
const
char
*
name
,
GType
property_type
,
GCallback
getter
,
GCallback
setter
,
gpointer
user_data
,
GDestroyNotify
destroy_notify
);
G_END_DECLS
#endif
/* JSCClass_h */
Back
|
FazBrowse Home
|
New Git URL