| 
									
										
										
										
											2009-08-20 16:23:43 +03:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  *  ClamAV bytecode internal API | 
					
						
							|  |  |  |  *  This is an automatically generated file! | 
					
						
							|  |  |  |  * | 
					
						
							| 
									
										
										
										
											2018-07-20 22:28:48 -04:00
										 |  |  |  *  Copyright (C) 2014-2018 Cisco Systems, Inc. and/or its affiliates. All rights reserved. | 
					
						
							| 
									
										
										
										
											2014-05-06 15:26:30 -04:00
										 |  |  |  *  Copyright (C) 2009-2013 Sourcefire, Inc. | 
					
						
							| 
									
										
										
										
											2009-08-20 16:23:43 +03:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2009-11-27 16:54:24 +02:00
										 |  |  |  * Redistribution and use in source and binary forms, with or without | 
					
						
							|  |  |  |  * modification, are permitted provided that the following conditions | 
					
						
							|  |  |  |  * are met: | 
					
						
							|  |  |  |  * 1. Redistributions of source code must retain the above copyright | 
					
						
							|  |  |  |  *    notice, this list of conditions and the following disclaimer. | 
					
						
							|  |  |  |  * 2. Redistributions in binary form must reproduce the above copyright | 
					
						
							|  |  |  |  *    notice, this list of conditions and the following disclaimer in the | 
					
						
							|  |  |  |  *    documentation and/or other materials provided with the distribution. | 
					
						
							| 
									
										
										
										
											2009-08-20 16:23:43 +03:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2009-11-27 16:54:24 +02:00
										 |  |  |  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | 
					
						
							|  |  |  |  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 
					
						
							|  |  |  |  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 
					
						
							|  |  |  |  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | 
					
						
							|  |  |  |  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | 
					
						
							|  |  |  |  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | 
					
						
							|  |  |  |  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 
					
						
							|  |  |  |  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | 
					
						
							|  |  |  |  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 
					
						
							|  |  |  |  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 
					
						
							|  |  |  |  * SUCH DAMAGE | 
					
						
							| 
									
										
										
										
											2009-08-20 16:23:43 +03:00
										 |  |  |  */ | 
					
						
							| 
									
										
										
										
											2018-12-05 20:46:20 -05:00
										 |  |  | #include "clamav-types.h"
 | 
					
						
							| 
									
										
										
										
											2009-08-20 16:23:43 +03:00
										 |  |  | #include "type_desc.h"
 | 
					
						
							|  |  |  | #include "bytecode_api.h"
 | 
					
						
							| 
									
										
										
										
											2009-09-04 16:24:52 +03:00
										 |  |  | #include "bytecode_api_impl.h"
 | 
					
						
							| 
									
										
										
										
											2009-09-30 13:41:02 +03:00
										 |  |  | #include "bytecode_priv.h"
 | 
					
						
							|  |  |  | #include <stdlib.h>
 | 
					
						
							| 
									
										
										
										
											2009-08-20 16:23:43 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-03-20 21:18:54 +02:00
										 |  |  | uint32_t cli_bcapi_test1(struct cli_bc_ctx *ctx , uint32_t, uint32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_read(struct cli_bc_ctx *ctx , uint8_t*, int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_write(struct cli_bc_ctx *ctx , uint8_t*, int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_seek(struct cli_bc_ctx *ctx , int32_t, uint32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_setvirusname(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_debug_print_str(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_debug_print_uint(struct cli_bc_ctx *ctx , uint32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_disasm_x86(struct cli_bc_ctx *ctx , struct DISASM_RESULT*, uint32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_trace_directory(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_trace_scope(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_trace_source(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_trace_op(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_trace_value(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_trace_ptr(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_pe_rawaddr(struct cli_bc_ctx *ctx , uint32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_file_find(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_file_byteat(struct cli_bc_ctx *ctx , uint32_t); | 
					
						
							|  |  |  | uint8_t* cli_bcapi_malloc(struct cli_bc_ctx *ctx , uint32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_test2(struct cli_bc_ctx *ctx , uint32_t); | 
					
						
							| 
									
										
										
										
											2014-05-06 15:26:30 -04:00
										 |  |  | int32_t cli_bcapi_get_pe_section(struct cli_bc_ctx *ctx , struct cli_exe_section*, uint32_t); | 
					
						
							| 
									
										
										
										
											2010-03-20 21:18:54 +02:00
										 |  |  | int32_t cli_bcapi_fill_buffer(struct cli_bc_ctx *ctx , uint8_t*, uint32_t, uint32_t, uint32_t, uint32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_extract_new(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_read_number(struct cli_bc_ctx *ctx , uint32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_hashset_new(struct cli_bc_ctx *ctx ); | 
					
						
							|  |  |  | int32_t cli_bcapi_hashset_add(struct cli_bc_ctx *ctx , int32_t, uint32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_hashset_remove(struct cli_bc_ctx *ctx , int32_t, uint32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_hashset_contains(struct cli_bc_ctx *ctx , int32_t, uint32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_hashset_done(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							| 
									
										
										
										
											2010-03-21 15:10:49 +02:00
										 |  |  | int32_t cli_bcapi_hashset_empty(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							| 
									
										
										
										
											2010-03-21 12:56:05 +02:00
										 |  |  | int32_t cli_bcapi_buffer_pipe_new(struct cli_bc_ctx *ctx , uint32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_buffer_pipe_new_fromfile(struct cli_bc_ctx *ctx , uint32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_buffer_pipe_read_avail(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							| 
									
										
										
										
											2012-01-05 14:16:09 +02:00
										 |  |  | const uint8_t* cli_bcapi_buffer_pipe_read_get(struct cli_bc_ctx *ctx , int32_t, uint32_t); | 
					
						
							| 
									
										
										
										
											2010-03-21 12:56:05 +02:00
										 |  |  | int32_t cli_bcapi_buffer_pipe_read_stopped(struct cli_bc_ctx *ctx , int32_t, uint32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_buffer_pipe_write_avail(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							|  |  |  | uint8_t* cli_bcapi_buffer_pipe_write_get(struct cli_bc_ctx *ctx , int32_t, uint32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_buffer_pipe_write_stopped(struct cli_bc_ctx *ctx , int32_t, uint32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_buffer_pipe_done(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_inflate_init(struct cli_bc_ctx *ctx , int32_t, int32_t, int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_inflate_process(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							| 
									
										
										
										
											2010-03-20 21:18:54 +02:00
										 |  |  | int32_t cli_bcapi_inflate_done(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							| 
									
										
										
										
											2010-03-22 14:58:58 +02:00
										 |  |  | int32_t cli_bcapi_bytecode_rt_error(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							| 
									
										
										
										
											2010-03-31 10:53:11 +03:00
										 |  |  | int32_t cli_bcapi_jsnorm_init(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_jsnorm_process(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_jsnorm_done(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							| 
									
										
										
										
											2010-05-12 18:26:02 +03:00
										 |  |  | int32_t cli_bcapi_ilog2(struct cli_bc_ctx *ctx , uint32_t, uint32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_ipow(struct cli_bc_ctx *ctx , int32_t, int32_t, int32_t); | 
					
						
							| 
									
										
										
										
											2010-05-14 10:35:16 +03:00
										 |  |  | uint32_t cli_bcapi_iexp(struct cli_bc_ctx *ctx , int32_t, int32_t, int32_t); | 
					
						
							| 
									
										
										
										
											2010-05-12 18:26:02 +03:00
										 |  |  | int32_t cli_bcapi_isin(struct cli_bc_ctx *ctx , int32_t, int32_t, int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_icos(struct cli_bc_ctx *ctx , int32_t, int32_t, int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_memstr(struct cli_bc_ctx *ctx , const uint8_t*, int32_t, const uint8_t*, int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_hex2ui(struct cli_bc_ctx *ctx , uint32_t, uint32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_atoi(struct cli_bc_ctx *ctx , const uint8_t*, int32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_debug_print_str_start(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_debug_print_str_nonl(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_entropy_buffer(struct cli_bc_ctx *ctx , uint8_t*, int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_map_new(struct cli_bc_ctx *ctx , int32_t, int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_map_addkey(struct cli_bc_ctx *ctx , const uint8_t*, int32_t, int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_map_setvalue(struct cli_bc_ctx *ctx , const uint8_t*, int32_t, int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_map_remove(struct cli_bc_ctx *ctx , const uint8_t*, int32_t, int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_map_find(struct cli_bc_ctx *ctx , const uint8_t*, int32_t, int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_map_getvaluesize(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							|  |  |  | uint8_t* cli_bcapi_map_getvalue(struct cli_bc_ctx *ctx , int32_t, int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_map_done(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_file_find_limit(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t, int32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_engine_functionality_level(struct cli_bc_ctx *ctx ); | 
					
						
							|  |  |  | uint32_t cli_bcapi_engine_dconf_level(struct cli_bc_ctx *ctx ); | 
					
						
							|  |  |  | uint32_t cli_bcapi_engine_scan_options(struct cli_bc_ctx *ctx ); | 
					
						
							|  |  |  | uint32_t cli_bcapi_engine_db_options(struct cli_bc_ctx *ctx ); | 
					
						
							|  |  |  | int32_t cli_bcapi_extract_set_container(struct cli_bc_ctx *ctx , uint32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_input_switch(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							| 
									
										
										
										
											2010-07-29 13:40:13 +03:00
										 |  |  | uint32_t cli_bcapi_get_environment(struct cli_bc_ctx *ctx , struct cli_environment*, uint32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_disable_bytecode_if(struct cli_bc_ctx *ctx , const int8_t*, uint32_t, uint32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_disable_jit_if(struct cli_bc_ctx *ctx , const int8_t*, uint32_t, uint32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_version_compare(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t, const uint8_t*, uint32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_check_platform(struct cli_bc_ctx *ctx , uint32_t, uint32_t, uint32_t); | 
					
						
							| 
									
										
										
										
											2010-08-02 15:42:58 +03:00
										 |  |  | int32_t cli_bcapi_pdf_get_obj_num(struct cli_bc_ctx *ctx ); | 
					
						
							|  |  |  | int32_t cli_bcapi_pdf_get_flags(struct cli_bc_ctx *ctx ); | 
					
						
							|  |  |  | int32_t cli_bcapi_pdf_set_flags(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_pdf_lookupobj(struct cli_bc_ctx *ctx , uint32_t); | 
					
						
							|  |  |  | uint32_t cli_bcapi_pdf_getobjsize(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							| 
									
										
										
										
											2012-01-05 14:16:09 +02:00
										 |  |  | const uint8_t* cli_bcapi_pdf_getobj(struct cli_bc_ctx *ctx , int32_t, uint32_t); | 
					
						
							| 
									
										
										
										
											2010-08-02 15:42:58 +03:00
										 |  |  | int32_t cli_bcapi_pdf_getobjid(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_pdf_getobjflags(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_pdf_setobjflags(struct cli_bc_ctx *ctx , int32_t, int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_pdf_get_offset(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_pdf_get_phase(struct cli_bc_ctx *ctx ); | 
					
						
							|  |  |  | int32_t cli_bcapi_pdf_get_dumpedobjid(struct cli_bc_ctx *ctx ); | 
					
						
							| 
									
										
										
										
											2010-08-02 17:04:35 +03:00
										 |  |  | int32_t cli_bcapi_matchicon(struct cli_bc_ctx *ctx , const uint8_t*, int32_t, const uint8_t*, int32_t); | 
					
						
							| 
									
										
										
										
											2010-10-18 12:31:18 +03:00
										 |  |  | int32_t cli_bcapi_running_on_jit(struct cli_bc_ctx *ctx ); | 
					
						
							| 
									
										
										
										
											2010-10-19 16:23:19 +03:00
										 |  |  | int32_t cli_bcapi_get_file_reliability(struct cli_bc_ctx *ctx ); | 
					
						
							| 
									
										
										
										
											2014-05-06 15:26:30 -04:00
										 |  |  | int32_t cli_bcapi_json_is_active(struct cli_bc_ctx *ctx ); | 
					
						
							|  |  |  | int32_t cli_bcapi_json_get_object(struct cli_bc_ctx *ctx , const int8_t*, int32_t, int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_json_get_type(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_json_get_array_length(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_json_get_array_idx(struct cli_bc_ctx *ctx , int32_t, int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_json_get_string_length(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_json_get_string(struct cli_bc_ctx *ctx , int8_t*, int32_t, int32_t); | 
					
						
							| 
									
										
										
										
											2014-05-06 16:15:08 -04:00
										 |  |  | int32_t cli_bcapi_json_get_boolean(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							|  |  |  | int32_t cli_bcapi_json_get_int(struct cli_bc_ctx *ctx , int32_t); | 
					
						
							| 
									
										
										
										
											2018-07-20 22:28:48 -04:00
										 |  |  | uint32_t cli_bcapi_engine_scan_options_ex(struct cli_bc_ctx *ctx , const uint8_t*, uint32_t); | 
					
						
							| 
									
										
										
										
											2009-09-04 12:09:17 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-09-30 13:41:02 +03:00
										 |  |  | const struct cli_apiglobal cli_globals[] = { | 
					
						
							|  |  |  | /* Bytecode globals BEGIN */ | 
					
						
							| 
									
										
										
										
											2010-05-07 09:57:30 +03:00
										 |  |  | 	{"__clambc_match_offsets", GLOBAL_MATCH_OFFSETS, 76, | 
					
						
							|  |  |  | 	 ((char*)&((struct cli_bc_ctx*)0)->hooks.match_offsets - (char*)NULL)}, | 
					
						
							| 
									
										
										
										
											2009-11-24 14:53:15 +02:00
										 |  |  | 	{"__clambc_kind", GLOBAL_KIND, 16, | 
					
						
							|  |  |  | 	 ((char*)&((struct cli_bc_ctx*)0)->hooks.kind - (char*)NULL)}, | 
					
						
							| 
									
										
										
										
											2010-02-12 16:47:44 +02:00
										 |  |  | 	{"__clambc_match_counts", GLOBAL_MATCH_COUNTS, 76, | 
					
						
							| 
									
										
										
										
											2009-09-30 13:41:02 +03:00
										 |  |  | 	 ((char*)&((struct cli_bc_ctx*)0)->hooks.match_counts - (char*)NULL)}, | 
					
						
							| 
									
										
										
										
											2010-02-12 16:47:44 +02:00
										 |  |  | 	{"__clambc_filesize", GLOBAL_FILESIZE, 75, | 
					
						
							| 
									
										
										
										
											2010-01-18 19:31:59 +02:00
										 |  |  | 	 ((char*)&((struct cli_bc_ctx*)0)->hooks.filesize - (char*)NULL)}, | 
					
						
							| 
									
										
										
										
											2009-10-06 17:32:38 +03:00
										 |  |  | 	{"__clambc_pedata", GLOBAL_PEDATA, 69, | 
					
						
							|  |  |  | 	 ((char*)&((struct cli_bc_ctx*)0)->hooks.pedata - (char*)NULL)} | 
					
						
							| 
									
										
										
										
											2009-09-30 13:41:02 +03:00
										 |  |  | /* Bytecode globals END */ | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | const unsigned cli_apicall_maxglobal = _LAST_GLOBAL-1; | 
					
						
							| 
									
										
										
										
											2010-03-24 10:51:05 +02:00
										 |  |  | static uint16_t cli_tmp0[]={32, 32, 16, 16, 74, 73, 32, 72, 70, 32, 32, 32, 32}; | 
					
						
							| 
									
										
										
										
											2009-11-06 16:34:46 +02:00
										 |  |  | static uint16_t cli_tmp1[]={71}; | 
					
						
							|  |  |  | static uint16_t cli_tmp2[]={32, 32}; | 
					
						
							| 
									
										
										
										
											2010-02-12 16:47:44 +02:00
										 |  |  | static uint16_t cli_tmp3[]={16, 8, 8, 32, 32, 32, 32, 32, 64, 32, 32, 16, 16, 16, 16, 16, 16, 32, 32, 32, 32, 16, 16, 64, 64, 64, 64, 32, 32, 70}; | 
					
						
							|  |  |  | static uint16_t cli_tmp4[]={16, 8, 8, 32, 32, 32, 32, 32, 32, 32, 32, 32, 16, 16, 16, 16, 16, 16, 32, 32, 32, 32, 16, 16, 32, 32, 32, 32, 32, 32, 70}; | 
					
						
							|  |  |  | static uint16_t cli_tmp5[]={32, 16, 16, 32, 32, 32, 16, 16}; | 
					
						
							|  |  |  | static uint16_t cli_tmp6[]={32}; | 
					
						
							|  |  |  | static uint16_t cli_tmp7[]={32}; | 
					
						
							| 
									
										
										
										
											2018-07-20 22:28:48 -04:00
										 |  |  | static uint16_t cli_tmp8[]={32, 65, 32}; | 
					
						
							|  |  |  | static uint16_t cli_tmp9[]={32, 32}; | 
					
						
							|  |  |  | static uint16_t cli_tmp10[]={32, 65, 32, 32}; | 
					
						
							|  |  |  | static uint16_t cli_tmp11[]={32, 32, 32}; | 
					
						
							|  |  |  | static uint16_t cli_tmp12[]={32}; | 
					
						
							|  |  |  | static uint16_t cli_tmp13[]={32, 65, 32, 65, 32}; | 
					
						
							|  |  |  | static uint16_t cli_tmp14[]={65, 32, 32}; | 
					
						
							|  |  |  | static uint16_t cli_tmp15[]={32, 32, 32, 32}; | 
					
						
							|  |  |  | static uint16_t cli_tmp16[]={32, 86, 32}; | 
					
						
							|  |  |  | static uint16_t cli_tmp17[]={87}; | 
					
						
							|  |  |  | static uint16_t cli_tmp18[]={32, 32, 32, 32, 32, 32, 32, 88, 88, 88, 88, 88, 88, 88, 8, 8, 8, 8, 8, 8, 8, 8, 8}; | 
					
						
							|  |  |  | static uint16_t cli_tmp19[]={8}; | 
					
						
							| 
									
										
										
										
											2010-07-29 13:40:13 +03:00
										 |  |  | static uint16_t cli_tmp20[]={32, 65, 32, 32, 32, 32}; | 
					
						
							| 
									
										
										
										
											2010-05-12 18:26:02 +03:00
										 |  |  | static uint16_t cli_tmp21[]={32, 91, 32}; | 
					
						
							|  |  |  | static uint16_t cli_tmp22[]={92}; | 
					
						
							| 
									
										
										
										
											2010-07-29 13:40:13 +03:00
										 |  |  | static uint16_t cli_tmp23[]={32, 32, 32, 32, 32, 32, 32, 32, 32}; | 
					
						
							|  |  |  | static uint16_t cli_tmp24[]={65, 32}; | 
					
						
							|  |  |  | static uint16_t cli_tmp25[]={32, 95, 32}; | 
					
						
							|  |  |  | static uint16_t cli_tmp26[]={96}; | 
					
						
							|  |  |  | static uint16_t cli_tmp27[]={16, 8, 8, 8, 98, 97}; | 
					
						
							|  |  |  | static uint16_t cli_tmp28[]={8}; | 
					
						
							|  |  |  | static uint16_t cli_tmp29[]={99}; | 
					
						
							|  |  |  | static uint16_t cli_tmp30[]={8}; | 
					
						
							| 
									
										
										
										
											2009-08-20 16:23:43 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | const struct cli_bc_type cli_apicall_types[]={ | 
					
						
							| 
									
										
										
										
											2010-03-24 10:51:05 +02:00
										 |  |  | 	{DStructType, cli_tmp0, 13, 0, 0}, | 
					
						
							| 
									
										
										
										
											2010-02-12 16:47:44 +02:00
										 |  |  | 	{DArrayType, cli_tmp1, 16, 0, 0}, | 
					
						
							| 
									
										
										
										
											2009-11-06 16:34:46 +02:00
										 |  |  | 	{DStructType, cli_tmp2, 2, 0, 0}, | 
					
						
							| 
									
										
										
										
											2010-02-12 16:47:44 +02:00
										 |  |  | 	{DStructType, cli_tmp3, 30, 0, 0}, | 
					
						
							|  |  |  | 	{DStructType, cli_tmp4, 31, 0, 0}, | 
					
						
							|  |  |  | 	{DStructType, cli_tmp5, 8, 0, 0}, | 
					
						
							|  |  |  | 	{DArrayType, cli_tmp6, 1, 0, 0}, | 
					
						
							|  |  |  | 	{DArrayType, cli_tmp7, 64, 0, 0}, | 
					
						
							| 
									
										
										
										
											2018-07-20 22:28:48 -04:00
										 |  |  | 	{DFunctionType, cli_tmp8, 3, 0, 0}, | 
					
						
							|  |  |  | 	{DFunctionType, cli_tmp9, 2, 0, 0}, | 
					
						
							|  |  |  | 	{DFunctionType, cli_tmp10, 4, 0, 0}, | 
					
						
							|  |  |  | 	{DFunctionType, cli_tmp11, 3, 0, 0}, | 
					
						
							|  |  |  | 	{DFunctionType, cli_tmp12, 1, 0, 0}, | 
					
						
							|  |  |  | 	{DFunctionType, cli_tmp13, 5, 0, 0}, | 
					
						
							|  |  |  | 	{DFunctionType, cli_tmp14, 3, 0, 0}, | 
					
						
							|  |  |  | 	{DFunctionType, cli_tmp15, 4, 0, 0}, | 
					
						
							|  |  |  | 	{DFunctionType, cli_tmp16, 3, 0, 0}, | 
					
						
							|  |  |  | 	{DPointerType, cli_tmp17, 1, 0, 0}, | 
					
						
							|  |  |  | 	{DStructType, cli_tmp18, 23, 0, 0}, | 
					
						
							|  |  |  | 	{DArrayType, cli_tmp19, 65, 0, 0}, | 
					
						
							| 
									
										
										
										
											2010-07-29 13:40:13 +03:00
										 |  |  | 	{DFunctionType, cli_tmp20, 6, 0, 0}, | 
					
						
							| 
									
										
										
										
											2010-05-12 18:26:02 +03:00
										 |  |  | 	{DFunctionType, cli_tmp21, 3, 0, 0}, | 
					
						
							|  |  |  | 	{DPointerType, cli_tmp22, 1, 0, 0}, | 
					
						
							| 
									
										
										
										
											2010-07-29 13:40:13 +03:00
										 |  |  | 	{DStructType, cli_tmp23, 9, 0, 0}, | 
					
						
							|  |  |  | 	{DFunctionType, cli_tmp24, 2, 0, 0}, | 
					
						
							|  |  |  | 	{DFunctionType, cli_tmp25, 3, 0, 0}, | 
					
						
							|  |  |  | 	{DPointerType, cli_tmp26, 1, 0, 0}, | 
					
						
							|  |  |  | 	{DStructType, cli_tmp27, 6, 0, 0}, | 
					
						
							|  |  |  | 	{DArrayType, cli_tmp28, 29, 0, 0}, | 
					
						
							|  |  |  | 	{DArrayType, cli_tmp29, 3, 0, 0}, | 
					
						
							|  |  |  | 	{DArrayType, cli_tmp30, 10, 0, 0} | 
					
						
							| 
									
										
										
										
											2009-08-20 16:23:43 +03:00
										 |  |  | }; | 
					
						
							| 
									
										
										
										
											2014-05-22 14:30:03 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-07-20 22:28:48 -04:00
										 |  |  | const unsigned cli_apicall_maxtypes=sizeof(cli_apicall_types)/sizeof(cli_apicall_types[0]); | 
					
						
							| 
									
										
										
										
											2009-08-20 16:23:43 +03:00
										 |  |  | const struct cli_apicall cli_apicalls[]={ | 
					
						
							|  |  |  | /* Bytecode APIcalls BEGIN */ | 
					
						
							| 
									
										
										
										
											2018-07-20 22:28:48 -04:00
										 |  |  | 	{"test1", 11, 0, 0}, | 
					
						
							|  |  |  | 	{"read", 8, 0, 1}, | 
					
						
							|  |  |  | 	{"write", 8, 1, 1}, | 
					
						
							|  |  |  | 	{"seek", 11, 1, 0}, | 
					
						
							|  |  |  | 	{"setvirusname", 8, 2, 1}, | 
					
						
							|  |  |  | 	{"debug_print_str", 8, 3, 1}, | 
					
						
							|  |  |  | 	{"debug_print_uint", 9, 0, 2}, | 
					
						
							| 
									
										
										
										
											2010-07-29 13:40:13 +03:00
										 |  |  | 	{"disasm_x86", 25, 4, 1}, | 
					
						
							| 
									
										
										
										
											2018-07-20 22:28:48 -04:00
										 |  |  | 	{"trace_directory", 8, 5, 1}, | 
					
						
							|  |  |  | 	{"trace_scope", 8, 6, 1}, | 
					
						
							|  |  |  | 	{"trace_source", 8, 7, 1}, | 
					
						
							|  |  |  | 	{"trace_op", 8, 8, 1}, | 
					
						
							|  |  |  | 	{"trace_value", 8, 9, 1}, | 
					
						
							|  |  |  | 	{"trace_ptr", 8, 10, 1}, | 
					
						
							|  |  |  | 	{"pe_rawaddr", 9, 1, 2}, | 
					
						
							|  |  |  | 	{"file_find", 8, 11, 1}, | 
					
						
							|  |  |  | 	{"file_byteat", 9, 2, 2}, | 
					
						
							| 
									
										
										
										
											2010-07-29 13:40:13 +03:00
										 |  |  | 	{"malloc", 24, 0, 3}, | 
					
						
							| 
									
										
										
										
											2018-07-20 22:28:48 -04:00
										 |  |  | 	{"test2", 9, 3, 2}, | 
					
						
							| 
									
										
										
										
											2010-07-29 13:40:13 +03:00
										 |  |  | 	{"get_pe_section", 21, 12, 1}, | 
					
						
							|  |  |  | 	{"fill_buffer", 20, 0, 4}, | 
					
						
							| 
									
										
										
										
											2018-07-20 22:28:48 -04:00
										 |  |  | 	{"extract_new", 9, 4, 2}, | 
					
						
							|  |  |  | 	{"read_number", 9, 5, 2}, | 
					
						
							|  |  |  | 	{"hashset_new", 12, 0, 5}, | 
					
						
							|  |  |  | 	{"hashset_add", 11, 2, 0}, | 
					
						
							|  |  |  | 	{"hashset_remove", 11, 3, 0}, | 
					
						
							|  |  |  | 	{"hashset_contains", 11, 4, 0}, | 
					
						
							|  |  |  | 	{"hashset_done", 9, 6, 2}, | 
					
						
							|  |  |  | 	{"hashset_empty", 9, 7, 2}, | 
					
						
							|  |  |  | 	{"buffer_pipe_new", 9, 8, 2}, | 
					
						
							|  |  |  | 	{"buffer_pipe_new_fromfile", 9, 9, 2}, | 
					
						
							|  |  |  | 	{"buffer_pipe_read_avail", 9, 10, 2}, | 
					
						
							|  |  |  | 	{"buffer_pipe_read_get", 14, 0, 6}, | 
					
						
							|  |  |  | 	{"buffer_pipe_read_stopped", 11, 5, 0}, | 
					
						
							|  |  |  | 	{"buffer_pipe_write_avail", 9, 11, 2}, | 
					
						
							|  |  |  | 	{"buffer_pipe_write_get", 14, 1, 6}, | 
					
						
							|  |  |  | 	{"buffer_pipe_write_stopped", 11, 6, 0}, | 
					
						
							|  |  |  | 	{"buffer_pipe_done", 9, 12, 2}, | 
					
						
							|  |  |  | 	{"inflate_init", 15, 0, 7}, | 
					
						
							|  |  |  | 	{"inflate_process", 9, 13, 2}, | 
					
						
							|  |  |  | 	{"inflate_done", 9, 14, 2}, | 
					
						
							|  |  |  | 	{"bytecode_rt_error", 9, 15, 2}, | 
					
						
							|  |  |  | 	{"jsnorm_init", 9, 16, 2}, | 
					
						
							|  |  |  | 	{"jsnorm_process", 9, 17, 2}, | 
					
						
							|  |  |  | 	{"jsnorm_done", 9, 18, 2}, | 
					
						
							|  |  |  | 	{"ilog2", 11, 7, 0}, | 
					
						
							|  |  |  | 	{"ipow", 15, 1, 7}, | 
					
						
							|  |  |  | 	{"iexp", 15, 2, 7}, | 
					
						
							|  |  |  | 	{"isin", 15, 3, 7}, | 
					
						
							|  |  |  | 	{"icos", 15, 4, 7}, | 
					
						
							|  |  |  | 	{"memstr", 13, 0, 8}, | 
					
						
							|  |  |  | 	{"hex2ui", 11, 8, 0}, | 
					
						
							|  |  |  | 	{"atoi", 8, 13, 1}, | 
					
						
							|  |  |  | 	{"debug_print_str_start", 8, 14, 1}, | 
					
						
							|  |  |  | 	{"debug_print_str_nonl", 8, 15, 1}, | 
					
						
							|  |  |  | 	{"entropy_buffer", 8, 16, 1}, | 
					
						
							|  |  |  | 	{"map_new", 11, 9, 0}, | 
					
						
							|  |  |  | 	{"map_addkey", 10, 0, 9}, | 
					
						
							|  |  |  | 	{"map_setvalue", 10, 1, 9}, | 
					
						
							|  |  |  | 	{"map_remove", 10, 2, 9}, | 
					
						
							|  |  |  | 	{"map_find", 10, 3, 9}, | 
					
						
							|  |  |  | 	{"map_getvaluesize", 9, 19, 2}, | 
					
						
							|  |  |  | 	{"map_getvalue", 14, 2, 6}, | 
					
						
							|  |  |  | 	{"map_done", 9, 20, 2}, | 
					
						
							|  |  |  | 	{"file_find_limit", 10, 4, 9}, | 
					
						
							|  |  |  | 	{"engine_functionality_level", 12, 1, 5}, | 
					
						
							|  |  |  | 	{"engine_dconf_level", 12, 2, 5}, | 
					
						
							|  |  |  | 	{"engine_scan_options", 12, 3, 5}, | 
					
						
							|  |  |  | 	{"engine_db_options", 12, 4, 5}, | 
					
						
							|  |  |  | 	{"extract_set_container", 9, 21, 2}, | 
					
						
							|  |  |  | 	{"input_switch", 9, 22, 2}, | 
					
						
							|  |  |  | 	{"get_environment", 16, 17, 1}, | 
					
						
							|  |  |  | 	{"disable_bytecode_if", 10, 5, 9}, | 
					
						
							|  |  |  | 	{"disable_jit_if", 10, 6, 9}, | 
					
						
							|  |  |  | 	{"version_compare", 13, 1, 8}, | 
					
						
							|  |  |  | 	{"check_platform", 15, 5, 7}, | 
					
						
							|  |  |  | 	{"pdf_get_obj_num", 12, 5, 5}, | 
					
						
							|  |  |  | 	{"pdf_get_flags", 12, 6, 5}, | 
					
						
							|  |  |  | 	{"pdf_set_flags", 9, 23, 2}, | 
					
						
							|  |  |  | 	{"pdf_lookupobj", 9, 24, 2}, | 
					
						
							|  |  |  | 	{"pdf_getobjsize", 9, 25, 2}, | 
					
						
							|  |  |  | 	{"pdf_getobj", 14, 3, 6}, | 
					
						
							|  |  |  | 	{"pdf_getobjid", 9, 26, 2}, | 
					
						
							|  |  |  | 	{"pdf_getobjflags", 9, 27, 2}, | 
					
						
							|  |  |  | 	{"pdf_setobjflags", 11, 10, 0}, | 
					
						
							|  |  |  | 	{"pdf_get_offset", 9, 28, 2}, | 
					
						
							|  |  |  | 	{"pdf_get_phase", 12, 7, 5}, | 
					
						
							|  |  |  | 	{"pdf_get_dumpedobjid", 12, 8, 5}, | 
					
						
							|  |  |  | 	{"matchicon", 13, 2, 8}, | 
					
						
							|  |  |  | 	{"running_on_jit", 12, 9, 5}, | 
					
						
							|  |  |  | 	{"get_file_reliability", 12, 10, 5}, | 
					
						
							|  |  |  | 	{"json_is_active", 12, 11, 5}, | 
					
						
							|  |  |  | 	{"json_get_object", 10, 7, 9}, | 
					
						
							|  |  |  | 	{"json_get_type", 9, 29, 2}, | 
					
						
							|  |  |  | 	{"json_get_array_length", 9, 30, 2}, | 
					
						
							|  |  |  | 	{"json_get_array_idx", 11, 11, 0}, | 
					
						
							|  |  |  | 	{"json_get_string_length", 9, 31, 2}, | 
					
						
							|  |  |  | 	{"json_get_string", 10, 8, 9}, | 
					
						
							|  |  |  | 	{"json_get_boolean", 9, 32, 2}, | 
					
						
							|  |  |  | 	{"json_get_int", 9, 33, 2}, | 
					
						
							|  |  |  | 	{"engine_scan_options_ex", 8, 18, 1} | 
					
						
							| 
									
										
										
										
											2009-08-20 16:23:43 +03:00
										 |  |  | /* Bytecode APIcalls END */ | 
					
						
							|  |  |  | }; | 
					
						
							| 
									
										
										
										
											2014-05-22 14:30:03 -04:00
										 |  |  | const unsigned cli_numapicalls=sizeof(cli_apicalls)/sizeof(cli_apicalls[0]); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-20 16:23:43 +03:00
										 |  |  | const cli_apicall_int2 cli_apicalls0[] = { | 
					
						
							| 
									
										
										
										
											2009-09-07 18:01:43 +03:00
										 |  |  | 	(cli_apicall_int2)cli_bcapi_test1, | 
					
						
							| 
									
										
										
										
											2010-03-20 21:18:54 +02:00
										 |  |  | 	(cli_apicall_int2)cli_bcapi_seek, | 
					
						
							|  |  |  | 	(cli_apicall_int2)cli_bcapi_hashset_add, | 
					
						
							|  |  |  | 	(cli_apicall_int2)cli_bcapi_hashset_remove, | 
					
						
							| 
									
										
										
										
											2010-03-21 12:56:05 +02:00
										 |  |  | 	(cli_apicall_int2)cli_bcapi_hashset_contains, | 
					
						
							|  |  |  | 	(cli_apicall_int2)cli_bcapi_buffer_pipe_read_stopped, | 
					
						
							| 
									
										
										
										
											2010-05-12 18:26:02 +03:00
										 |  |  | 	(cli_apicall_int2)cli_bcapi_buffer_pipe_write_stopped, | 
					
						
							|  |  |  | 	(cli_apicall_int2)cli_bcapi_ilog2, | 
					
						
							|  |  |  | 	(cli_apicall_int2)cli_bcapi_hex2ui, | 
					
						
							| 
									
										
										
										
											2010-08-02 15:42:58 +03:00
										 |  |  | 	(cli_apicall_int2)cli_bcapi_map_new, | 
					
						
							| 
									
										
										
										
											2014-05-06 15:26:30 -04:00
										 |  |  | 	(cli_apicall_int2)cli_bcapi_pdf_setobjflags, | 
					
						
							|  |  |  | 	(cli_apicall_int2)cli_bcapi_json_get_array_idx | 
					
						
							| 
									
										
										
										
											2009-08-20 16:23:43 +03:00
										 |  |  | }; | 
					
						
							|  |  |  | const cli_apicall_pointer cli_apicalls1[] = { | 
					
						
							| 
									
										
										
										
											2009-09-11 15:12:17 +03:00
										 |  |  | 	(cli_apicall_pointer)cli_bcapi_read, | 
					
						
							| 
									
										
										
										
											2009-11-06 16:34:46 +02:00
										 |  |  | 	(cli_apicall_pointer)cli_bcapi_write, | 
					
						
							| 
									
										
										
										
											2009-09-22 11:03:17 +03:00
										 |  |  | 	(cli_apicall_pointer)cli_bcapi_setvirusname, | 
					
						
							| 
									
										
										
										
											2009-11-06 16:34:46 +02:00
										 |  |  | 	(cli_apicall_pointer)cli_bcapi_debug_print_str, | 
					
						
							| 
									
										
										
										
											2009-12-08 23:02:49 +02:00
										 |  |  | 	(cli_apicall_pointer)cli_bcapi_disasm_x86, | 
					
						
							|  |  |  | 	(cli_apicall_pointer)cli_bcapi_trace_directory, | 
					
						
							|  |  |  | 	(cli_apicall_pointer)cli_bcapi_trace_scope, | 
					
						
							|  |  |  | 	(cli_apicall_pointer)cli_bcapi_trace_source, | 
					
						
							|  |  |  | 	(cli_apicall_pointer)cli_bcapi_trace_op, | 
					
						
							| 
									
										
										
										
											2009-12-17 17:40:35 +02:00
										 |  |  | 	(cli_apicall_pointer)cli_bcapi_trace_value, | 
					
						
							| 
									
										
										
										
											2010-01-20 16:19:18 +02:00
										 |  |  | 	(cli_apicall_pointer)cli_bcapi_trace_ptr, | 
					
						
							| 
									
										
										
										
											2010-02-12 16:47:44 +02:00
										 |  |  | 	(cli_apicall_pointer)cli_bcapi_file_find, | 
					
						
							| 
									
										
										
										
											2010-05-12 18:26:02 +03:00
										 |  |  | 	(cli_apicall_pointer)cli_bcapi_get_pe_section, | 
					
						
							|  |  |  | 	(cli_apicall_pointer)cli_bcapi_atoi, | 
					
						
							|  |  |  | 	(cli_apicall_pointer)cli_bcapi_debug_print_str_start, | 
					
						
							|  |  |  | 	(cli_apicall_pointer)cli_bcapi_debug_print_str_nonl, | 
					
						
							| 
									
										
										
										
											2010-07-29 13:40:13 +03:00
										 |  |  | 	(cli_apicall_pointer)cli_bcapi_entropy_buffer, | 
					
						
							| 
									
										
										
										
											2018-07-20 22:28:48 -04:00
										 |  |  | 	(cli_apicall_pointer)cli_bcapi_get_environment, | 
					
						
							|  |  |  | 	(cli_apicall_pointer)cli_bcapi_engine_scan_options_ex | 
					
						
							| 
									
										
										
										
											2009-08-20 16:23:43 +03:00
										 |  |  | }; | 
					
						
							| 
									
										
										
										
											2010-01-20 20:04:01 +02:00
										 |  |  | const cli_apicall_int1 cli_apicalls2[] = { | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_debug_print_uint, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_pe_rawaddr, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_file_byteat, | 
					
						
							| 
									
										
										
										
											2010-03-19 15:47:26 +02:00
										 |  |  | 	(cli_apicall_int1)cli_bcapi_test2, | 
					
						
							| 
									
										
										
										
											2010-03-19 22:20:55 +02:00
										 |  |  | 	(cli_apicall_int1)cli_bcapi_extract_new, | 
					
						
							| 
									
										
										
										
											2010-03-20 21:18:54 +02:00
										 |  |  | 	(cli_apicall_int1)cli_bcapi_read_number, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_hashset_done, | 
					
						
							| 
									
										
										
										
											2010-03-21 15:10:49 +02:00
										 |  |  | 	(cli_apicall_int1)cli_bcapi_hashset_empty, | 
					
						
							| 
									
										
										
										
											2010-03-21 12:56:05 +02:00
										 |  |  | 	(cli_apicall_int1)cli_bcapi_buffer_pipe_new, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_buffer_pipe_new_fromfile, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_buffer_pipe_read_avail, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_buffer_pipe_write_avail, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_buffer_pipe_done, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_inflate_process, | 
					
						
							| 
									
										
										
										
											2010-03-22 14:58:58 +02:00
										 |  |  | 	(cli_apicall_int1)cli_bcapi_inflate_done, | 
					
						
							| 
									
										
										
										
											2010-03-31 10:53:11 +03:00
										 |  |  | 	(cli_apicall_int1)cli_bcapi_bytecode_rt_error, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_jsnorm_init, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_jsnorm_process, | 
					
						
							| 
									
										
										
										
											2010-05-12 18:26:02 +03:00
										 |  |  | 	(cli_apicall_int1)cli_bcapi_jsnorm_done, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_map_getvaluesize, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_map_done, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_extract_set_container, | 
					
						
							| 
									
										
										
										
											2010-08-02 15:42:58 +03:00
										 |  |  | 	(cli_apicall_int1)cli_bcapi_input_switch, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_pdf_set_flags, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_pdf_lookupobj, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_pdf_getobjsize, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_pdf_getobjid, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_pdf_getobjflags, | 
					
						
							| 
									
										
										
										
											2014-05-06 15:26:30 -04:00
										 |  |  | 	(cli_apicall_int1)cli_bcapi_pdf_get_offset, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_json_get_type, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_json_get_array_length, | 
					
						
							| 
									
										
										
										
											2014-05-06 16:15:08 -04:00
										 |  |  | 	(cli_apicall_int1)cli_bcapi_json_get_string_length, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_json_get_boolean, | 
					
						
							|  |  |  | 	(cli_apicall_int1)cli_bcapi_json_get_int | 
					
						
							| 
									
										
										
										
											2010-01-20 20:04:01 +02:00
										 |  |  | }; | 
					
						
							|  |  |  | const cli_apicall_malloclike cli_apicalls3[] = { | 
					
						
							|  |  |  | 	(cli_apicall_malloclike)cli_bcapi_malloc | 
					
						
							|  |  |  | }; | 
					
						
							| 
									
										
										
										
											2010-03-19 13:20:59 +02:00
										 |  |  | const cli_apicall_ptrbuffdata cli_apicalls4[] = { | 
					
						
							|  |  |  | 	(cli_apicall_ptrbuffdata)cli_bcapi_fill_buffer | 
					
						
							|  |  |  | }; | 
					
						
							| 
									
										
										
										
											2010-03-20 21:18:54 +02:00
										 |  |  | const cli_apicall_allocobj cli_apicalls5[] = { | 
					
						
							| 
									
										
										
										
											2010-05-12 18:26:02 +03:00
										 |  |  | 	(cli_apicall_allocobj)cli_bcapi_hashset_new, | 
					
						
							|  |  |  | 	(cli_apicall_allocobj)cli_bcapi_engine_functionality_level, | 
					
						
							|  |  |  | 	(cli_apicall_allocobj)cli_bcapi_engine_dconf_level, | 
					
						
							|  |  |  | 	(cli_apicall_allocobj)cli_bcapi_engine_scan_options, | 
					
						
							| 
									
										
										
										
											2010-08-02 15:42:58 +03:00
										 |  |  | 	(cli_apicall_allocobj)cli_bcapi_engine_db_options, | 
					
						
							|  |  |  | 	(cli_apicall_allocobj)cli_bcapi_pdf_get_obj_num, | 
					
						
							|  |  |  | 	(cli_apicall_allocobj)cli_bcapi_pdf_get_flags, | 
					
						
							|  |  |  | 	(cli_apicall_allocobj)cli_bcapi_pdf_get_phase, | 
					
						
							| 
									
										
										
										
											2010-10-18 12:31:18 +03:00
										 |  |  | 	(cli_apicall_allocobj)cli_bcapi_pdf_get_dumpedobjid, | 
					
						
							| 
									
										
										
										
											2010-10-19 16:23:19 +03:00
										 |  |  | 	(cli_apicall_allocobj)cli_bcapi_running_on_jit, | 
					
						
							| 
									
										
										
										
											2014-05-06 15:26:30 -04:00
										 |  |  | 	(cli_apicall_allocobj)cli_bcapi_get_file_reliability, | 
					
						
							|  |  |  | 	(cli_apicall_allocobj)cli_bcapi_json_is_active | 
					
						
							| 
									
										
										
										
											2010-03-20 21:18:54 +02:00
										 |  |  | }; | 
					
						
							| 
									
										
										
										
											2010-03-21 12:56:05 +02:00
										 |  |  | const cli_apicall_bufget cli_apicalls6[] = { | 
					
						
							|  |  |  | 	(cli_apicall_bufget)cli_bcapi_buffer_pipe_read_get, | 
					
						
							| 
									
										
										
										
											2010-05-12 18:26:02 +03:00
										 |  |  | 	(cli_apicall_bufget)cli_bcapi_buffer_pipe_write_get, | 
					
						
							| 
									
										
										
										
											2010-08-02 15:42:58 +03:00
										 |  |  | 	(cli_apicall_bufget)cli_bcapi_map_getvalue, | 
					
						
							|  |  |  | 	(cli_apicall_bufget)cli_bcapi_pdf_getobj | 
					
						
							| 
									
										
										
										
											2010-03-21 12:56:05 +02:00
										 |  |  | }; | 
					
						
							|  |  |  | const cli_apicall_int3 cli_apicalls7[] = { | 
					
						
							| 
									
										
										
										
											2010-05-12 18:26:02 +03:00
										 |  |  | 	(cli_apicall_int3)cli_bcapi_inflate_init, | 
					
						
							|  |  |  | 	(cli_apicall_int3)cli_bcapi_ipow, | 
					
						
							|  |  |  | 	(cli_apicall_int3)cli_bcapi_iexp, | 
					
						
							|  |  |  | 	(cli_apicall_int3)cli_bcapi_isin, | 
					
						
							| 
									
										
										
										
											2010-07-29 13:40:13 +03:00
										 |  |  | 	(cli_apicall_int3)cli_bcapi_icos, | 
					
						
							|  |  |  | 	(cli_apicall_int3)cli_bcapi_check_platform | 
					
						
							| 
									
										
										
										
											2010-05-12 18:26:02 +03:00
										 |  |  | }; | 
					
						
							|  |  |  | const cli_apicall_2bufs cli_apicalls8[] = { | 
					
						
							| 
									
										
										
										
											2010-07-29 13:40:13 +03:00
										 |  |  | 	(cli_apicall_2bufs)cli_bcapi_memstr, | 
					
						
							| 
									
										
										
										
											2010-08-02 17:04:35 +03:00
										 |  |  | 	(cli_apicall_2bufs)cli_bcapi_version_compare, | 
					
						
							|  |  |  | 	(cli_apicall_2bufs)cli_bcapi_matchicon | 
					
						
							| 
									
										
										
										
											2010-05-12 18:26:02 +03:00
										 |  |  | }; | 
					
						
							|  |  |  | const cli_apicall_ptrbufid cli_apicalls9[] = { | 
					
						
							|  |  |  | 	(cli_apicall_ptrbufid)cli_bcapi_map_addkey, | 
					
						
							|  |  |  | 	(cli_apicall_ptrbufid)cli_bcapi_map_setvalue, | 
					
						
							|  |  |  | 	(cli_apicall_ptrbufid)cli_bcapi_map_remove, | 
					
						
							|  |  |  | 	(cli_apicall_ptrbufid)cli_bcapi_map_find, | 
					
						
							| 
									
										
										
										
											2010-07-29 13:40:13 +03:00
										 |  |  | 	(cli_apicall_ptrbufid)cli_bcapi_file_find_limit, | 
					
						
							|  |  |  | 	(cli_apicall_ptrbufid)cli_bcapi_disable_bytecode_if, | 
					
						
							| 
									
										
										
										
											2014-05-06 15:26:30 -04:00
										 |  |  | 	(cli_apicall_ptrbufid)cli_bcapi_disable_jit_if, | 
					
						
							|  |  |  | 	(cli_apicall_ptrbufid)cli_bcapi_json_get_object, | 
					
						
							|  |  |  | 	(cli_apicall_ptrbufid)cli_bcapi_json_get_string | 
					
						
							| 
									
										
										
										
											2010-03-20 21:18:54 +02:00
										 |  |  | }; | 
					
						
							| 
									
										
										
										
											2009-08-20 16:23:43 +03:00
										 |  |  | const unsigned cli_apicall_maxapi = sizeof(cli_apicalls)/sizeof(cli_apicalls[0]); |