summaryrefslogtreecommitdiff
path: root/trunk/Examples/php/value/example.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/Examples/php/value/example.h')
-rw-r--r--trunk/Examples/php/value/example.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/trunk/Examples/php/value/example.h b/trunk/Examples/php/value/example.h
new file mode 100644
index 000000000..f55752a5f
--- /dev/null
+++ b/trunk/Examples/php/value/example.h
@@ -0,0 +1,8 @@
+/* File : example.h */
+
+typedef struct {
+ double x, y, z;
+} Vector;
+
+double dot_product(Vector a, Vector b);
+void vector_add(Vector a, Vector b, Vector* result);