aboutsummaryrefslogtreecommitdiff
path: root/v1/square.h
diff options
context:
space:
mode:
Diffstat (limited to 'v1/square.h')
-rw-r--r--v1/square.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/v1/square.h b/v1/square.h
new file mode 100644
index 0000000..177c9c7
--- /dev/null
+++ b/v1/square.h
@@ -0,0 +1,16 @@
+#ifndef POC__SQUARE_H
+#define POC__SQUARE_H
+
+#include "shape.h"
+
+struct square;
+
+struct square *square_create(double width);
+
+double square_area(struct square *square);
+
+void square_destroy(struct square *square);
+
+struct shape *square_as_shape(struct square *square);
+
+#endif