helpful progress reporting
[IRC.git] / Robust / src / Runtime / DSTM / interface / plookup.h
1 #ifndef _PLOOKUP_H_
2 #define _PLOOKUP_H_
3
4 #include <stdlib.h>
5 #include <stdio.h>
6
7 /* This structure is created using a transaction record.
8  * It is filled out with pile information necessary for
9  * participants involved in a transaction. */
10 typedef struct plistnode {
11   unsigned int mid;
12   unsigned int numread;                 /* no of objects modified */
13   unsigned int nummod;                  /* no of objects read */
14   unsigned int numcreated;        /* no of objects created */
15   int sum_bytes;                /* total bytes of objects modified */
16   char *objread;                /* Pointer to array containing oids of objects read and their version numbers*/
17   unsigned int *oidmod;         /* Pointer to array containing oids of modified objects */
18   unsigned int *oidcreated;             /* Pointer to array containing oids of newly created objects */
19   struct plistnode *next;
20 } plistnode_t;
21
22 plistnode_t  *pCreate(int);
23 int pCount(plistnode_t *pile);
24 int pListMid(plistnode_t *pile, unsigned int *list);
25 void pDelete(plistnode_t *pile);
26
27 #endif
28