/[ipchat]/ipchat/src/pqueue.h
ViewVC logotype

Diff of /ipchat/src/pqueue.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by matiasaguirre, Mon Mar 21 01:47:53 2005 UTC revision 1.8 by beatk, Thu Mar 24 08:56:50 2005 UTC
# Line 51  Line 51 
51  typedef long int prio_t;  typedef long int prio_t;
52    
53  /* Priority queue node */  /* Priority queue node */
54    /* Data structs added with pq_add() must have a prio_t as the first field */
55  typedef struct {  typedef struct {
56      prio_t pri;         /* priority */      prio_t pri;         /* priority */
     void * data;        /* data */  
57  } pq_node;  } pq_node;
58    
59  /* Priority queue struct */  /* Priority queue struct */
# Line 66  typedef struct{ Line 66  typedef struct{
66    
67    
68  extern int pq_new(pqueue *,int,int(*)(void*,void*));  extern int pq_new(pqueue *,int,int(*)(void*,void*));
69  extern prio_t pq_add(prio_t,void *,pqueue *);  extern prio_t pq_add(void *,pqueue *);
70  extern void * pq_min(pqueue *);  extern void * pq_min(pqueue *);
71  extern void * pq_del_min(pqueue *);  extern void * pq_del_min(pqueue *);
72  extern int pq_empty(pqueue *);  extern int pq_empty(pqueue *);

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26