OSDN Git Service

client 0.5.2 release
[unagi/old-svn-converted.git] / client / tag / 0.5.2 / script.h
diff --git a/client/tag/0.5.2/script.h b/client/tag/0.5.2/script.h
new file mode 100644 (file)
index 0000000..9f538d5
--- /dev/null
@@ -0,0 +1,33 @@
+#ifndef _SCRIPT_H_
+#define _SCRIPT_H_
+struct st_config;
+void script_load(const struct st_config *config);
+
+struct st_variable{
+       int type;
+       char variable;
+       long value;
+};
+
+struct st_expression{
+       struct st_variable left, right;
+       int operator;
+};
+
+struct script{
+       int opcode;
+       long value[4];
+       struct st_expression expression;
+       char variable;
+};
+
+enum{
+       VALUE_EXPRESSION = 0x1000000,
+       VALUE_VARIABLE
+};
+enum{
+       EXPRESSION_TYPE_VARIABLE,
+       EXPRESSION_TYPE_VALUE
+};
+
+#endif