14#ifndef INTERROGATE_INTERFACE_H
15#define INTERROGATE_INTERFACE_H
58typedef int ManifestIndex;
59typedef int ElementIndex;
61typedef int FunctionIndex;
62typedef int FunctionWrapperIndex;
63typedef int MakeSeqIndex;
92EXPCL_INTERROGATEDB
void interrogate_add_search_directory(
const char *dirname);
93EXPCL_INTERROGATEDB
void interrogate_add_search_path(
const char *pathstring);
94EXPCL_INTERROGATEDB
bool interrogate_error_flag();
109EXPCL_INTERROGATEDB
int interrogate_number_of_manifests();
110EXPCL_INTERROGATEDB ManifestIndex interrogate_get_manifest(
int n);
111EXPCL_INTERROGATEDB ManifestIndex interrogate_get_manifest_by_name(
const char *manifest_name);
112EXPCL_INTERROGATEDB
const char *interrogate_manifest_name(ManifestIndex manifest);
113EXPCL_INTERROGATEDB
const char *interrogate_manifest_definition(ManifestIndex manifest);
114EXPCL_INTERROGATEDB
bool interrogate_manifest_has_type(ManifestIndex manifest);
115EXPCL_INTERROGATEDB TypeIndex interrogate_manifest_get_type(ManifestIndex manifest);
116EXPCL_INTERROGATEDB
bool interrogate_manifest_has_getter(ManifestIndex manifest);
117EXPCL_INTERROGATEDB FunctionIndex interrogate_manifest_getter(ManifestIndex manifest);
124EXPCL_INTERROGATEDB
bool interrogate_manifest_has_int_value(ManifestIndex manifest);
125EXPCL_INTERROGATEDB
int interrogate_manifest_get_int_value(ManifestIndex manifest);
134EXPCL_INTERROGATEDB
const char *interrogate_element_name(ElementIndex element);
135EXPCL_INTERROGATEDB
const char *interrogate_element_scoped_name(ElementIndex element);
136EXPCL_INTERROGATEDB
bool interrogate_element_has_comment(ElementIndex element);
137EXPCL_INTERROGATEDB
const char *interrogate_element_comment(ElementIndex element);
138EXPCL_INTERROGATEDB ElementIndex interrogate_get_element_by_name(
const char *element_name);
139EXPCL_INTERROGATEDB ElementIndex interrogate_get_element_by_scoped_name(
const char *element_name);
149EXPCL_INTERROGATEDB TypeIndex interrogate_element_type(ElementIndex element);
151EXPCL_INTERROGATEDB
bool interrogate_element_has_getter(ElementIndex element);
152EXPCL_INTERROGATEDB FunctionIndex interrogate_element_getter(ElementIndex element);
153EXPCL_INTERROGATEDB
bool interrogate_element_has_setter(ElementIndex element);
154EXPCL_INTERROGATEDB FunctionIndex interrogate_element_setter(ElementIndex element);
156EXPCL_INTERROGATEDB
bool interrogate_element_is_sequence(ElementIndex element);
157EXPCL_INTERROGATEDB
bool interrogate_element_is_mapping(ElementIndex element);
163EXPCL_INTERROGATEDB
int interrogate_number_of_globals();
164EXPCL_INTERROGATEDB ElementIndex interrogate_get_global(
int n);
175EXPCL_INTERROGATEDB
int interrogate_number_of_global_functions();
176EXPCL_INTERROGATEDB FunctionIndex interrogate_get_global_function(
int n);
183EXPCL_INTERROGATEDB
int interrogate_number_of_functions();
184EXPCL_INTERROGATEDB FunctionIndex interrogate_get_function(
int n);
191EXPCL_INTERROGATEDB
const char *interrogate_function_name(FunctionIndex
function);
198EXPCL_INTERROGATEDB
const char *interrogate_function_scoped_name(FunctionIndex
function);
202EXPCL_INTERROGATEDB
bool interrogate_function_has_comment(FunctionIndex
function);
203EXPCL_INTERROGATEDB
const char *interrogate_function_comment(FunctionIndex
function);
207EXPCL_INTERROGATEDB
const char *interrogate_function_prototype(FunctionIndex
function);
211EXPCL_INTERROGATEDB
bool interrogate_function_is_method(FunctionIndex
function);
212EXPCL_INTERROGATEDB TypeIndex interrogate_function_class(FunctionIndex
function);
215EXPCL_INTERROGATEDB
bool interrogate_function_has_module_name(FunctionIndex
function);
216EXPCL_INTERROGATEDB
const char *interrogate_function_module_name(FunctionIndex
function);
219EXPCL_INTERROGATEDB
bool interrogate_function_has_library_name(FunctionIndex
function);
220EXPCL_INTERROGATEDB
const char *interrogate_function_library_name(FunctionIndex
function);
224EXPCL_INTERROGATEDB
bool interrogate_function_is_virtual(FunctionIndex
function);
235EXPCL_INTERROGATEDB
int interrogate_function_number_of_c_wrappers(FunctionIndex
function);
236EXPCL_INTERROGATEDB FunctionWrapperIndex interrogate_function_c_wrapper(FunctionIndex
function,
int n);
238EXPCL_INTERROGATEDB
int interrogate_function_number_of_python_wrappers(FunctionIndex
function);
239EXPCL_INTERROGATEDB FunctionWrapperIndex interrogate_function_python_wrapper(FunctionIndex
function,
int n);
258EXPCL_INTERROGATEDB
const char *interrogate_wrapper_name(FunctionWrapperIndex wrapper);
262EXPCL_INTERROGATEDB
bool interrogate_wrapper_is_callable_by_name(FunctionWrapperIndex wrapper);
267EXPCL_INTERROGATEDB
bool interrogate_wrapper_has_comment(FunctionWrapperIndex wrapper);
268EXPCL_INTERROGATEDB
const char *interrogate_wrapper_comment(FunctionWrapperIndex wrapper);
277EXPCL_INTERROGATEDB
bool interrogate_wrapper_has_return_value(FunctionWrapperIndex wrapper);
278EXPCL_INTERROGATEDB TypeIndex interrogate_wrapper_return_type(FunctionWrapperIndex wrapper);
293EXPCL_INTERROGATEDB
bool interrogate_wrapper_caller_manages_return_value(FunctionWrapperIndex wrapper);
294EXPCL_INTERROGATEDB FunctionIndex interrogate_wrapper_return_value_destructor(FunctionWrapperIndex wrapper);
297EXPCL_INTERROGATEDB
int interrogate_wrapper_number_of_parameters(FunctionWrapperIndex wrapper);
298EXPCL_INTERROGATEDB TypeIndex interrogate_wrapper_parameter_type(FunctionWrapperIndex wrapper,
int n);
299EXPCL_INTERROGATEDB
bool interrogate_wrapper_parameter_has_name(FunctionWrapperIndex wrapper,
int n);
300EXPCL_INTERROGATEDB
const char *interrogate_wrapper_parameter_name(FunctionWrapperIndex wrapper,
int n);
301EXPCL_INTERROGATEDB
bool interrogate_wrapper_parameter_is_this(FunctionWrapperIndex wrapper,
int n);
310EXPCL_INTERROGATEDB
bool interrogate_wrapper_has_pointer(FunctionWrapperIndex wrapper);
311EXPCL_INTERROGATEDB
void *interrogate_wrapper_pointer(FunctionWrapperIndex wrapper);
322EXPCL_INTERROGATEDB
const char *interrogate_wrapper_unique_name(FunctionWrapperIndex wrapper);
331EXPCL_INTERROGATEDB FunctionWrapperIndex interrogate_get_wrapper_by_unique_name(
const char *unique_name);
340EXPCL_INTERROGATEDB
const char *interrogate_make_seq_seq_name(MakeSeqIndex make_seq);
341EXPCL_INTERROGATEDB
const char *interrogate_make_seq_scoped_name(MakeSeqIndex make_seq);
342EXPCL_INTERROGATEDB
bool interrogate_make_seq_has_comment(ElementIndex element);
343EXPCL_INTERROGATEDB
const char *interrogate_make_seq_comment(ElementIndex element);
345EXPCL_INTERROGATEDB
const char *interrogate_make_seq_num_name(MakeSeqIndex make_seq);
347EXPCL_INTERROGATEDB
const char *interrogate_make_seq_element_name(MakeSeqIndex make_seq);
366EXPCL_INTERROGATEDB
int interrogate_number_of_global_types();
367EXPCL_INTERROGATEDB TypeIndex interrogate_get_global_type(
int n);
368EXPCL_INTERROGATEDB
int interrogate_number_of_types();
369EXPCL_INTERROGATEDB TypeIndex interrogate_get_type(
int n);
370EXPCL_INTERROGATEDB TypeIndex interrogate_get_type_by_name(
const char *type_name);
371EXPCL_INTERROGATEDB TypeIndex interrogate_get_type_by_scoped_name(
const char *type_name);
372EXPCL_INTERROGATEDB TypeIndex interrogate_get_type_by_true_name(
const char *type_name);
373EXPCL_INTERROGATEDB
bool interrogate_type_is_global(TypeIndex type);
374EXPCL_INTERROGATEDB
const char *interrogate_type_name(TypeIndex type);
375EXPCL_INTERROGATEDB
const char *interrogate_type_scoped_name(TypeIndex type);
376EXPCL_INTERROGATEDB
const char *interrogate_type_true_name(TypeIndex type);
384EXPCL_INTERROGATEDB
bool interrogate_type_is_nested(TypeIndex type);
385EXPCL_INTERROGATEDB TypeIndex interrogate_type_outer_class(TypeIndex type);
387EXPCL_INTERROGATEDB
bool interrogate_type_has_comment(TypeIndex type);
388EXPCL_INTERROGATEDB
const char *interrogate_type_comment(TypeIndex type);
391EXPCL_INTERROGATEDB
bool interrogate_type_has_module_name(TypeIndex type);
392EXPCL_INTERROGATEDB
const char *interrogate_type_module_name(TypeIndex type);
395EXPCL_INTERROGATEDB
bool interrogate_type_has_library_name(TypeIndex type);
396EXPCL_INTERROGATEDB
const char *interrogate_type_library_name(TypeIndex type);
403EXPCL_INTERROGATEDB
bool interrogate_type_is_atomic(TypeIndex type);
404EXPCL_INTERROGATEDB AtomicToken interrogate_type_atomic_token(TypeIndex type);
405EXPCL_INTERROGATEDB
bool interrogate_type_is_unsigned(TypeIndex type);
406EXPCL_INTERROGATEDB
bool interrogate_type_is_signed(TypeIndex type);
407EXPCL_INTERROGATEDB
bool interrogate_type_is_long(TypeIndex type);
408EXPCL_INTERROGATEDB
bool interrogate_type_is_longlong(TypeIndex type);
409EXPCL_INTERROGATEDB
bool interrogate_type_is_short(TypeIndex type);
417EXPCL_INTERROGATEDB
bool interrogate_type_is_wrapped(TypeIndex type);
418EXPCL_INTERROGATEDB
bool interrogate_type_is_pointer(TypeIndex type);
419EXPCL_INTERROGATEDB
bool interrogate_type_is_const(TypeIndex type);
420EXPCL_INTERROGATEDB
bool interrogate_type_is_typedef(TypeIndex type);
421EXPCL_INTERROGATEDB TypeIndex interrogate_type_wrapped_type(TypeIndex type);
425EXPCL_INTERROGATEDB
bool interrogate_type_is_enum(TypeIndex type);
426EXPCL_INTERROGATEDB
int interrogate_type_number_of_enum_values(TypeIndex type);
427EXPCL_INTERROGATEDB
const char *interrogate_type_enum_value_name(TypeIndex type,
int n);
428EXPCL_INTERROGATEDB
const char *interrogate_type_enum_value_scoped_name(TypeIndex type,
int n);
429EXPCL_INTERROGATEDB
const char *interrogate_type_enum_value_comment(TypeIndex type,
int n);
430EXPCL_INTERROGATEDB
int interrogate_type_enum_value(TypeIndex type,
int n);
438EXPCL_INTERROGATEDB
bool interrogate_type_is_struct(TypeIndex type);
439EXPCL_INTERROGATEDB
bool interrogate_type_is_class(TypeIndex type);
440EXPCL_INTERROGATEDB
bool interrogate_type_is_union(TypeIndex type);
445EXPCL_INTERROGATEDB
bool interrogate_type_is_fully_defined(TypeIndex type);
450EXPCL_INTERROGATEDB
bool interrogate_type_is_unpublished(TypeIndex type);
473EXPCL_INTERROGATEDB
int interrogate_type_number_of_constructors(TypeIndex type);
474EXPCL_INTERROGATEDB FunctionIndex interrogate_type_get_constructor(TypeIndex type,
int n);
475EXPCL_INTERROGATEDB
bool interrogate_type_has_destructor(TypeIndex type);
476EXPCL_INTERROGATEDB
bool interrogate_type_destructor_is_inherited(TypeIndex type);
477EXPCL_INTERROGATEDB FunctionIndex interrogate_type_get_destructor(TypeIndex type);
480EXPCL_INTERROGATEDB
int interrogate_type_number_of_elements(TypeIndex type);
481EXPCL_INTERROGATEDB ElementIndex interrogate_type_get_element(TypeIndex type,
int n);
484EXPCL_INTERROGATEDB
int interrogate_type_number_of_methods(TypeIndex type);
485EXPCL_INTERROGATEDB FunctionIndex interrogate_type_get_method(TypeIndex type,
int n);
488EXPCL_INTERROGATEDB
int interrogate_type_number_of_make_seqs(TypeIndex type);
489EXPCL_INTERROGATEDB MakeSeqIndex interrogate_type_get_make_seq(TypeIndex type,
int n);
495EXPCL_INTERROGATEDB
int interrogate_type_number_of_casts(TypeIndex type);
496EXPCL_INTERROGATEDB FunctionIndex interrogate_type_get_cast(TypeIndex type,
int n);
500EXPCL_INTERROGATEDB
int interrogate_type_number_of_derivations(TypeIndex type);
501EXPCL_INTERROGATEDB TypeIndex interrogate_type_get_derivation(TypeIndex type,
int n);
516EXPCL_INTERROGATEDB
bool interrogate_type_derivation_has_upcast(TypeIndex type,
int n);
517EXPCL_INTERROGATEDB FunctionIndex interrogate_type_get_upcast(TypeIndex type,
int n);
528EXPCL_INTERROGATEDB
bool interrogate_type_derivation_downcast_is_impossible(TypeIndex type,
int n);
529EXPCL_INTERROGATEDB
bool interrogate_type_derivation_has_downcast(TypeIndex type,
int n);
530EXPCL_INTERROGATEDB FunctionIndex interrogate_type_get_downcast(TypeIndex type,
int n);
534EXPCL_INTERROGATEDB
int interrogate_type_number_of_nested_types(TypeIndex type);
535EXPCL_INTERROGATEDB TypeIndex interrogate_type_get_nested_type(TypeIndex type,
int n);