| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
#ifndef VMBIFNET_H |
| 15 |
#define VMBIFNET_H |
| 16 |
|
| 17 |
#include "os.h" |
| 18 |
#include "vmbif.h" |
| 19 |
#include "utf8.h" |
| 20 |
|
| 21 |
class CVmBifNet: public CVmBif |
| 22 |
{ |
| 23 |
public: |
| 24 |
|
| 25 |
static vm_bif_desc bif_table[]; |
| 26 |
|
| 27 |
|
| 28 |
static void attach(VMG0_); |
| 29 |
static void detach(VMG0_); |
| 30 |
|
| 31 |
|
| 32 |
static void connect_ui(VMG_ uint argc); |
| 33 |
|
| 34 |
|
| 35 |
static void get_event(VMG_ uint argc); |
| 36 |
|
| 37 |
|
| 38 |
static void get_hostname(VMG_ uint argc); |
| 39 |
|
| 40 |
|
| 41 |
static void get_host_ip(VMG_ uint argc); |
| 42 |
|
| 43 |
|
| 44 |
static void get_storage_url(VMG_ uint argc); |
| 45 |
|
| 46 |
|
| 47 |
static void get_launch_host_addr(VMG_ uint argc); |
| 48 |
|
| 49 |
|
| 50 |
static void send_net_request(VMG_ uint argc); |
| 51 |
}; |
| 52 |
|
| 53 |
|
| 54 |
#endif |
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
#ifdef VMBIF_DEFINE_VECTOR |
| 66 |
|
| 67 |
|
| 68 |
vm_bif_desc CVmBifNet::bif_table[] = |
| 69 |
{ |
| 70 |
{ &CVmBifNet::connect_ui, 2, 0, FALSE }, |
| 71 |
{ &CVmBifNet::get_event, 0, 1, FALSE }, |
| 72 |
{ &CVmBifNet::get_hostname, 0, 0, FALSE }, |
| 73 |
{ &CVmBifNet::get_host_ip, 0, 0, FALSE }, |
| 74 |
{ &CVmBifNet::get_storage_url, 0, 0, FALSE }, |
| 75 |
{ &CVmBifNet::get_launch_host_addr, 0, 0, FALSE }, |
| 76 |
{ &CVmBifNet::send_net_request, 2, 0, TRUE } |
| 77 |
}; |
| 78 |
|
| 79 |
#endif |