| 1 |
/* Copyright (c) 2023, David Anderson |
| 2 |
All rights reserved. |
| 3 |
|
| 4 |
Redistribution and use in source and binary forms, with |
| 5 |
or without modification, are permitted provided that the |
| 6 |
following conditions are met: |
| 7 |
|
| 8 |
Redistributions of source code must retain the above |
| 9 |
copyright notice, this list of conditions and the following |
| 10 |
disclaimer. |
| 11 |
|
| 12 |
Redistributions in binary form must reproduce the above |
| 13 |
copyright notice, this list of conditions and the following |
| 14 |
disclaimer in the documentation and/or other materials |
| 15 |
provided with the distribution. |
| 16 |
|
| 17 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND |
| 18 |
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, |
| 19 |
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
| 20 |
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 21 |
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR |
| 22 |
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 |
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
| 24 |
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 25 |
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 26 |
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 27 |
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
| 28 |
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
| 29 |
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ |
| 30 |
|
| 31 |
#ifndef DWARF_UNIVERSAL_H |
| 32 |
#define DWARF_UNIVERSAL_H |
| 33 |
|
| 34 |
#ifdef __cplusplus |
| 35 |
extern "C" { |
| 36 |
#endif /* __cplusplus */ |
| 37 |
|
| 38 |
struct Dwarf_Universal_Head_s; |
| 39 |
typedef struct Dwarf_Universal_Head_s * Dwarf_Universal_Head; |
| 40 |
|
| 41 |
int _dwarf_object_detector_universal_head( |
| 42 |
char *dw_path, |
| 43 |
Dwarf_Unsigned dw_filesize, |
| 44 |
unsigned int *dw_contentcount, |
| 45 |
Dwarf_Universal_Head * dw_head, |
| 46 |
int *errcode); |
| 47 |
|
| 48 |
int _dwarf_object_detector_universal_instance( |
| 49 |
Dwarf_Universal_Head dw_head, |
| 50 |
Dwarf_Unsigned dw_index_of, |
| 51 |
Dwarf_Unsigned *dw_cpu_type, |
| 52 |
Dwarf_Unsigned *dw_cpu_subtype, |
| 53 |
Dwarf_Unsigned *dw_offset, |
| 54 |
Dwarf_Unsigned *dw_size, |
| 55 |
Dwarf_Unsigned *dw_align, |
| 56 |
int *errcode); |
| 57 |
void _dwarf_dealloc_universal_head(Dwarf_Universal_Head dw_head); |
| 58 |
|
| 59 |
#ifdef __cplusplus |
| 60 |
} |
| 61 |
#endif /* __cplusplus */ |
| 62 |
|
| 63 |
#endif /* DWARF_UNIVERSAL_H */ |