]> hackdaworld.org Git - my-code/api.git/commitdiff
added bqs api entry
authorhackbard <hackbard>
Sun, 17 Oct 2004 23:28:49 +0000 (23:28 +0000)
committerhackbard <hackbard>
Sun, 17 Oct 2004 23:28:49 +0000 (23:28 +0000)
bqs/bqs.c [new file with mode: 0644]
bqs/bqs.h [new file with mode: 0644]

diff --git a/bqs/bqs.c b/bqs/bqs.c
new file mode 100644 (file)
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 (file)
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 <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+
+/* defines */
+#define B_SUCCESS 1
+#define B_ERROR -1
+
+/* bqs specific variables */
+typedef struct s_bqs {
+  int outfd;
+
+} t_bqs;
+
+#endif