aboutsummaryrefslogtreecommitdiff
path: root/src/internal/types.h
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2023-09-24 12:43:27 +0200
committerJan200101 <sentrycraft123@gmail.com>2023-09-24 12:43:27 +0200
commitb92f3d1d6ad49881eb31ac911a8ad368743af108 (patch)
tree60d8ad809d19a5c392349f4dd38e4b818796150b /src/internal/types.h
parent13df46ba41efe2d94e3dbec240ff0889ac054eb7 (diff)
downloadSouthRPC-b92f3d1d6ad49881eb31ac911a8ad368743af108.tar.gz
SouthRPC-b92f3d1d6ad49881eb31ac911a8ad368743af108.zip
implement RPC
Diffstat (limited to 'src/internal/types.h')
-rw-r--r--src/internal/types.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/internal/types.h b/src/internal/types.h
new file mode 100644
index 0000000..a19c00c
--- /dev/null
+++ b/src/internal/types.h
@@ -0,0 +1,38 @@
+#ifndef TYPES_H
+#define TYPES_H
+
+#include "ns_plugin.h"
+
+typedef struct {
+ PluginInitFuncs* funcs;
+ PluginNorthstarData* data;
+ EngineData* engine_data;
+} PLUGIN_DATA_TYPES ;
+
+#ifndef SQTrue
+#define SQTrue (1)
+#endif
+
+#ifndef SQFalse
+#define SQFalse (0)
+#endif
+
+#ifndef SQ_FAILED
+#define SQ_FAILED(res) (res<0)
+#endif
+
+#ifndef SQ_SUCCEEDED
+#define SQ_SUCCEEDED(res) (res>=0)
+#endif
+
+#ifndef ISREFCOUNTED
+#define ISREFCOUNTED(t) (t&SQOBJECT_REF_COUNTED)
+#endif
+
+#ifndef sq_isnull
+#define sq_isnull(o) ((o)._type==OT_NULL)
+#endif
+
+#define SQ_NULL_OBJ SQObject { OT_NULL, 0, nullptr }
+
+#endif