aboutsummaryrefslogtreecommitdiff
path: root/ext/ivy/rb_ivy.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ivy/rb_ivy.h')
-rw-r--r--ext/ivy/rb_ivy.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/ext/ivy/rb_ivy.h b/ext/ivy/rb_ivy.h
new file mode 100644
index 0000000..a1b8f95
--- /dev/null
+++ b/ext/ivy/rb_ivy.h
@@ -0,0 +1,72 @@
+/**
+ * Copyright (C) 2006 Gregoire Lejeune <gregoire.lejeune@free.fr>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <errno.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sysexits.h>
+#include <unistd.h>
+
+#include <ruby.h>
+#include <rubyio.h>
+#include <intern.h>
+
+#include "ivyloop.h"
+#include "ivysocket.h"
+#include "ivychannel.h"
+#include "ivybind.h"
+#include "ivy.h"
+#include "timer.h"
+
+#ifndef bool
+# define bool int
+# define TRUE 1
+# define FALSE 0
+#endif /* ! bool */
+
+#define RUBY_RBIVY_VERSION "0.1.0"
+#define RUBY_RBIVY_VERNUM 010
+#define RUBY_IVY_VERSION "IVYMAJOR_VERSION.IVYMINOR_VERSION"
+
+typedef struct RbTIvy {
+
+ VALUE strAgentName;
+ VALUE strReadyMsg;
+
+} RbTIvy;
+VALUE cIvy;
+
+typedef struct RbTIvyMsg {
+
+ MsgRcvPtr id;
+ VALUE cb;
+ VALUE data;
+ VALUE regexp;
+
+} RbTIvyMsg;
+VALUE cIvyMsg;
+
+typedef struct RbTIvyClient {
+ IvyClientPtr client;
+} RbTIvyClient;
+VALUE cIvyClient;
+
+static void callback( IvyClientPtr, void *, int, char ** ); \ No newline at end of file