Untest code for trans commit
[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 typedef struct plistnode {
8         unsigned int mid;
9         unsigned int *obj; //this can be cast to another type or used to point to a larger structure
10         int index;
11         int vote;
12         struct plistnode *next;
13 } plistnode_t;
14
15 plistnode_t  *pCreate(int);
16 plistnode_t  *pInsert(plistnode_t*, unsigned int mid, unsigned int oid, int);
17 int pCount(plistnode_t *pile);
18 int pListMid(plistnode_t *pile, unsigned int *list);
19 unsigned int *pSearch(plistnode_t *, unsigned int mid);
20 void pDelete(plistnode_t *);
21
22 #endif
23