projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unused BIGNUMs.
[oweals/openssl.git]
/
crypto
/
pqueue
/
pqueue.h
diff --git
a/crypto/pqueue/pqueue.h
b/crypto/pqueue/pqueue.h
index 02386d130e9a797dae6ad8b61af28976ea15cec1..87fc9037c8f3af30365c2cda5fcba5545ca74d87 100644
(file)
--- a/
crypto/pqueue/pqueue.h
+++ b/
crypto/pqueue/pqueue.h
@@
-64,20
+64,18
@@
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
-#include <openssl/pq_compat.h>
-
typedef struct _pqueue *pqueue;
typedef struct _pitem
{
typedef struct _pqueue *pqueue;
typedef struct _pitem
{
- PQ_64BIT priority;
+ unsigned char priority[8]; /* 64-bit value in big-endian encoding */
void *data;
struct _pitem *next;
} pitem;
typedef struct _pitem *piterator;
void *data;
struct _pitem *next;
} pitem;
typedef struct _pitem *piterator;
-pitem *pitem_new(
PQ_64BIT priority
, void *data);
+pitem *pitem_new(
unsigned char *prio64be
, void *data);
void pitem_free(pitem *item);
pqueue pqueue_new(void);
void pitem_free(pitem *item);
pqueue pqueue_new(void);
@@
-86,10
+84,11
@@
void pqueue_free(pqueue pq);
pitem *pqueue_insert(pqueue pq, pitem *item);
pitem *pqueue_peek(pqueue pq);
pitem *pqueue_pop(pqueue pq);
pitem *pqueue_insert(pqueue pq, pitem *item);
pitem *pqueue_peek(pqueue pq);
pitem *pqueue_pop(pqueue pq);
-pitem *pqueue_find(pqueue pq,
PQ_64BIT priority
);
+pitem *pqueue_find(pqueue pq,
unsigned char *prio64be
);
pitem *pqueue_iterator(pqueue pq);
pitem *pqueue_next(piterator *iter);
void pqueue_print(pqueue pq);
pitem *pqueue_iterator(pqueue pq);
pitem *pqueue_next(piterator *iter);
void pqueue_print(pqueue pq);
+int pqueue_size(pqueue pq);
#endif /* ! HEADER_PQUEUE_H */
#endif /* ! HEADER_PQUEUE_H */