From a9e13e5140bdf89a0880a00e9f678d5564cbfa4a Mon Sep 17 00:00:00 2001 From: hackbard Date: Sun, 17 Oct 2004 23:28:49 +0000 Subject: [PATCH] added bqs api entry --- bqs/bqs.c | 16 ++++++++++++++++ bqs/bqs.h | 22 ++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 bqs/bqs.c create mode 100644 bqs/bqs.h diff --git a/bqs/bqs.c b/bqs/bqs.c new file mode 100644 index 0000000..7ee7bc9 --- /dev/null +++ b/bqs/bqs.c @@ -0,0 +1,16 @@ +/* bqs.c -- batch queueing system api + * + * author: hackbard@hackdaworld.dyndns.org + * + */ + +#include "bqs.h" + +int bqs_init(t_bqs *bqs,int outfd) { + + dprintf(outfd,"[bqs] initializing bqs api ...\n"); + + bqs->outfd=outfd; + + return B_SUCCESS; +} diff --git a/bqs/bqs.h b/bqs/bqs.h new file mode 100644 index 0000000..d0d8454 --- /dev/null +++ b/bqs/bqs.h @@ -0,0 +1,22 @@ +/* bqs.h -- batch queueing system headers */ + +#ifndef BQS_H +#define BQS_H + +/* includes */ +#define _GNU_SOURCE +#include +#include +#include + +/* defines */ +#define B_SUCCESS 1 +#define B_ERROR -1 + +/* bqs specific variables */ +typedef struct s_bqs { + int outfd; + +} t_bqs; + +#endif -- 2.39.2