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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
/*
* Copyright (c) 2011 Benjamin Franzke
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef _WFD_PORT_H_
#define _WFD_PORT_H_
#include "WF/wfd.h"
#include "wfddevice.h"
struct wfd_port;
struct wfd_pipeline;
WFDint
wfd_enumerate_ports(struct wfd_device *device,
WFDint *port_ids,
WFDint port_id_count,
WFDint *filter_list);
void
wfd_port_destroy(struct wfd_device *device,
struct wfd_port *port);
struct wfd_port *
wfd_port_create(struct wfd_device *device,
WFDint port_id,
const WFDint *attrib_list);
WFDint
wfd_port_get_attribi(struct wfd_device *device,
struct wfd_port *port,
WFDPortConfigAttrib attribute);
void
wfd_port_get_attribiv(struct wfd_device *device,
struct wfd_port *port,
WFDPortConfigAttrib attribute,
WFDint count,
WFDint *value);
void
wfd_port_get_attribfv(struct wfd_device *device,
struct wfd_port *port,
WFDPortConfigAttrib attribute,
WFDint count,
WFDfloat *value);
void
wfd_port_set_attribi(struct wfd_device *device,
struct wfd_port *port,
WFDPortConfigAttrib attribute,
WFDint value);
void
wfd_port_set_attribiv(struct wfd_device *device,
struct wfd_port *port,
WFDPortConfigAttrib attribute,
WFDint count,
const WFDint *value);
void
wfd_port_set_attribfv(struct wfd_device *device,
struct wfd_port *port,
WFDPortConfigAttrib attribute,
WFDint count,
const WFDfloat *value);
WFDint
wfd_port_get_modes(struct wfd_device *device,
struct wfd_port *port,
WFDPortMode *modes,
WFDint modes_count);
void
wfd_port_set_mode(struct wfd_device *device,
struct wfd_port *port,
WFDPortMode mode);
int
wfd_port_mode_get_attribi(struct wfd_device *device,
struct wfd_port *port,
WFDPortMode mode,
WFDPortModeAttrib attrib);
int
wfd_port_bind_pipeline(struct wfd_device *device,
struct wfd_port *port,
struct wfd_pipeline *pipeline);
int
wfd_port_commit(struct wfd_device *device,
struct wfd_port *port);
WFDEventType
wfd_ports_find_attach_detach(struct wfd_device *device,
WFDint *port_id,
WFDboolean *state);
#endif /* _WFD_PORT_H_ */
|