Actually what I meant was how do I put my struct into the queue as a list entry or member using this library...
alternatively I decided to not go with the library and just use a standard linked list that contains my struct ... as this:
// device and linked list structure
struct linkedList {
int id;
char *name;
struct dev{
int hash;
unsigned long ts;
}dev;
struct linkedList *next;
}start, *node;
For some reason I was thinking that using this library would allow me to directly access the Nth element of the list/queue, however I think I was mistaken, hence my alternative approach since I have to traverse the list either way, less overhead not using the library.