NetSim Source Code Help v14.4
All 13 Components
 
Loading...
Searching...
No Matches
Emulation_Interface.h
1/************************************************************************************
2 * Copyright (C) 2023 *
3 * TETCOS, Bangalore. India *
4 * *
5 * Tetcos owns the intellectual property rights in the Product and its content. *
6 * The copying, redistribution, reselling or publication of any or all of the *
7 * Product or its content without express prior written consent of Tetcos is *
8 * prohibited. Ownership and / or any other right relating to the software and all *
9 * intellectual property rights therein shall remain at all times with Tetcos. *
10 * *
11 * Author: ,~~. *
12 ( 6 )-_,
13 (\___ )=='-'
14 \ . ) )
15 \ `-' /
16 ~'`~'`~'`~'`~ Shashi kant suman
17 * *
18 * ---------------------------------------------------------------------------------*/
19#ifndef _EMULATION_INTERFACE_H_
20#define _EMULATION_INTERFACE_H_
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#ifdef _WIN32
26_declspec(dllexport) int flag_emulation; // INPUT FROM USER FOR EMULATION
27#else
28 int flag_emulation; // INPUT FROM USER FOR EMULATION
29#endif
30
31
32 HINSTANCE hEmulationLib;
33
34 typedef struct stru_emu_interface
35 {
36 int (*app_map_init)();
37 int (*main_emulation)();
38 int (*emulation_send_packet)(NetSim_PACKET*);
39 int (*emulation_finish)();
40 int pcap_logfile_status[4];
41 }EMU_INTERFACE;
42 EMU_INTERFACE *emu_interface;
43
44
45 //function prototype
46 void set_emulation_status(void);
47 void fn_Load_Emulation(char * Path);
48 void em_init_time(void);
49#ifdef __cplusplus
50}
51#endif
52#endif