aboutsummaryrefslogtreecommitdiff
path: root/include/queue.h
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-06-22 23:48:45 +0530
committersinanmohd <sinan@sinanmohd.com>2024-06-23 01:59:49 +0530
commit4740b89e88dff04361da7f7f3bd9e823fd75d5b2 (patch)
treeb5cf30095adc7dcd12ed9a0d9d83671f04efaf43 /include/queue.h
parent49b1faa9c128b9beb8f517bed5cccfc5cb3b0ef0 (diff)
htab: init
Diffstat (limited to 'include/queue.h')
-rw-r--r--include/queue.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/queue.h b/include/queue.h
index c454339..4aca54b 100644
--- a/include/queue.h
+++ b/include/queue.h
@@ -3,6 +3,7 @@
#include <semaphore.h>
#include <sys/queue.h>
+#include "htab.h"
#include "jobs.h"
#ifndef QUEUE_H
@@ -14,7 +15,7 @@ typedef enum {
struct queue {
struct job_clist jobs;
- struct hsearch_data *htab;
+ struct htab *htab;
sem_t sem;
queue_state_t state;
pthread_mutex_t mutex;
@@ -29,7 +30,7 @@ struct queue_thread {
int queue_thread_new(struct queue_thread **queue_thread, FILE *stream);
void queue_thread_free(struct queue_thread *queue_thread);
void *queue_thread_entry(void *queue_thread);
-int queue_pop(struct queue *queue, struct job **job, struct hsearch_data *htab);
+int queue_pop(struct queue *queue, struct job **job, struct htab *htab);
#define QUEUE_H
#endif