GEL  0.99
sect.h
Go to the documentation of this file.
1 /*
2  * $Id$
3  *
4  * This file is part of the GEL library.
5  * Copyright (c) 2005-09, IRIT- UPS
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 #ifndef GEL_SECT_H_
22 #define GEL_SECT_H_
23 
24 #include <gel/common.h>
25 #include <gel/types.h>
26 #include <gel/file.h>
27 
29 
30 /* types */
31 typedef struct gel_sect_s gel_sect_t;
32 typedef struct {
34  char *name;
43 
44 
45 /* primitives */
47 gel_sect_t *gel_getsectbyname(gel_file_t *e, char *sectname);
49 int gel_sect_load(gel_sect_t *s, raddr_t addr);
50 
52 
53 #endif /* GEL_SECT_H_ */
#define __END_DECLS
Definition: common.h:29
#define __BEGIN_DECLS
Definition: common.h:28
typedef__BEGIN_DECLS struct gel_sect_s gel_sect_t
Definition: sect.h:31
int gel_sect_infos(gel_sect_t *s, gel_sect_info_t *si)
Definition: sect.c:286
gel_sect_t * gel_getsectbyname(gel_file_t *e, char *sectname)
Definition: sect.c:254
gel_sect_t * gel_getsectbyidx(gel_file_t *e, u16_t idx)
Definition: sect.c:174
int gel_sect_load(gel_sect_t *s, raddr_t addr)
Definition: sect.c:114
Definition: file.h:31
Definition: sect.h:32
vaddr_t vaddr
Definition: sect.h:36
u32_t link
Definition: sect.h:40
u32_t flags
Definition: sect.h:39
char * name
Definition: sect.h:34
u32_t type
Definition: sect.h:35
u32_t info
Definition: sect.h:41
u32_t offset
Definition: sect.h:37
gel_file_t * container
Definition: sect.h:33
u32_t size
Definition: sect.h:38
__BEGIN_DECLS typedef uint16_t u16_t
Definition: types.h:30
uint32_t u32_t
Definition: types.h:32
uint32_t vaddr_t
Definition: types.h:36
void * raddr_t
Definition: types.h:37