Feature update including automatic configuration, attach flag, save-the-world
[dyninst.git] / parseThat / src / dyninstCompat.h
1 #ifndef __DYNINSTCOMPAT_H__
2 #define __DYNINSTCOMPAT_H__
3
4 /*******************************************************************************
5  * This file, and the accompaning dyninstCompat.vX.C files are simply to
6  * get around incompatabilities between DyninstAPI versions.  Hopefully,
7  * when DyninstAPI v4 support is dropped, we can merge these files into
8  * dyninstCore.[Ch]
9  */
10
11 #include "BPatch.h"
12 #include "BPatch_thread.h"
13 #include "BPatch_image.h"
14 #include "BPatch_Vector.h"
15
16 #if defined(HAVE_BPATCH_PROCESS_H)
17 #include "BPatch_process.h"
18 #else
19 #define BPatch_process BPatch_thread
20 #endif
21
22 struct dynHandle {
23     BPatch *bpatch;
24     BPatch_process *proc;
25     BPatch_image *image;
26 };
27
28 dynHandle *mutatorInit(void);
29 bool dynStartTransaction(dynHandle *);
30 bool dynEndTransaction(dynHandle *);
31
32 #endif