summaryrefslogtreecommitdiff
path: root/ccast/ccmdns.h
diff options
context:
space:
mode:
Diffstat (limited to 'ccast/ccmdns.h')
-rw-r--r--ccast/ccmdns.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/ccast/ccmdns.h b/ccast/ccmdns.h
new file mode 100644
index 0000000..5144448
--- /dev/null
+++ b/ccast/ccmdns.h
@@ -0,0 +1,42 @@
+#ifndef CCMDNST_H
+
+/*
+ * Argyll Color Correction System
+ * ChromCast mDNS support
+ *
+ * Author: Graeme W. Gill
+ * Date: 28/8/2014
+ *
+ * Copyright 2014 Graeme W. Gill
+ * All rights reserved.
+ *
+ * This material is licenced under the GNU AFFERO GENERAL PUBLIC LICENSE Version 3 :-
+ * see the License2.txt file for licencing details.
+ *
+ */
+
+/*
+ * This class provides simple access to the Google ChromeCast
+ * for the purposes of generating Video Test patches.
+ */
+
+/* A record of a Chromecast that may be accessed */
+struct _ccast_id {
+ char *name; /* Chromecast name */
+ char *ip; /* IP address as string (ie. "10.0.0.128") */
+}; typedef struct _ccast_id ccast_id;
+
+/* Get a list of Chromecasts. Return NULL on error */
+/* Last pointer in array is NULL */
+/* Takes 0.5 second to return */
+ccast_id **get_ccids(void);
+
+/* Free up what get_ccids returned */
+void free_ccids(ccast_id **ids);
+
+void ccast_id_copy(ccast_id *dst, ccast_id *src);
+ccast_id *ccast_id_clone(ccast_id *src);
+void ccast_id_del(ccast_id *id);
+
+#define CCMDNST_H
+#endif /* CCMDNST_H */