pstack.h 455 字节
Newer Older
1 2 3
#ifndef _PERF_PSTACK_
#define _PERF_PSTACK_

4 5
#include <stdbool.h>

6 7
struct pstack;
struct pstack *pstack__new(unsigned short max_nr_entries);
8 9 10 11 12
void pstack__delete(struct pstack *pstack);
bool pstack__empty(const struct pstack *pstack);
void pstack__remove(struct pstack *pstack, void *key);
void pstack__push(struct pstack *pstack, void *key);
void *pstack__pop(struct pstack *pstack);
13
void *pstack__peek(struct pstack *pstack);
14 15

#endif /* _PERF_PSTACK_ */