summaryrefslogtreecommitdiff
path: root/ccast/ccmdns.h
blob: 51444483c4ee6732d1ee72a2e074f506ece6e615 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 */