angelscript_sys/
c_function.rs1#![allow(dead_code)]
2
3use crate::c_types::*;
4
5 extern "C" {
6
7 pub fn asFunction_GetEngine(
8 f: *const asIScriptFunction
9 ) -> *mut asIScriptEngine;
10
11 pub fn asFunction_AddRef(
12 f: *const asIScriptFunction
13 ) -> ::std::os::raw::c_int;
14
15 pub fn asFunction_Release(
16 f: *const asIScriptFunction
17 ) -> ::std::os::raw::c_int;
18
19 pub fn asFunction_GetId(
20 f: *const asIScriptFunction
21 ) -> ::std::os::raw::c_int;
22
23 pub fn asFunction_GetFuncType(
24 f: *const asIScriptFunction
25 ) -> asEFuncType;
26
27 pub fn asFunction_GetModuleName(
28 f: *const asIScriptFunction
29 ) -> *const ::std::os::raw::c_char;
30
31 pub fn asFunction_GetModule(
32 f: *const asIScriptFunction
33 ) -> *mut asIScriptModule;
34
35 pub fn asFunction_GetScriptSectionName(
36 f: *const asIScriptFunction,
37 ) -> *const ::std::os::raw::c_char;
38
39 pub fn asFunction_GetConfigGroup(
40 f: *const asIScriptFunction
41 ) -> *const ::std::os::raw::c_char;
42
43 pub fn asFunction_GetAccessMask(
44 f: *const asIScriptFunction
45 ) -> asDWORD;
46
47 pub fn asFunction_GetAuxiliary(
48 f: *const asIScriptFunction
49 ) -> *mut ::std::os::raw::c_void;
50
51 pub fn asFunction_GetObjectType(
52 f: *const asIScriptFunction
53 ) -> *mut asITypeInfo;
54
55 pub fn asFunction_GetObjectName(
56 f: *const asIScriptFunction
57 ) -> *const ::std::os::raw::c_char;
58
59 pub fn asFunction_GetName(
60 f: *const asIScriptFunction
61 ) -> *const ::std::os::raw::c_char;
62
63 pub fn asFunction_GetNamespace(
64 f: *const asIScriptFunction
65 ) -> *const ::std::os::raw::c_char;
66
67 pub fn asFunction_GetDeclaration(
68 f: *const asIScriptFunction,
69 includeObjectName: asBOOL,
70 includeNamespace: asBOOL,
71 ) -> *const ::std::os::raw::c_char;
72
73 pub fn asFunction_IsReadOnly(
74 f: *const asIScriptFunction
75 ) -> asBOOL;
76
77 pub fn asFunction_IsPrivate(
78 f: *const asIScriptFunction
79 ) -> asBOOL;
80
81 pub fn asFunction_IsProtected(
82 f: *const asIScriptFunction
83 ) -> asBOOL;
84
85 pub fn asFunction_IsFinal(
86 f: *const asIScriptFunction
87 ) -> asBOOL;
88
89 pub fn asFunction_IsOverride(
90 f: *const asIScriptFunction
91 ) -> asBOOL;
92
93 pub fn asFunction_IsShared(
94 f: *const asIScriptFunction
95 ) -> asBOOL;
96
97 pub fn asFunction_GetParamCount(
98 f: *const asIScriptFunction
99 ) -> asUINT;
100
101 pub fn asFunction_GetParam(
102 f: *const asIScriptFunction,
103 index: asUINT,
104 typeId: *mut ::std::os::raw::c_int,
105 flags: *mut asDWORD,
106 name: *mut *const ::std::os::raw::c_char,
107 defaultArg: *mut *const ::std::os::raw::c_char,
108 ) -> ::std::os::raw::c_int;
109
110 pub fn asFunction_GetReturnTypeId(
111 f: *const asIScriptFunction
112 ) -> ::std::os::raw::c_int;
113
114 pub fn asFunction_GetTypeId(
115 f: *const asIScriptFunction
116 ) -> ::std::os::raw::c_int;
117
118 pub fn asFunction_IsCompatibleWithTypeId(
119 f: *const asIScriptFunction,
120 typeId: ::std::os::raw::c_int,
121 ) -> asBOOL;
122
123 pub fn asFunction_GetDelegateObject(
124 f: *const asIScriptFunction
125 ) -> *mut ::std::os::raw::c_void;
126
127 pub fn asFunction_GetDelegateObjectType(
128 f: *const asIScriptFunction
129 ) -> *mut asITypeInfo;
130
131 pub fn asFunction_GetDelegateFunction(
132 f: *const asIScriptFunction
133 ) -> *mut asIScriptFunction;
134
135 pub fn asFunction_GetVarCount(
136 f: *const asIScriptFunction
137 ) -> asUINT;
138
139 pub fn asFunction_GetVar(
140 f: *const asIScriptFunction,
141 index: asUINT,
142 name: *mut *const ::std::os::raw::c_char,
143 typeId: *mut ::std::os::raw::c_int,
144 ) -> ::std::os::raw::c_int;
145
146 pub fn asFunction_GetVarDecl(
147 f: *const asIScriptFunction,
148 index: asUINT,
149 includeNamespace: asBOOL,
150 ) -> *const ::std::os::raw::c_char;
151
152 pub fn asFunction_FindNextLineWithCode(
153 f: *const asIScriptFunction,
154 line: ::std::os::raw::c_int,
155 ) -> ::std::os::raw::c_int;
156
157 pub fn asFunction_GetByteCode(
158 f: *mut asIScriptFunction,
159 length: *mut asUINT
160 ) -> *mut asDWORD;
161
162 pub fn asFunction_SetUserData(
163 f: *mut asIScriptFunction,
164 userData: *mut ::std::os::raw::c_void,
165 ) -> *mut ::std::os::raw::c_void;
166
167 pub fn asFunction_GetUserData(
168 f: *const asIScriptFunction
169 ) -> *mut ::std::os::raw::c_void;
170
171 }