1 #ifndef __IFACE_GUARD_MODS_H__
2 #define __IFACE_GUARD_MODS_H__
4 #define V3_VM_REGISTER_MOD 14124
6 #define MAX_MOD_NAME_LEN 256
7 #define MAX_HASH_LEN 128
9 struct v3_entry_point {
14 /* TODO: Fix this HACKERY! These last two are placeholders */
20 char * name; /* GM name */
21 char * content_hash; /* hash of the module .text segment */
22 unsigned int hcall_offset; /* offset from .text to hypercall */
23 unsigned int text_size; /* size of module .text segment */
24 unsigned int num_entries; /* number of entry points */
25 unsigned int num_privs;
26 char ** priv_array; /* each bit represent a requested privilege */
27 unsigned long long id; /* GM ID */
28 struct v3_entry_point * entry_points; /* entry point array (offsets) */