aboutsummaryrefslogtreecommitdiff
path: root/src/action.h
diff options
context:
space:
mode:
authorKrow Savcik <krow@savcik.xyz>2023-09-26 22:32:35 +0300
committerKrow Savcik <krow@savcik.xyz>2023-09-26 22:32:35 +0300
commit9e660e594f6d3a43ea1427fb872801a2fcedad93 (patch)
tree459cd0c6fc5fef0366f7ef249ae19dd67c363772 /src/action.h
initial commit
Diffstat (limited to 'src/action.h')
-rw-r--r--src/action.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/action.h b/src/action.h
new file mode 100644
index 0000000..7405418
--- /dev/null
+++ b/src/action.h
@@ -0,0 +1,22 @@
+enum Actions_Types {
+ ACT_PIXELSCOLORS,
+}
+
+struct act_pixcol {
+ long int p; /* Position */
+ unsigned int c; /* Color */
+};
+
+struct Action {
+ int type;
+ ActUnion act;
+};
+
+struct ActionPixelsColors {
+ long int cnt;
+ struct act_pixcol *pix;
+}
+
+typedef union {
+ ActionPixelsColors px;
+} ActUnion;