1 /* 2 * %CopyrightBegin% 3 4 * 5 * Copyright Ericsson AB 2016. All Rights Reserved. 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 * 19 * %CopyrightEnd% 20 */ 21 /* 22 * hipe_module.h 23 * 24 * 25 */ 26 #ifndef HIPE_MODULE_H 27 #define HIPE_MODULE_H 28 29 /* Forward-declare type to resolve circular dependency with module.h */ 30 typedef struct hipe_module HipeModule; 31 32 #include "global.h" 33 34 struct hipe_module { 35 void *text_segment; 36 Uint text_segment_size; 37 void *data_segment; 38 39 struct hipe_ref* first_hipe_ref; /* all external hipe calls from this module */ 40 struct hipe_sdesc* first_hipe_sdesc; /* all stack descriptors for this module */ 41 }; 42 43 extern void hipe_free_module(HipeModule *mod); 44 45 #endif /* HIPE_MODULE_H */ 46