blob: 4cedea59f518ce7c1fcb61b0368598453bdf3a63 [file] [log] [blame]
Arnaldo Carvalho de Melo3e1bbdc32010-05-14 20:05:21 -03001#ifndef _PERF_PSTACK_
2#define _PERF_PSTACK_
3
Arnaldo Carvalho de Melod1b4f242010-08-10 15:49:07 -03004#include <stdbool.h>
5
Arnaldo Carvalho de Melo3e1bbdc32010-05-14 20:05:21 -03006struct pstack;
7struct pstack *pstack__new(unsigned short max_nr_entries);
8void pstack__delete(struct pstack *self);
9bool pstack__empty(const struct pstack *self);
10void pstack__remove(struct pstack *self, void *key);
11void pstack__push(struct pstack *self, void *key);
12void *pstack__pop(struct pstack *self);
13
14#endif /* _PERF_PSTACK_ */