repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
win32: prepend the com port path with '\\.\', so com ports > 9 can be accessed. thank...
[deb_libcec.git]
/
include
/
cectypes.h
diff --git
a/include/cectypes.h
b/include/cectypes.h
index 8c6cf9c79dab4e7d428662104926a097d0b76548..cb647fd2230300eb848d1635e98173e278ff18c1 100644
(file)
--- a/
include/cectypes.h
+++ b/
include/cectypes.h
@@
-196,6
+196,8
@@
typedef struct cec_device_type_list
}
return bReturn;
}
}
return bReturn;
}
+
+ cec_device_type operator[](uint8_t pos) const { return pos < 5 ? types[pos] : CEC_DEVICE_TYPE_RESERVED; }
#endif
} cec_device_type_list;
#endif
} cec_device_type_list;
@@
-554,6
+556,7
@@
typedef struct cec_logical_addresses
}
bool isset(cec_logical_address address) const { return addresses[(int) address] == 1; }
}
bool isset(cec_logical_address address) const { return addresses[(int) address] == 1; }
+ bool operator[](uint8_t pos) const { return pos < 16 ? isset((cec_logical_address) pos) : false; }
#endif
} cec_logical_addresses;
#endif
} cec_logical_addresses;