5 * Created by f.dhaeyer on 06/07/10.
6 * Copyright 2010 Parrot SA. All rights reserved.
13 #define PLF_CURRENT_VERSION 10
14 #define PLF_HEADER_MAGIC 0x21464c50 //!< PLF magic number
16 typedef unsigned int Plf_Word; //!< Unsigned 32 bits integer
17 typedef unsigned short Plf_Half; //!< Unsigned 16 bits integer
18 typedef void* Plf_Add; //!< 32 bits address
22 Plf_Word p_magic; //!< PLF magic number
23 Plf_Word p_plfversion; //!< PLF format version
24 Plf_Word p_phdrsize; //!< File header size
25 Plf_Word p_shdrsize; //!< Section header size
26 Plf_Word p_type; //!< File type
27 Plf_Add p_entry; //!< Executable entry point
28 Plf_Word p_targ; //!< Target platform
29 Plf_Word p_app; //!< Target application
30 Plf_Word p_hdw; //!< Hardware compatibility
31 Plf_Word p_ver; //!< Version
32 Plf_Word p_edit; //!< Edition
33 Plf_Word p_ext; //!< Extension
34 Plf_Word p_lang; //!< Language zone
35 Plf_Word p_size; //!< File size in bytes
38 int plf_get_header(const char *plf_filename, plf_phdr *header);