From: hackbard Date: Sun, 17 Oct 2004 23:28:49 +0000 (+0000) Subject: added bqs api entry X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=a9e13e5140bdf89a0880a00e9f678d5564cbfa4a;p=my-code%2Fapi.git added bqs api entry --- 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